OSDN Git Service

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)
commite704eff3ff5138a462443dcd64d071165df18782
tree2385738f4348edc9a1d2f24eda78e5b78ef52497
parent649b988b12ddb9aed16047a3d9bb4d7bfdb47221
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