Skip to content

Commit 2b70e59

Browse files
Steven Rostedtrostedt
authored andcommitted
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 <[email protected]>
1 parent 8169883 commit 2b70e59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kernel/trace/trace_sched_switch.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ tracing_sched_wakeup_trace(struct trace_array *tr,
102102
entry->next_cpu = task_cpu(wakee);
103103

104104
if (!filter_check_discard(call, entry, buffer, event))
105-
ring_buffer_unlock_commit(buffer, event);
106-
ftrace_trace_stack(tr->buffer, flags, 6, pc);
107-
ftrace_trace_userstack(tr->buffer, flags, pc);
105+
trace_nowake_buffer_unlock_commit(buffer, event, flags, pc);
108106
}
109107

110108
static void

0 commit comments

Comments
 (0)