function-graph: Allow writing the same val to set_graph_function
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 8 Dec 2009 03:15:45 +0000 (11:15 +0800)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 13 Dec 2009 17:37:26 +0000 (18:37 +0100)
commit91baf6285be7282cfa487de92f836c50749dffb9
tree766544ebcc24fecf177eba5bd8be475cf3516eef
parent313254a9400d388b46150c0f355e216418a2f598
function-graph: Allow writing the same val to set_graph_function

# echo 'do_open' > set_graph_function
 # echo 'do_open' >> set_graph_function
 bash: echo: write error: Invalid argument

Make it valid to write the same value to set_graph_function,
which is consistent with set_ftrace_filter interface.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
LKML-reference: <4B1DC4E1.1060303@cn.fujitsu.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/trace/ftrace.c