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_boot.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_boot.c')
-rw-r--r-- | kernel/trace/trace_boot.c | 6 |
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 | ||
28 | void enable_boot_trace(void) | 28 | void enable_boot_trace(void) |
29 | { | 29 | { |
30 | if (pre_initcalls_finished) | ||
31 | tracing_start_cmdline_record(); | ||
30 | } | 32 | } |
31 | 33 | ||
32 | void disable_boot_trace(void) | 34 | void disable_boot_trace(void) |
33 | { | 35 | { |
36 | if (pre_initcalls_finished) | ||
37 | tracing_stop_cmdline_record(); | ||
34 | } | 38 | } |
35 | 39 | ||
36 | void reset_boot_trace(struct trace_array *tr) | 40 | void 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 | ||
50 | static void boot_trace_ctrl_update(struct trace_array *tr) | 56 | static void boot_trace_ctrl_update(struct trace_array *tr) |