aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-02 21:38:33 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-03 00:26:12 -0500
commit79fb0768fbd371f3b94d909f51f587b3a24ab272 (patch)
treef8a891fcfae6eb9eeef10e9f8b343b813371789c /kernel/trace/trace.c
parentb2821ae68b14480bfc85ea1629537163310bc5cd (diff)
trace: let boot trace be chosen by command line
Now that we have a working ftrace=<tracer> function, make the boot tracer get activated by it. This way we can turn it on or off without recompiling the kernel, as well as keeping the selftests on. The selftests are disabled whenever a default tracer starts running. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 2c720c79bc60..40edef4255c5 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3167,12 +3167,9 @@ __init static int tracer_alloc_buffers(void)
3167 trace_init_cmdlines(); 3167 trace_init_cmdlines();
3168 3168
3169 register_tracer(&nop_trace); 3169 register_tracer(&nop_trace);
3170 current_trace = &nop_trace;
3170#ifdef CONFIG_BOOT_TRACER 3171#ifdef CONFIG_BOOT_TRACER
3171 register_tracer(&boot_tracer); 3172 register_tracer(&boot_tracer);
3172 current_trace = &boot_tracer;
3173 current_trace->init(&global_trace);
3174#else
3175 current_trace = &nop_trace;
3176#endif 3173#endif
3177 /* All seems OK, enable tracing */ 3174 /* All seems OK, enable tracing */
3178 tracing_disabled = 0; 3175 tracing_disabled = 0;