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>
This commit is contained in:
Steven Rostedt
2008-05-12 21:21:00 +02:00
committed by Thomas Gleixner
parent 4fcdae83ce
commit 25b0b44a1c
4 changed files with 15 additions and 3 deletions

View File

@@ -620,7 +620,12 @@ static unsigned map_cmdline_to_pid[SAVED_CMDLINES];
static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN];
static int cmdline_idx;
static DEFINE_SPINLOCK(trace_cmdline_lock);
atomic_t trace_record_cmdline_disabled;
/* trace in all context switches */
atomic_t trace_record_cmdline_enabled __read_mostly;
/* temporary disable recording */
atomic_t trace_record_cmdline_disabled __read_mostly;
static void trace_init_cmdlines(void)
{