]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: show real return addresses in modules
authorSteven Rostedt <srostedt@redhat.com>
Tue, 15 Sep 2009 15:20:15 +0000 (08:20 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 13 Oct 2009 21:20:55 +0000 (14:20 -0700)
commitb56540246d276debd46cf8e95359cbc927affa37
treeab11f4ee4f7d689d63d18ffccffe8ea376155d7c
parent864c024d2d66c129ed67f22ba567262ca6303b0a
powerpc/ftrace: show real return addresses in modules

When the function graph tracer is enabled, it replaces the return address
with a hook back to the tracer. This makes back traces see the hook instead
of the actual return address.

The current code also shows the real address by checking if the return
address jumps to the return_to_handler. If it is, is also prints out
the saved real return address.

On powerpc64, some modules may return to mod_return_to_handler, which
is not checked. This patch will also show the real address if a return
is to mod_return_to_handler as well.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/powerpc/kernel/process.c