summaryrefslogtreecommitdiff
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-05-01 16:49:48 -0700
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 11:58:49 -0700
commite816d56fad57ba9817cef6606b12f5e14647c3bf (patch)
tree246c1262e13082eb2356f31fc092cdf06a6f84c8 /kernel/rcu/tree.c
parentabfce0414814149f716e1d30da1fb3140d1b3473 (diff)
downloadlwn-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.c')
-rw-r--r--kernel/rcu/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index bef1dc91bfbe..874c831bcc45 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -2443,6 +2443,7 @@ static void rcu_do_batch(struct rcu_data *rdp)
local_irq_save(flags);
rcu_nocb_lock(rdp);
count = -rcl.len;
+ rdp->n_cbs_invoked += count;
trace_rcu_batch_end(rcu_state.name, count, !!rcl.head, need_resched(),
is_idle_task(current), rcu_is_callbacks_kthread());