aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-05-12 15:21:00 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 15:52:12 -0400
commit25b0b44a1c732ccfc58095cdd8438955a0a19fff (patch)
tree68d2577cc12d6fc6cf14508cdf2ce8fbbf85032b /kernel/trace/trace.c
parent4fcdae83cebda24b519a89d3dd976081fff1ca80 (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.c7
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];
620static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN]; 620static char saved_cmdlines[SAVED_CMDLINES][TASK_COMM_LEN];
621static int cmdline_idx; 621static int cmdline_idx;
622static DEFINE_SPINLOCK(trace_cmdline_lock); 622static DEFINE_SPINLOCK(trace_cmdline_lock);
623atomic_t trace_record_cmdline_disabled; 623
624/* trace in all context switches */
625atomic_t trace_record_cmdline_enabled __read_mostly;
626
627/* temporary disable recording */
628atomic_t trace_record_cmdline_disabled __read_mostly;
624 629
625static void trace_init_cmdlines(void) 630static void trace_init_cmdlines(void)
626{ 631{