diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-02-10 09:49:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-11 06:55:19 -0500 |
commit | b22f4858126a6aa852ad745b94f6b25dbdea708e (patch) | |
tree | 6dc35af9c91144e45938a1fb6c0f28bcd685d50d /kernel/trace/trace_sysprof.c | |
parent | d524e03207591a6de7e6b5069aabc778e3f0f5f8 (diff) |
tracing/sysprof: add missing tracing_{start,stop}_record_cmdline()
Add the missing pair tracing_{start,stop}_record_cmdline() to record well
the cmdline associated with pid.
Changes in v2:
- fix a build error, the sched_switch tracer is needed to record the
cmdline.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_sysprof.c')
-rw-r--r-- | kernel/trace/trace_sysprof.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace_sysprof.c b/kernel/trace/trace_sysprof.c index 84ca9d81e74d..9902c15997ad 100644 --- a/kernel/trace/trace_sysprof.c +++ b/kernel/trace/trace_sysprof.c | |||
@@ -238,6 +238,8 @@ static int stack_trace_init(struct trace_array *tr) | |||
238 | { | 238 | { |
239 | sysprof_trace = tr; | 239 | sysprof_trace = tr; |
240 | 240 | ||
241 | tracing_start_cmdline_record(); | ||
242 | |||
241 | mutex_lock(&sample_timer_lock); | 243 | mutex_lock(&sample_timer_lock); |
242 | start_stack_timers(); | 244 | start_stack_timers(); |
243 | tracer_enabled = 1; | 245 | tracer_enabled = 1; |
@@ -247,6 +249,7 @@ static int stack_trace_init(struct trace_array *tr) | |||
247 | 249 | ||
248 | static void stack_trace_reset(struct trace_array *tr) | 250 | static void stack_trace_reset(struct trace_array *tr) |
249 | { | 251 | { |
252 | tracing_stop_cmdline_record(); | ||
250 | stop_stack_trace(tr); | 253 | stop_stack_trace(tr); |
251 | } | 254 | } |
252 | 255 | ||