diff options
author | Douglas Raillard <douglas.raillard@arm.com> | 2023-03-06 12:27:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-05 11:23:51 +0200 |
commit | a484f8bec8ee33e596d6936241bb397e76144ef8 (patch) | |
tree | 6ddc02e8d12da8b677cdda3e84cc9f7ef7198a7f | |
parent | 08bfd05987df2756aaf7b2b8f014c4cdcc6bcb39 (diff) | |
download | linux-stable-a484f8bec8ee33e596d6936241bb397e76144ef8.tar.gz linux-stable-a484f8bec8ee33e596d6936241bb397e76144ef8.tar.bz2 linux-stable-a484f8bec8ee33e596d6936241bb397e76144ef8.zip |
rcu: Fix rcu_torture_read ftrace event
commit d18a04157fc171fd48075e3dc96471bd3b87f0dd upstream.
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>
Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com>
Cc: stable@vger.kernel.org
Fixes: 04ae87a52074e ("ftrace: Rework event_create_dir()")
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
[ boqun: Add "Cc" and "Fixes" tags per Steven ]
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/trace/events/rcu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/rcu.h b/include/trace/events/rcu.h index 155b5cb43cfd..2d8790e40901 100644 --- a/include/trace/events/rcu.h +++ b/include/trace/events/rcu.h @@ -713,7 +713,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) |