diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2008-10-31 08:20:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-04 11:14:06 -0500 |
commit | d7ad44b697c9d13e445ddc7d16f736fbac333249 (patch) | |
tree | a18ac8995bf7158835c69ca1c9ab9b674fc617fa /kernel/trace/trace.c | |
parent | e55f605c14679c30be41473e60b7ad26524cdc35 (diff) |
tracing/fastboot: use sched switch tracer from boot tracer
Impact: enhance boot trace output with scheduling events
Use the sched_switch tracer from the boot tracer.
We also can trace schedule events inside the initcalls.
Sched tracing is disabled after the initcall has finished and
then reenabled before the next one is started.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index e4c40c868d67..50d7018163f6 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -3251,6 +3251,8 @@ __init static int tracer_alloc_buffers(void) | |||
3251 | 3251 | ||
3252 | register_tracer(&nop_trace); | 3252 | register_tracer(&nop_trace); |
3253 | #ifdef CONFIG_BOOT_TRACER | 3253 | #ifdef CONFIG_BOOT_TRACER |
3254 | /* We don't want to launch sched_switch tracer yet */ | ||
3255 | global_trace.ctrl = 0; | ||
3254 | register_tracer(&boot_tracer); | 3256 | register_tracer(&boot_tracer); |
3255 | current_trace = &boot_tracer; | 3257 | current_trace = &boot_tracer; |
3256 | current_trace->init(&global_trace); | 3258 | current_trace->init(&global_trace); |