mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
srcu: Add GP and maximum requested GP to Tiny SRCU rcutorture output
This commit adds the ->srcu_idx and ->srcu_max_idx fields to the Tiny SRCU rcutorture output for additional diagnostics. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
599d97e3f2
commit
d66e4cf974
@ -82,10 +82,12 @@ static inline void srcu_torture_stats_print(struct srcu_struct *ssp,
|
||||
int idx;
|
||||
|
||||
idx = ((data_race(READ_ONCE(ssp->srcu_idx)) + 1) & 0x2) >> 1;
|
||||
pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%hd,%hd)\n",
|
||||
pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%hd,%hd) gp: %hu->%hu\n",
|
||||
tt, tf, idx,
|
||||
data_race(READ_ONCE(ssp->srcu_lock_nesting[!idx])),
|
||||
data_race(READ_ONCE(ssp->srcu_lock_nesting[idx])));
|
||||
data_race(READ_ONCE(ssp->srcu_lock_nesting[idx])),
|
||||
data_race(READ_ONCE(ssp->srcu_idx)),
|
||||
data_race(READ_ONCE(ssp->srcu_idx_max)));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user