ftrace: Update filter when tracing enabled in set_ftrace_filter()
authorSteven Rostedt <srostedt@redhat.com>
Wed, 13 Jul 2011 19:08:31 +0000 (15:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:18:54 +0000 (09:18 -0800)
commit2ffe3ccf80eba0ac9ca71c41e7357d92f1c08fc3
treeb25759efa685d002b043e657fa3d05624c85eaaa
parentf935e6192f9e068da8f8395f032ff4b721fe8510
ftrace: Update filter when tracing enabled in set_ftrace_filter()

commit 072126f4529196f71a97960248bca54fd4554c2d upstream.

Currently, if set_ftrace_filter() is called when the ftrace_ops is
active, the function filters will not be updated. They will only be updated
when tracing is disabled and re-enabled.

Update the functions immediately during set_ftrace_filter().

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