Skip to content
Commit 9135c3cc authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 80f50691
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment