]> git.baikalelectronics.ru Git - kernel.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)
commita0cb1cc7ff0f330b4ae2048751ddcf9b1dc900ed
tree36c8b8ef56855bc2b623adea03e511bee3695023
parent90a18958d11036cf7fee982188ffc00d05c1ce9f
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