]> asedeno.scripts.mit.edu Git - linux.git/commit
fgraph: Have set_graph_notrace only affect function_graph tracer
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 14 Nov 2018 18:14:58 +0000 (13:14 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 30 Nov 2018 04:38:34 +0000 (23:38 -0500)
commit9cd2992f2d6c8df54c5b937d5d1f8a23b684cc1d
tree36c8b8ef56855bc2b623adea03e511bee3695023
parentd864a3ca883095aa12575b84841ebd52b3d808fa
fgraph: Have set_graph_notrace only affect function_graph tracer

In order to make the function graph infrastructure more generic, there can
not be code specific for the function_graph tracer in the generic code. This
includes the set_graph_notrace logic, that stops all graph calls when a
function in the set_graph_notrace is hit.

By using the trace_recursion mask, we can use a bit in the current
task_struct to implement the notrace code, and move the logic out of
fgraph.c and into trace_functions_graph.c and keeps it affecting only the
tracer and not all call graph callbacks.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/fgraph.c
kernel/trace/trace.h
kernel/trace/trace_functions_graph.c