Thread (18 messages) 18 messages, 2 authors, 2023-08-03

[RFC PATCH v4 1/7] libtraceevent: sync state char array with the kernel

From: Ze Gao <hidden>
Date: 2023-08-02 12:11:37
Also in: linux-perf-users, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Update state char array to match the latest kernel
definitions.

Signed-off-by: Ze Gao <redacted>
---
 plugins/plugin_sched_switch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/plugin_sched_switch.c b/plugins/plugin_sched_switch.c
index 8752cae..e0986ac 100644
--- a/plugins/plugin_sched_switch.c
+++ b/plugins/plugin_sched_switch.c
@@ -11,7 +11,7 @@
 
 static void write_state(struct trace_seq *s, int val)
 {
-	const char states[] = "SDTtZXxW";
+	const char states[] = "SDTtXZPI";
 	int found = 0;
 	int i;
 
-- 
2.41.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help