]> git.baikalelectronics.ru Git - kernel.git/commit
function_graph: Do not expose the graph_time option when profiler is not configured
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 23 Nov 2018 18:06:07 +0000 (13:06 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 9 Dec 2018 01:54:06 +0000 (20:54 -0500)
commitb24f64227e1c9686501c3059083a0b9521ec6882
tree8f21cbbe70a8ab021f793cefa8f1045721809338
parent53e48c9a889347fb1687de28926466d672a4c078
function_graph: Do not expose the graph_time option when profiler is not configured

When the function profiler is not configured, the "graph_time" option is
meaningless, as the function profiler is the only thing that makes use of
it. Do not expose it if the profiler is not configured.

Link: http://lkml.kernel.org/r/20181123061133.GA195223@google.com
Reported-by: Joel Fernandes <joel@joelfernandes.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.h
kernel/trace/trace_functions_graph.c