diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-12 15:21:00 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:52:12 -0400 |
commit | 25b0b44a1c732ccfc58095cdd8438955a0a19fff (patch) | |
tree | 68d2577cc12d6fc6cf14508cdf2ce8fbbf85032b /kernel/trace/trace.c | |
parent | 4fcdae83cebda24b519a89d3dd976081fff1ca80 (diff) |
ftrace: fix comm on function trace output
In cleaning up of the sched_switch code, the function trace recording
of task comms was removed. This patch adds back the recording of comms
for function trace. The output of ftrace now has the task comm instead
of <...>.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index a102b11eacf2..1281969103b8 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -620,7 +620,12 @@ static unsigned map_cmdline_to_pid[SAVED_CMDLINES]; | |||
620 | static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN]; | 620 | static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN]; |
621 | static int cmdline_idx; | 621 | static int cmdline_idx; |
622 | static DEFINE_SPINLOCK(trace_cmdline_lock); | 622 | static DEFINE_SPINLOCK(trace_cmdline_lock); |
623 | atomic_t trace_record_cmdline_disabled; | 623 | |
624 | /* trace in all context switches */ | ||
625 | atomic_t trace_record_cmdline_enabled __read_mostly; | ||
626 | |||
627 | /* temporary disable recording */ | ||
628 | atomic_t trace_record_cmdline_disabled __read_mostly; | ||
624 | 629 | ||
625 | static void trace_init_cmdlines(void) | 630 | static void trace_init_cmdlines(void) |
626 | { | 631 | { |