Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\torture.c Create Date:2022-07-28 13:49:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Crude but fast random-number generator. Uses a linear congruential* generator, with occasional help from cpu_clock().

Proto:unsigned long torture_random(struct torture_random_state *trsp)

Type:unsigned long

Parameter:

TypeParameterName
struct torture_random_state *trsp
308  If --trs_count < 0 Then
309  trs_state += local_clock()
310  trs_count = TORTURE_RANDOM_REFRESH
312  trs_state = trs_state * prime + prime
314  Return swahw32(trs_state)
Caller
NameDescribe
torture_lock_busted_write_delay
torture_spin_lock_write_delay
torture_rwlock_write_delay
torture_rwlock_read_delay
torture_mutex_delay
torture_rwsem_write_delay
torture_rwsem_read_delay
lock_torture_writerLock torture writer kthread. Repeatedly acquires and releases* the lock, checking for duplicate acquisitions.
lock_torture_readerLock torture reader kthread. Repeatedly acquires and releases* the reader lock.
rcu_read_delay
srcu_read_delay
rcu_torture_writerRCU torture writer kthread. Repeatedly substitutes a new structure* for that pointed to by rcu_torture_current, freeing the old structure* after a series of grace periods (the "pipeline").
rcu_torture_fakewriterRCU torture fake writer kthread. Repeatedly calls sync, with a random* delay between calls.
rcutorture_extend_maskReturn a random protection state mask, but with at least one bit set.
rcutorture_loop_extendDo a randomly selected number of extensions of an existing RCU read-side* critical section.
rcu_torture_fwd_prog_nrCarry out need_resched()/cond_resched() forward-progress testing.