]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rcutorture: Expand failure/close-call grace-period output
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 3 Dec 2024 03:47:44 +0000 (19:47 -0800)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Feb 2025 15:14:39 +0000 (07:14 -0800)
commit2db7ab8c108669d0b7d87c617edf0a8e132bd1c7
treeb70da24b7740041f70d7eb265930d32a7cb2b1f7
parent84ae91018af56184afabb1bc08b5c117a0634e5e
rcutorture: Expand failure/close-call grace-period output

With only eight bits per grace-period sequence number, wrap can happen
in 64 grace periods.  This commit therefore increases this to sixteen
bits for normal grace-period sequence numbers and the combined short-form
polling sequence numbers, thus deferring wrap for at least 16,384 grace
periods.  Because expedited grace periods go faster, expand these to 24
bits, deferring wrap for at least 4,194,304 expedited grace periods.
These longer wrap times makes it easier to correlate these numbers to
trace-event output.

Note that the low-order two bits are reserved for intra-grace-period
state, hence the above wrap numbers being a factor of four smaller than
you might expect.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/rcu.h
kernel/rcu/rcutorture.c
kernel/rcu/tiny.c
kernel/rcu/tree.c