]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ftrace: Consistently restore trace function on sysctl enabling
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 26 Mar 2013 16:53:03 +0000 (17:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 16:18:09 +0000 (09:18 -0700)
commitd510800edaf1e0e48f8778114682a1586fc9aaa9
tree16d3936378e27f10a33cab0c1a9b2d050f709117
parent48631b65db235d68acbde42a1cb6804afbfd283e
ftrace: Consistently restore trace function on sysctl enabling

commit 5000c418840b309251c5887f0b56503aae30f84c upstream.

If we reenable ftrace via syctl, we currently set ftrace_trace_function
based on the previous simplistic algorithm. This is inconsistent with
what update_ftrace_function does. So better call that helper instead.

Link: http://lkml.kernel.org/r/5151D26F.1070702@siemens.com
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/ftrace.c