Skip to content

Commit 49833fc

Browse files
Steven RostedtIngo Molnar
authored andcommitted
ftrace: enable trace_printk by default
Impact: have the ftrace_printk enabled on startup It is confusing to have to "echo trace_printk > /debug/tracing/iter_ctrl" after adding ftrace_printk in the kernel. Currently the trace_printk is set to off by default. ftrace_printk should only be in open kernel code when used for debugging, and thus it should be enabled by default. It may also be used to record data within a tracer, but those ftrace_printks should be within wrappers that are either enabled by trace_points or have a variable protecting the code path from being entered when the tracer is disabled. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 4519317 commit 49833fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/trace/trace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static DEFINE_MUTEX(trace_types_lock);
205205
static DECLARE_WAIT_QUEUE_HEAD(trace_wait);
206206

207207
/* trace_flags holds iter_ctrl options */
208-
unsigned long trace_flags = TRACE_ITER_PRINT_PARENT;
208+
unsigned long trace_flags = TRACE_ITER_PRINT_PARENT | TRACE_ITER_PRINTK;
209209

210210
/**
211211
* trace_wake_up - wake up tasks waiting for trace input

0 commit comments

Comments
 (0)