aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Raillard <[email protected]>2023-03-06 12:27:43 +0000
committerPaul E. McKenney <[email protected]>2023-03-22 14:05:24 -0700
commitd18a04157fc171fd48075e3dc96471bd3b87f0dd (patch)
tree4519bf2f4f1d97dde3f8ade25201ea09e72b3b6b
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
rcu: Fix rcu_torture_read ftrace event
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 <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Cc: [email protected] Fixes: 04ae87a52074e ("ftrace: Rework event_create_dir()") Reviewed-by: Steven Rostedt (Google) <[email protected]> [ boqun: Add "Cc" and "Fixes" tags per Steven ] Signed-off-by: Boqun Feng <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
-rw-r--r--include/trace/events/rcu.h2
1 files changed, 1 insertions, 1 deletions
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)