Commit 62c27be0 authored by bibo,mao's avatar bibo,mao Committed by Linus Torvalds

[PATCH] kprobe whitespace cleanup

Whitespace is used to indent, this patch cleans up these sentences by
kernel coding style.
Signed-off-by: default avatarbibo, mao <bibo.mao@intel.com>
Signed-off-by: default avatarAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 09b18203
...@@ -230,6 +230,7 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp, ...@@ -230,6 +230,7 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp,
struct pt_regs *regs) struct pt_regs *regs)
{ {
unsigned long *sara = (unsigned long *)&regs->esp; unsigned long *sara = (unsigned long *)&regs->esp;
struct kretprobe_instance *ri; struct kretprobe_instance *ri;
if ((ri = get_free_rp_inst(rp)) != NULL) { if ((ri = get_free_rp_inst(rp)) != NULL) {
...@@ -239,7 +240,6 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp, ...@@ -239,7 +240,6 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp,
/* Replace the return addr with trampoline addr */ /* Replace the return addr with trampoline addr */
*sara = (unsigned long) &kretprobe_trampoline; *sara = (unsigned long) &kretprobe_trampoline;
add_rp_inst(ri); add_rp_inst(ri);
} else { } else {
rp->nmissed++; rp->nmissed++;
......
...@@ -503,7 +503,8 @@ static void __kprobes resume_execution(struct kprobe *p, struct pt_regs *regs) ...@@ -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) { if (p->ainsn.inst_flag & INST_FLAG_FIX_RELATIVE_IP_ADDR) {
/* Fix relative IP address */ /* 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) { if (p->ainsn.inst_flag & INST_FLAG_FIX_BRANCH_REG) {
......
...@@ -279,7 +279,6 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp, ...@@ -279,7 +279,6 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp,
/* Replace the return addr with trampoline addr */ /* Replace the return addr with trampoline addr */
*sara = (unsigned long) &kretprobe_trampoline; *sara = (unsigned long) &kretprobe_trampoline;
add_rp_inst(ri); add_rp_inst(ri);
} else { } else {
rp->nmissed++; rp->nmissed++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment