]> 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)
commit33c4d6d1c0842b1d04c1f1cba11fb23c038591c4
tree2385738f4348edc9a1d2f24eda78e5b78ef52497
parentf1d8b66d568072ca387aafd92e994d8bda40024e
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