tracing: Do not create function tracer options when not compiled in
When the function tracer is not compiled in, do not create the option files for it. Fix up both the sched_wakeup and irqsoff tracers to handle the change. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
committed by
Steven Rostedt
parent
4ee4301c4b
commit
8179e8a15b
@@ -490,11 +490,11 @@ static inline void ftrace_trace_stack(struct ring_buffer *buffer,
|
||||
|
||||
/* trace_flags holds trace_options default values */
|
||||
unsigned long trace_flags =
|
||||
FUNCTION_GRAPH_DEFAULT_FLAGS |
|
||||
FUNCTION_DEFAULT_FLAGS | FUNCTION_GRAPH_DEFAULT_FLAGS |
|
||||
TRACE_ITER_PRINT_PARENT | TRACE_ITER_PRINTK |
|
||||
TRACE_ITER_ANNOTATE | TRACE_ITER_CONTEXT_INFO |
|
||||
TRACE_ITER_RECORD_CMD | TRACE_ITER_OVERWRITE |
|
||||
TRACE_ITER_IRQ_INFO | TRACE_ITER_MARKERS | TRACE_ITER_FUNCTION
|
||||
TRACE_ITER_IRQ_INFO | TRACE_ITER_MARKERS
|
||||
;
|
||||
|
||||
static void tracer_tracing_on(struct trace_array *tr)
|
||||
|
||||
Reference in New Issue
Block a user