]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc/kprobes: Invoke handlers directly
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Mon, 21 Nov 2016 17:06:41 +0000 (22:36 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Nov 2016 11:56:25 +0000 (22:56 +1100)
commit6cc89bad60a673a24386f1ada83de8a068a78909
tree5b116e7cce37b33103cc12d054ff8f382ca05fd0
parent82de5797a26087c651a06de327e6aa9ea69d5d7f
powerpc/kprobes: Invoke handlers directly

Invoke the kprobe handlers directly rather than through notify_die(), to
reduce path taken for handling kprobes. Similar to commit 6f6343f53d13
("kprobes/x86: Call exception handlers directly from do_int3/do_debug").

While at it, rename post_kprobe_handler() to kprobe_post_handler() for
more uniform naming.

Reported-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kprobes.h
arch/powerpc/kernel/kprobes.c
arch/powerpc/kernel/traps.c