diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-07 22:36:02 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-08 03:51:18 -0500 |
commit | e168e0516e476070faa9e8e7b23dfcba79b76d82 (patch) | |
tree | 21b1bad3def7f6cd88d9adfe1b09973fc70f864a /kernel/trace/trace_boot.c | |
parent | 75f5c47da386445ba0c5a8b7e3ca0c906e763369 (diff) |
ftrace: fix sched_switch API
Impact: fix for sched_switch that broke dynamic ftrace startup
The commit: tracing/fastboot: use sched switch tracer from boot tracer
broke the API of the sched_switch trace. The use of the
tracing_start/stop_cmdline record is for only recording the cmdline,
NOT recording the schedule switches themselves.
Seeing that the boot tracer broke the API to do something that it
wanted, this patch adds a new interface for the API while
puting back the original interface of the old API.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Acked-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, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_boot.c b/kernel/trace/trace_boot.c index 662cb9198906..0203c1054012 100644 --- a/kernel/trace/trace_boot.c +++ b/kernel/trace/trace_boot.c | |||
@@ -28,13 +28,13 @@ void start_boot_trace(void) | |||
28 | void enable_boot_trace(void) | 28 | void enable_boot_trace(void) |
29 | { | 29 | { |
30 | if (pre_initcalls_finished) | 30 | if (pre_initcalls_finished) |
31 | tracing_start_cmdline_record(); | 31 | tracing_start_sched_switch_record(); |
32 | } | 32 | } |
33 | 33 | ||
34 | void disable_boot_trace(void) | 34 | void disable_boot_trace(void) |
35 | { | 35 | { |
36 | if (pre_initcalls_finished) | 36 | if (pre_initcalls_finished) |
37 | tracing_stop_cmdline_record(); | 37 | tracing_stop_sched_switch_record(); |
38 | } | 38 | } |
39 | 39 | ||
40 | static void reset_boot_trace(struct trace_array *tr) | 40 | static void reset_boot_trace(struct trace_array *tr) |
@@ -55,7 +55,7 @@ static void boot_trace_init(struct trace_array *tr) | |||
55 | for_each_cpu_mask(cpu, cpu_possible_map) | 55 | for_each_cpu_mask(cpu, cpu_possible_map) |
56 | tracing_reset(tr, cpu); | 56 | tracing_reset(tr, cpu); |
57 | 57 | ||
58 | tracing_cmdline_assign_trace(tr); | 58 | tracing_sched_switch_assign_trace(tr); |
59 | } | 59 | } |
60 | 60 | ||
61 | static void boot_trace_ctrl_update(struct trace_array *tr) | 61 | static void boot_trace_ctrl_update(struct trace_array *tr) |