]> Pileus Git - ~andy/linux/commit
powerpc/ftrace: Trace function graph entry before updating index
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 18 Jul 2012 12:35:28 +0000 (12:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 27 Jul 2012 01:42:34 +0000 (11:42 +1000)
commitbac821a6e3404330d509fd3a245bf7701f210c7c
tree361463f5ee076563247aaba0dc8124a73fe67295
parente5ae3cdfd5741364e39705592b9aee9fb836f3d3
powerpc/ftrace: Trace function graph entry before updating index

As Colin Cross ported my x86 change to ARM, he also pointed out that
powerpc is also behind in this fix.

The commit 722b3c746953 "ftrace/graph: Trace function entry before
updating index" fixes an issue with function graph tracing for x86,
where if the called entry function decides not to trace interrupts, it
can fail the check if an interrupt comes in just after the
curr_ret_stack is updated.

The solution is to call the entry function first, then update the
curr_ret_stack if the entry function wants to be traced.

Cc: Colin Cross <ccross@android.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ftrace.c