summaryrefslogtreecommitdiff
path: root/tools/bpf
diff options
context:
space:
mode:
authorSanjayKumar Jeyakumar <vjsanjay@gmail.com>2021-07-07 08:29:14 +0300
committerAndrii Nakryiko <andrii@kernel.org>2021-07-07 19:42:26 +0300
commit5616e895ecc56db8ba959e53638031a21353e0e2 (patch)
tree74e4db540f177d59973f152fa5fc280a619328b9 /tools/bpf
parentaf0efa050caa66e8f304c42c94c76cb6c480cb7e (diff)
downloadlinux-5616e895ecc56db8ba959e53638031a21353e0e2.tar.xz
tools/runqslower: Use __state instead of state
Commit 2f064a59a11f ("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: 2f064a59a11f ("sched: Change task_struct::state") Signed-off-by: SanjayKumar Jeyakumar <vjsanjay@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20210707052914.21473-1-vjsanjay@gmail.com
Diffstat (limited to 'tools/bpf')
-rw-r--r--tools/bpf/runqslower/runqslower.bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/runqslower/runqslower.bpf.c b/tools/bpf/runqslower/runqslower.bpf.c
index 645530ca7e98..ab9353f2fd46 100644
--- a/tools/bpf/runqslower/runqslower.bpf.c
+++ b/tools/bpf/runqslower/runqslower.bpf.c
@@ -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;