aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions.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_functions.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_functions.c')
-rw-r--r--kernel/trace/trace_functions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index 4165d34bd28a..0a084656d7cf 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -29,12 +29,14 @@ static void function_reset(struct trace_array *tr)
29static void start_function_trace(struct trace_array *tr) 29static void start_function_trace(struct trace_array *tr)
30{ 30{
31 function_reset(tr); 31 function_reset(tr);
32 atomic_inc(&trace_record_cmdline_enabled);
32 tracing_start_function_trace(); 33 tracing_start_function_trace();
33} 34}
34 35
35static void stop_function_trace(struct trace_array *tr) 36static void stop_function_trace(struct trace_array *tr)
36{ 37{
37 tracing_stop_function_trace(); 38 tracing_stop_function_trace();
39 atomic_dec(&trace_record_cmdline_enabled);
38} 40}
39 41
40static void function_trace_init(struct trace_array *tr) 42static void function_trace_init(struct trace_array *tr)