mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
4fcdae83ce
commit
25b0b44a1c
4 changed files with 15 additions and 3 deletions
|
@ -29,12 +29,14 @@ static void function_reset(struct trace_array *tr)
|
|||
static void start_function_trace(struct trace_array *tr)
|
||||
{
|
||||
function_reset(tr);
|
||||
atomic_inc(&trace_record_cmdline_enabled);
|
||||
tracing_start_function_trace();
|
||||
}
|
||||
|
||||
static void stop_function_trace(struct trace_array *tr)
|
||||
{
|
||||
tracing_stop_function_trace();
|
||||
atomic_dec(&trace_record_cmdline_enabled);
|
||||
}
|
||||
|
||||
static void function_trace_init(struct trace_array *tr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue