tracing: Save both wakee and current on wakeup events
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 11 Feb 2022 00:36:05 +0000 (19:36 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 11 Feb 2022 03:27:41 +0000 (22:27 -0500)
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) <rostedt@goodmis.org>
kernel/trace/trace_sched_switch.c

index e304196d7c2853ae0056c06c78d74819468265ca..5cd33be2031b518222dd1520b022f7225aaa8b7a 100644 (file)
@@ -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)