ftrace: Allow to remove a single function from function graph filter
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 10 Feb 2010 07:43:04 +0000 (15:43 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 11 Feb 2010 19:32:38 +0000 (14:32 -0500)
commitc7c6b1fe9f942c1a30585ec2210a09dfff238506
treede7780b1b6cff9c8f33c9de1240a0b19bea9aa94
parentede55c9d78101fef0d8e620940a5163f14b02f29
ftrace: Allow to remove a single function from function graph filter

I don't see why we can only clear all functions from the filter.

After patching:

  # echo sys_open > set_graph_function
  # echo sys_close >> set_graph_function
  # cat set_graph_function
  sys_open
  sys_close
  # echo '!sys_close' >> set_graph_function
  # cat set_graph_function
  sys_open

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4B726388.2000408@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.h