mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] kprobe whitespace cleanup
Whitespace is used to indent, this patch cleans up these sentences by kernel coding style. Signed-off-by: bibo, mao <bibo.mao@intel.com> Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
09b18203d7
commit
62c27be0dd
5 changed files with 103 additions and 103 deletions
|
@ -230,6 +230,7 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp,
|
|||
struct pt_regs *regs)
|
||||
{
|
||||
unsigned long *sara = (unsigned long *)®s->esp;
|
||||
|
||||
struct kretprobe_instance *ri;
|
||||
|
||||
if ((ri = get_free_rp_inst(rp)) != NULL) {
|
||||
|
@ -239,7 +240,6 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp,
|
|||
|
||||
/* Replace the return addr with trampoline addr */
|
||||
*sara = (unsigned long) &kretprobe_trampoline;
|
||||
|
||||
add_rp_inst(ri);
|
||||
} else {
|
||||
rp->nmissed++;
|
||||
|
|
|
@ -503,7 +503,8 @@ static void __kprobes resume_execution(struct kprobe *p, struct pt_regs *regs)
|
|||
|
||||
if (p->ainsn.inst_flag & INST_FLAG_FIX_RELATIVE_IP_ADDR) {
|
||||
/* Fix relative IP address */
|
||||
regs->cr_iip = (regs->cr_iip - bundle_addr) + resume_addr;
|
||||
regs->cr_iip = (regs->cr_iip - bundle_addr) +
|
||||
resume_addr;
|
||||
}
|
||||
|
||||
if (p->ainsn.inst_flag & INST_FLAG_FIX_BRANCH_REG) {
|
||||
|
|
|
@ -279,7 +279,6 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp,
|
|||
|
||||
/* Replace the return addr with trampoline addr */
|
||||
*sara = (unsigned long) &kretprobe_trampoline;
|
||||
|
||||
add_rp_inst(ri);
|
||||
} else {
|
||||
rp->nmissed++;
|
||||
|
|
Loading…
Reference in a new issue