ftrace: Only update the function code on write to filter files
authorSteven Rostedt <srostedt@redhat.com>
Sat, 30 Apr 2011 02:35:33 +0000 (22:35 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 30 Apr 2011 02:42:59 +0000 (22:42 -0400)
commit058e297d34a404caaa5ed277de15698d8dc43000
tree0a4cfa547a4cf466f8c746978ff5fe464cbe88ab
parent2bce5daca28346f19c190dbdb5542c9fe3e8c6e6
ftrace: Only update the function code on write to filter files

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.

Cc: stable@kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c