]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
tracing/sysprof: add missing tracing_{start,stop}_record_cmdline()
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 10 Feb 2009 14:49:11 +0000 (15:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 11 Feb 2009 11:55:19 +0000 (12:55 +0100)
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>
kernel/trace/Kconfig
kernel/trace/trace_sysprof.c

index 3a331289457ab85b601fa2e0c95d493bdfeee6b4..6ff928acd453ed300bdf553a5316c91ac7ffc086 100644 (file)
@@ -134,6 +134,7 @@ config SYSPROF_TRACER
        bool "Sysprof Tracer"
        depends on X86
        select TRACING
+       select CONTEXT_SWITCH_TRACER
        help
          This tracer provides the trace needed by the 'Sysprof' userspace
          tool.
index 84ca9d81e74dfd18136c3b5d99c910c50666e43a..9902c15997ad8b295ac8106849e837ba491d9bb6 100644 (file)
@@ -238,6 +238,8 @@ static int stack_trace_init(struct trace_array *tr)
 {
        sysprof_trace = tr;
 
+       tracing_start_cmdline_record();
+
        mutex_lock(&sample_timer_lock);
        start_stack_timers();
        tracer_enabled = 1;
@@ -247,6 +249,7 @@ static int stack_trace_init(struct trace_array *tr)
 
 static void stack_trace_reset(struct trace_array *tr)
 {
+       tracing_stop_cmdline_record();
        stop_stack_trace(tr);
 }