Skip to content

Commit 0a0467a

Browse files
paulmckrcuurezki
authored andcommitted
rcutorture: Dump # online CPUs on insufficient cb-flood laundering
This commit adds the number of online CPUs to the state dump following an unsuccesful callback-flood test. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent 1a140b4 commit 0a0467a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/rcu/rcutorture.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,12 +2833,12 @@ static void rcu_torture_fwd_prog_cr(struct rcu_fwd *rfp)
28332833
if (!torture_must_stop() && !READ_ONCE(rcu_fwd_emergency_stop) &&
28342834
!shutdown_time_arrived()) {
28352835
WARN_ON(n_max_gps < MIN_FWD_CBS_LAUNDERED);
2836-
pr_alert("%s Duration %lu barrier: %lu pending %ld n_launders: %ld n_launders_sa: %ld n_max_gps: %ld n_max_cbs: %ld cver %ld gps %ld\n",
2836+
pr_alert("%s Duration %lu barrier: %lu pending %ld n_launders: %ld n_launders_sa: %ld n_max_gps: %ld n_max_cbs: %ld cver %ld gps %ld #online %u\n",
28372837
__func__,
28382838
stoppedat - rfp->rcu_fwd_startat, jiffies - stoppedat,
28392839
n_launders + n_max_cbs - n_launders_cb_snap,
28402840
n_launders, n_launders_sa,
2841-
n_max_gps, n_max_cbs, cver, gps);
2841+
n_max_gps, n_max_cbs, cver, gps, num_online_cpus());
28422842
atomic_long_add(n_max_cbs, &rcu_fwd_max_cbs);
28432843
mutex_lock(&rcu_fwd_mutex); // Serialize histograms.
28442844
rcu_torture_fwd_cb_hist(rfp);

0 commit comments

Comments
 (0)