Skip to contentSkip to conversation

tools/runqslower: use __state instead of state

PATCH Applied SanjayKumar Jeyakumar 2 participants 2 messages Jul 7, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 tools/runqslower: use __state instead of state

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

---
 tools/bpf/runqslower/runqslower.bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/bpf/runqslower/runqslower.bpf.c +1 -1
index 645530ca7e98..ab9353f2fd46 100644
@@ -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;
Signature · 1 line
2.32.0
#1 lore raw
This patch was applied to bpf/bpf.git (refs/heads/master):

Hello:

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

Quoted 8 lines · 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

---
 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