]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ftrace: Allow archs to specify if they need a separate function graph trampoline
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Fri, 11 Jul 2014 18:39:10 +0000 (14:39 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 16 Jul 2014 15:01:24 +0000 (11:01 -0400)
commit646d7043adf3d92de5d3db1244a82a12628303de
tree09d3ed9c379a06b0ba7ce9a2ec5173ba8a097b96
parentca65ef1ab6b498b77985b9a3f5ab12c09bbf764e
ftrace: Allow archs to specify if they need a separate function graph trampoline

Currently if an arch supports function graph tracing, the core code will
just assign the function graph trampoline to the function graph addr that
gets called.

But as the old method for function graph tracing always calls the function
trampoline first and that calls the function graph trampoline, some
archs may have the function graph trampoline dependent on operations that
were done in the function trampoline. This causes function graph tracer
to break on those archs.

Instead of having the default be to set the function graph ftrace_ops
to the function graph trampoline, have it instead just set it to zero
which will keep it from jumping to a trampoline that is not set up
to be jumped directly too.

Link: http://lkml.kernel.org/r/53BED155.9040607@nvidia.com
Reported-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Tested-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c