Skip to content

Commit

Permalink
tools/runqslower: Use __state instead of state
Browse files Browse the repository at this point in the history
Commit 2f064a5 ("sched: Change task_struct::state") renamed task->state
to task->__state in task_struct. Fix runqslower to use the new name of the
field.

Fixes: 2f064a5 ("sched: Change task_struct::state")
Signed-off-by: SanjayKumar Jeyakumar <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
vjsanjay authored and anakryiko committed Jul 7, 2021
1 parent af0efa0 commit 5616e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bpf/runqslower/runqslower.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int handle__sched_switch(u64 *ctx)
u32 pid;

/* ivcsw: treat like an enqueue event and store timestamp */
if (prev->state == TASK_RUNNING)
if (prev->__state == TASK_RUNNING)
trace_enqueue(prev);

pid = next->pid;
Expand Down

0 comments on commit 5616e89

Please sign in to comment.