]> git.kernelconcepts.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:52:07 +0000 (09:52 -0700)
commit55c823de4a6973acb4f849e8010f8b99b9205a71
tree4b410012ce7634bf0f4b0c84c36de6a5f0227362
parent49ea36e6238b3953cc45167104cd55a1d4f794a9
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