ftrace: Only update the function code on write to filter files
commite5664c3da9affbcca581c9a9d4a7a5dae3ca8826
authorSteven Rostedt <srostedt@redhat.com>
Sat, 30 Apr 2011 02:35:33 +0000 (29 22:35 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:33:35 +0000 (3 10:33 +0900)
tree4f5bdec4e39f80d8d4e0eb38b790169b88aaa1a2
parentad8ba6a764a5bb3a1e6f878b489b7842081e33fc
ftrace: Only update the function code on write to filter files

commit 058e297d34a404caaa5ed277de15698d8dc43000 upstream.

If function tracing is enabled, a read of the filter files will
cause the call to stop_machine to update the function trace sites.
It should only call stop_machine on write.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/trace/ftrace.c