[PATCH bpf v4] tools/runqslower: use __state instead of state

Subsystems: bpf [general] (safe dynamic programs and tools), the rest

STALE1875d LANDED: 1 (0M)

1 review trailer; landed in mainline as 5616e895ecc5 on 2021-07-07.

2 messages, 2 authors, 2021-07-07 · open the first message on its own page

[PATCH bpf v4] tools/runqslower: use __state instead of state

From: SanjayKumar Jeyakumar <hidden>
Date: 2021-07-07 05:32:22

Commit 2f064a59a11f: sched: Change task_struct::state
renamed task->state to task->__state in task_struct

Acked-by: Yonghong Song <redacted>
Signed-off-by: SanjayKumar Jeyakumar <redacted>
---
 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

Re: [PATCH bpf v4] tools/runqslower: use __state instead of state

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-07-07 16:20:07

Hello:

This patch was applied to bpf/bpf.git (refs/heads/master):

On Wed,  7 Jul 2021 10:59:14 +0530 you wrote:
Commit 2f064a59a11f: sched: Change task_struct::state
renamed task->state to task->__state in task_struct

Acked-by: Yonghong Song <redacted>
Signed-off-by: SanjayKumar Jeyakumar <redacted>
---
 tools/bpf/runqslower/runqslower.bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
  - [bpf,v4] tools/runqslower: use __state instead of state
    https://git.kernel.org/bpf/bpf/c/cced7490b172

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help