Commit 91baf628 authored by Li Zefan's avatar Li Zefan Committed by Frederic Weisbecker
Browse files

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: default avatarLi Zefan <>
Acked-by: default avatarSteven Rostedt <>
LKML-reference: <>
Signed-off-by: default avatarFrederic Weisbecker <>
parent 313254a9
......@@ -2552,10 +2552,9 @@ ftrace_set_func(unsigned long *array, int *idx, char *buffer)
exists = true;
if (!exists) {
if (!exists)
array[(*idx)++] = rec->ip;
found = 1;
found = 1;
} while_for_each_ftrace_rec();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment