Linux Trace Kernel
 help / color / mirror / Atom feed
* [PATCH] rcu: Fix rcu_torture_read ftrace event
@ 2023-03-06 12:27 Douglas RAILLARD
  2023-03-06 12:54 ` Mukesh Ojha
  2023-03-20 15:20 ` Steven Rostedt
  0 siblings, 2 replies; 6+ messages in thread
From: Douglas RAILLARD @ 2023-03-06 12:27 UTC (permalink / raw)
  To: douglas.raillard, Steven Rostedt, Masami Hiramatsu,
	open list:TRACING, open list:TRACING

From: Douglas Raillard <douglas.raillard@arm.com>

Fix the rcutorturename field so that its size is correctly reported in
the text format embedded in trace.dat files. As it stands, it is
reported as being of size 1:

    field:char rcutorturename[8];   offset:8;       size:1; signed:0;

Signed-off-by: Douglas Raillard <douglas.raillard@arm.com>
---
 include/trace/events/rcu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h
index 90b2fb0292cb..012fa0d171b2 100644
--- a/include/trace/events/rcu.h
+++ b/include/trace/events/rcu.h
@@ -768,7 +768,7 @@ TRACE_EVENT_RCU(rcu_torture_read,
 	TP_ARGS(rcutorturename, rhp, secs, c_old, c),
 
 	TP_STRUCT__entry(
-		__field(char, rcutorturename[RCUTORTURENAME_LEN])
+		__array(char, rcutorturename, RCUTORTURENAME_LEN)
 		__field(struct rcu_head *, rhp)
 		__field(unsigned long, secs)
 		__field(unsigned long, c_old)
-- 
2.25.1


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

end of thread, other threads:[~2023-03-20 18:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06 12:27 [PATCH] rcu: Fix rcu_torture_read ftrace event Douglas RAILLARD
2023-03-06 12:54 ` Mukesh Ojha
2023-03-20 15:20 ` Steven Rostedt
2023-03-20 16:58   ` Paul E. McKenney
2023-03-20 17:36     ` Steven Rostedt
2023-03-20 18:49       ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox