aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_boot.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2008-10-31 08:20:08 -0400
committerIngo Molnar <mingo@elte.hu>2008-11-04 11:14:06 -0500
commitd7ad44b697c9d13e445ddc7d16f736fbac333249 (patch)
treea18ac8995bf7158835c69ca1c9ab9b674fc617fa /kernel/trace/trace_boot.c
parente55f605c14679c30be41473e60b7ad26524cdc35 (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_boot.c')
-rw-r--r--kernel/trace/trace_boot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/trace_boot.c b/kernel/trace/trace_boot.c
index d104d5b46413..6bbc8794a6df 100644
--- a/kernel/trace/trace_boot.c
+++ b/kernel/trace/trace_boot.c
@@ -27,10 +27,14 @@ void start_boot_trace(void)
27 27
28void enable_boot_trace(void) 28void enable_boot_trace(void)
29{ 29{
30 if (pre_initcalls_finished)
31 tracing_start_cmdline_record();
30} 32}
31 33
32void disable_boot_trace(void) 34void disable_boot_trace(void)
33{ 35{
36 if (pre_initcalls_finished)
37 tracing_stop_cmdline_record();
34} 38}
35 39
36void reset_boot_trace(struct trace_array *tr) 40void reset_boot_trace(struct trace_array *tr)
@@ -45,6 +49,8 @@ static void boot_trace_init(struct trace_array *tr)
45 49
46 for_each_cpu_mask(cpu, cpu_possible_map) 50 for_each_cpu_mask(cpu, cpu_possible_map)
47 tracing_reset(tr, cpu); 51 tracing_reset(tr, cpu);
52
53 sched_switch_trace.init(tr);
48} 54}
49 55
50static void boot_trace_ctrl_update(struct trace_array *tr) 56static void boot_trace_ctrl_update(struct trace_array *tr)