powerpc/kprobes: Add support for KPROBES_ON_FTRACE
Allow kprobes to be placed on ftrace _mcount() call sites. This optimization avoids the use of a trap, by riding on ftrace infrastructure. This depends on HAVE_DYNAMIC_FTRACE_WITH_REGS which depends on MPROFILE_KERNEL, which is only currently enabled on powerpc64le with newer toolchains. Based on the x86 code by Masami. Signed-off-by:Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- Documentation/features/debug/kprobes-on-ftrace/arch-support.txt 1 addition, 1 deletion...ntation/features/debug/kprobes-on-ftrace/arch-support.txt
- arch/powerpc/Kconfig 1 addition, 0 deletionsarch/powerpc/Kconfig
- arch/powerpc/include/asm/kprobes.h 10 additions, 0 deletionsarch/powerpc/include/asm/kprobes.h
- arch/powerpc/kernel/Makefile 3 additions, 0 deletionsarch/powerpc/kernel/Makefile
- arch/powerpc/kernel/kprobes-ftrace.c 104 additions, 0 deletionsarch/powerpc/kernel/kprobes-ftrace.c
- arch/powerpc/kernel/kprobes.c 7 additions, 1 deletionarch/powerpc/kernel/kprobes.c
arch/powerpc/kernel/kprobes-ftrace.c
0 → 100644
Please register or sign in to comment