[PATCH 0/8] powerpc: Various fixes and enhancements for kprobes and ftrace
Naveen N. Rao
naveen.n.rao at linux.vnet.ibm.com
Thu May 4 14:36:13 AEST 2017
[Reposting this as I missed copying the distribution list in my
previous posting. For those who were copied previously, sorry for the spam]
This series initially started out as a fix for a single bug I found:
kernel Oops when jprobes is used with the function_graph tracer. Though
that particular bug turned out to be a solved problem on other
architectures (as seen in patch 1), my investigation revealed quite a
few other bugs as well as scope for optimizing our ftrace handlers.
This series includes all the fixes and enhancements I have made so far.
There are a few more bugs and fixes that I will be coding up and sending
across in a day or two.
This series has been run through ftrace selftests.
- Naveen
Naveen N. Rao (8):
powerpc/kprobes: Pause function_graph tracing during jprobes handling
powerpc/ftrace: Pass the correct stack pointer for
DYNAMIC_FTRACE_WITH_REGS
powerpc/ftrace: Remove redundant saving of LR in ftrace[_graph]_caller
powerpc/kprobes_on_ftrace: Skip livepatch_handler() for jprobes
powerpc/ftrace: Eliminate duplicate stack setup for
ftrace_graph_caller()
powerpc/ftrace: Add support for HAVE_FUNCTION_GRAPH_FP_TEST for
-mprofile-kernel
powerpc/livepatch: Clarify location of mcount call site
powerpc/xmon: Disable function_graph tracing while in xmon
arch/powerpc/include/asm/asm-prototypes.h | 3 +-
arch/powerpc/include/asm/ftrace.h | 3 +
arch/powerpc/include/asm/livepatch.h | 4 +-
arch/powerpc/kernel/kprobes.c | 15 +++-
arch/powerpc/kernel/trace/ftrace.c | 4 +-
arch/powerpc/kernel/trace/ftrace_64.S | 1 +
arch/powerpc/kernel/trace/ftrace_64_mprofile.S | 105 +++++++++++--------------
arch/powerpc/xmon/xmon.c | 3 +
8 files changed, 70 insertions(+), 68 deletions(-)
--
2.12.2
More information about the Linuxppc-dev
mailing list