]> git.hungrycats.org Git - linux/commit
tracing: Fix graph tracer with stack tracer on other archs
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 15 Jul 2014 15:05:12 +0000 (11:05 -0400)
committerJiri Slaby <jslaby@suse.cz>
Tue, 29 Jul 2014 14:56:50 +0000 (16:56 +0200)
commit48b19dc8a5307db7f6115724f9bf3c41acbcc2b8
treee2d8bfbeb600cc7b5e4a8207466de8f6950ff0e1
parent21861467177cce2d160f15d2c386b5f2076988a9
tracing: Fix graph tracer with stack tracer on other archs

commit 5f8bf2d263a20b986225ae1ed7d6759dc4b93af9 upstream.

Running my ftrace tests on PowerPC, it failed the test that checks
if function_graph tracer is affected by the stack tracer. It was.
Looking into this, I found that the update_function_graph_func()
must be called even if the trampoline function is not changed.
This is because archs like PowerPC do not support ftrace_ops being
passed by assembly and instead uses a helper function (what the
trampoline function points to). Since this function is not changed
even when multiple ftrace_ops are added to the code, the test that
falls out before calling update_function_graph_func() will miss that
the update must still be done.

Call update_function_graph_function() for all calls to
update_ftrace_function()

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
kernel/trace/ftrace.c