diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-10-11 17:14:14 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-10-31 21:45:30 +0100 |
commit | 2b70e59043f5a5ec083ea50cd2640aa49c64c675 (patch) | |
tree | 467459fc991e1f49b9ff0d91a880185566b4b72f /kernel/trace/trace_sched_switch.c | |
parent | tracing: Enable comm recording if trace_printk() is used (diff) | |
download | linux-2b70e59043f5a5ec083ea50cd2640aa49c64c675.tar.xz linux-2b70e59043f5a5ec083ea50cd2640aa49c64c675.zip |
tracing: Have tracing_sched_wakeup_trace() use standard unlock_commit
The functon tracing_sched_wakeup_trace() does an open coded unlock
commit and save stack. This is what the trace_nowake_buffer_unlock_commit()
is for.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_sched_switch.c')
-rw-r--r-- | kernel/trace/trace_sched_switch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index 7e62c0a18456..b0a136ac382a 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c @@ -102,9 +102,7 @@ tracing_sched_wakeup_trace(struct trace_array *tr, entry->next_cpu = task_cpu(wakee); if (!filter_check_discard(call, entry, buffer, event)) - ring_buffer_unlock_commit(buffer, event); - ftrace_trace_stack(tr->buffer, flags, 6, pc); - ftrace_trace_userstack(tr->buffer, flags, pc); + trace_nowake_buffer_unlock_commit(buffer, event, flags, pc); } static void |