]> git.baikalelectronics.ru Git - kernel.git/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)
commite36dacd900cace224fe3a5dc4db62beac970526a
tree361463f5ee076563247aaba0dc8124a73fe67295
parent577290d6085b68b9486053047fcbd843c274faa2
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 5173812b7825 "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