linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 1/2] libtraceevent: sync state char array with the kernel
@ 2023-08-03  3:09 Ze Gao
  2023-08-03  3:09 ` [PATCH v6 2/2] libtraceevent: prefer to use prev_state_char introduced in sched_switch Ze Gao
  2023-12-06 22:55 ` [PATCH v6 1/2] libtraceevent: sync state char array with the kernel Steven Rostedt
  0 siblings, 2 replies; 5+ messages in thread
From: Ze Gao @ 2023-08-03  3:09 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: linux-trace-devel, Ze Gao

Update state char array to match the latest kernel
definitions.

Signed-off-by: Ze Gao <zegao@tencent.com>
---
 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


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

end of thread, other threads:[~2023-12-07 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03  3:09 [PATCH v6 1/2] libtraceevent: sync state char array with the kernel Ze Gao
2023-08-03  3:09 ` [PATCH v6 2/2] libtraceevent: prefer to use prev_state_char introduced in sched_switch Ze Gao
2023-12-06 22:55 ` [PATCH v6 1/2] libtraceevent: sync state char array with the kernel Steven Rostedt
2023-12-07  2:52   ` Ze Gao
2023-12-07 13:20     ` Steven Rostedt

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