diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2020-05-01 16:49:48 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-06-29 11:58:49 -0700 |
commit | e816d56fad57ba9817cef6606b12f5e14647c3bf (patch) | |
tree | 246c1262e13082eb2356f31fc092cdf06a6f84c8 /kernel/rcu/tree.h | |
parent | abfce0414814149f716e1d30da1fb3140d1b3473 (diff) | |
download | lwn-e816d56fad57ba9817cef6606b12f5e14647c3bf.tar.gz lwn-e816d56fad57ba9817cef6606b12f5e14647c3bf.zip |
rcu: Add callbacks-invoked counters
This commit adds a count of the callbacks invoked to the per-CPU rcu_data
structure. This count is printed by the show_rcu_gp_kthreads() that
is invoked by rcutorture and the RCU CPU stall-warning code. It is also
intended for use by drgn.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/tree.h')
-rw-r--r-- | kernel/rcu/tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 43991a40b084..9c6f7343bec0 100644 --- a/kernel/rcu/tree.h +++ b/kernel/rcu/tree.h @@ -171,6 +171,7 @@ struct rcu_data { /* different grace periods. */ long qlen_last_fqs_check; /* qlen at last check for QS forcing */ + unsigned long n_cbs_invoked; /* # callbacks invoked since boot. */ unsigned long n_force_qs_snap; /* did other CPU force QS recently? */ long blimit; /* Upper limit on a processed batch */ |