trace: fix default boot up tracer
authorSteven Rostedt <srostedt@redhat.com>
Tue, 3 Feb 2009 02:38:32 +0000 (21:38 -0500)
committerIngo Molnar <mingo@elte.hu>
Tue, 3 Feb 2009 05:26:12 +0000 (06:26 +0100)
commitb2821ae68b14480bfc85ea1629537163310bc5cd
tree6d4d2e9501be502f765b8615225f5d1fdb22ab9f
parentdc573f9b20c8710105ac35c08ed0fe1da5160ecd
trace: fix default boot up tracer

Peter Zijlstra started the functionality to start up a default
tracing at bootup. This patch finishes the work.

Now if you add 'ftrace=<tracer>' to the command line, when that tracer
is registered on bootup, that tracer is selected and starts tracing.

Note, all selftests for tracers that are registered after this tracer
is disabled. This prevents the selftests from disturbing the running
tracer, or the running tracer from disturbing the selftest.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c