HAVE_FUNCTION_GRAPH_FP_TEST reveals another area (apart from jprobes) that conflicts with the function_graph tracer: xmon. This is due to the use of longjmp() in various places in xmon.
To address this, pause function_graph tracing while in xmon. Signed-off-by: Naveen N. Rao <naveen.n....@linux.vnet.ibm.com> --- arch/powerpc/xmon/xmon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index da5619847517..22db68347ff6 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -28,6 +28,7 @@ #include <linux/bug.h> #include <linux/nmi.h> #include <linux/ctype.h> +#include <linux/ftrace.h> #include <asm/debugfs.h> #include <asm/ptrace.h> @@ -459,6 +460,7 @@ static int xmon_core(struct pt_regs *regs, int fromipi) local_irq_save(flags); hard_irq_disable(); + pause_graph_tracing(); bp = in_breakpoint_table(regs->nip, &offset); if (bp != NULL) { @@ -655,6 +657,7 @@ static int xmon_core(struct pt_regs *regs, int fromipi) touch_nmi_watchdog(); local_irq_restore(flags); + unpause_graph_tracing(); return cmd != 'X' && cmd != EOF; } -- 2.12.2