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:
committed by
Thomas Gleixner
parent
4fcdae83ce
commit
25b0b44a1c
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user