aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2009-12-07 22:15:45 -0500
committerFrederic Weisbecker <fweisbec@gmail.com>2009-12-13 12:37:26 -0500
commit91baf6285be7282cfa487de92f836c50749dffb9 (patch)
tree766544ebcc24fecf177eba5bd8be475cf3516eef /kernel/trace/ftrace.c
parent313254a9400d388b46150c0f355e216418a2f598 (diff)
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>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index ff8aecdc6dd6..7968762c8167 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2552,10 +2552,9 @@ ftrace_set_func(unsigned long *array, int *idx, char *buffer)
2552 exists = true; 2552 exists = true;
2553 break; 2553 break;
2554 } 2554 }
2555 if (!exists) { 2555 if (!exists)
2556 array[(*idx)++] = rec->ip; 2556 array[(*idx)++] = rec->ip;
2557 found = 1; 2557 found = 1;
2558 }
2559 } 2558 }
2560 } while_for_each_ftrace_rec(); 2559 } while_for_each_ftrace_rec();
2561 2560