[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210706181456.17321-1-vjsanjay@gmail.com>
Date: Tue, 6 Jul 2021 23:44:55 +0530
From: SanjayKumar J <vjsanjay@...il.com>
To: ast@...nel.org, daniel@...earbox.net, andrii@...nel.org,
kafai@...com, songliubraving@...com, yhs@...com,
john.fastabend@...il.com, kpsingh@...nel.org
Cc: SanjayKumar J <vjsanjay@...il.com>, netdev@...r.kernel.org,
bpf@...r.kernel.org
Subject: [PATCH v2] tools/runqslower: use __state instead of state
task->state is renamed to task->__state in task_struct
Signed-off-by: SanjayKumar J <vjsanjay@...il.com>
---
tools/bpf/runqslower/runqslower.bpf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.32.0
Powered by blists - more mailing lists