Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ void __kprobes arch_prepare_kretprobe(struct kretprobe *rp,
				      struct pt_regs *regs)
{
	unsigned long *sara = (unsigned long *)&regs->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++;
+45 −44
Original line number Diff line number Diff line
@@ -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) {
+20 −21
Original line number Diff line number Diff line
@@ -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++;
+13 −13

File changed.

Contains only whitespace changes.

+8 −8

File changed.

Contains only whitespace changes.