]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Have set_graph_function handle multiple functions in one write
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Feb 2017 01:34:37 +0000 (20:34 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Feb 2017 15:59:52 +0000 (10:59 -0500)
commit92c4b56e574dd7f53adcaa9afd802e26ff5a0fa8
tree2385738f4348edc9a1d2f24eda78e5b78ef52497
parent9fb24b787665d04d70b839dd694d2a6499ab6bae
ftrace: Have set_graph_function handle multiple functions in one write

Currently, only one function can be written to set_graph_function and
set_graph_notrace. The last function in the list will have saved, even
though other functions will be added then removed.

Change the behavior to be the same as set_ftrace_function as to allow
multiple functions to be written. If any one fails, none of them will be
added. The addition of the functions are done at the end when the file is
closed.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c