mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 00:26:34 +00:00
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:
parent
e55f605c14
commit
d7ad44b697
4 changed files with 12 additions and 3 deletions
|
@ -27,10 +27,14 @@ void start_boot_trace(void)
|
|||
|
||||
void enable_boot_trace(void)
|
||||
{
|
||||
if (pre_initcalls_finished)
|
||||
tracing_start_cmdline_record();
|
||||
}
|
||||
|
||||
void disable_boot_trace(void)
|
||||
{
|
||||
if (pre_initcalls_finished)
|
||||
tracing_stop_cmdline_record();
|
||||
}
|
||||
|
||||
void reset_boot_trace(struct trace_array *tr)
|
||||
|
@ -45,6 +49,8 @@ static void boot_trace_init(struct trace_array *tr)
|
|||
|
||||
for_each_cpu_mask(cpu, cpu_possible_map)
|
||||
tracing_reset(tr, cpu);
|
||||
|
||||
sched_switch_trace.init(tr);
|
||||
}
|
||||
|
||||
static void boot_trace_ctrl_update(struct trace_array *tr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue