From: Steven Rostedt (Google) Date: Fri, 11 Feb 2022 00:36:05 +0000 (-0500) Subject: tracing: Save both wakee and current on wakeup events X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=55bc8384d3deadce48923d8329c1434494c52273;p=linux.git tracing: Save both wakee and current on wakeup events Use the sched_switch function to save both the wakee and the waker comms in the saved cmdlines list when sched_wakeup is done. Signed-off-by: Steven Rostedt (Google) --- diff --git a/kernel/trace/trace_sched_switch.c b/kernel/trace/trace_sched_switch.c index e304196d7c285..5cd33be2031b5 100644 --- a/kernel/trace/trace_sched_switch.c +++ b/kernel/trace/trace_sched_switch.c @@ -44,7 +44,7 @@ probe_sched_wakeup(void *ignore, struct task_struct *wakee) if (!flags) return; - tracing_record_taskinfo(current, flags); + tracing_record_taskinfo_sched_switch(current, wakee, flags); } static int tracing_sched_register(void)