We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c40583e commit a325742Copy full SHA for a325742
include/trace/events/sched.h
@@ -239,11 +239,11 @@ TRACE_EVENT(sched_switch,
239
),
240
241
TP_fast_assign(
242
- memcpy(__entry->next_comm, next->comm, TASK_COMM_LEN);
+ memcpy(__entry->prev_comm, prev->comm, TASK_COMM_LEN);
243
__entry->prev_pid = prev->pid;
244
__entry->prev_prio = prev->prio;
245
__entry->prev_state = __trace_sched_switch_state(preempt, prev_state, prev);
246
- memcpy(__entry->prev_comm, prev->comm, TASK_COMM_LEN);
+ memcpy(__entry->next_comm, next->comm, TASK_COMM_LEN);
247
__entry->next_pid = next->pid;
248
__entry->next_prio = next->prio;
249
/* XXX SCHED_DEADLINE */
0 commit comments