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>
This commit is contained in:
committed by
Ingo Molnar
parent
e55f605c14
commit
d7ad44b697
@@ -3251,6 +3251,8 @@ __init static int tracer_alloc_buffers(void)
|
||||
|
||||
register_tracer(&nop_trace);
|
||||
#ifdef CONFIG_BOOT_TRACER
|
||||
/* We don't want to launch sched_switch tracer yet */
|
||||
global_trace.ctrl = 0;
|
||||
register_tracer(&boot_tracer);
|
||||
current_trace = &boot_tracer;
|
||||
current_trace->init(&global_trace);
|
||||
|
||||
Reference in New Issue
Block a user