netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/runqslower: use __state  instead of state
@ 2021-07-06 17:44 SanjayKumar J
  2021-07-06 18:26 ` Yonghong Song
  0 siblings, 1 reply; 7+ messages in thread
From: SanjayKumar J @ 2021-07-06 17:44 UTC (permalink / raw)
  To: ast, daniel, andrii, kafai, songliubraving, yhs, john.fastabend,
	kpsingh
  Cc: SanjayKumar J, netdev, bpf

	task->state is renamed to task->__state in task_struct

	Signed-off-by: SanjayKumar J <vjsanjay@gmail.com>

Signed-off-by: SanjayKumar J <vjsanjay@gmail.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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-07  5:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-06 17:44 [PATCH] tools/runqslower: use __state instead of state SanjayKumar J
2021-07-06 18:26 ` Yonghong Song
2021-07-06 22:04   ` Andrii Nakryiko
2021-07-06 23:11     ` Song Liu
2021-07-07  4:03       ` Andrii Nakryiko
2021-07-07  4:23   ` Andrii Nakryiko
2021-07-07  5:35     ` Sanjay Kumar J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).