函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\torture.c Create Date:2022-07-27 15:11:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:unsigned long torture_random(struct torture_random_state *trsp)

返回类型:unsigned long

参数:

类型参数名称
struct torture_random_state *trsp
308  如果trs_count先自减小于0则
309  trs_state加等于local_clock()
310  trs_count等于TORTURE_RANDOM_REFRESH
312  trs_state等于trs_stateprime prime
314  返回:swahw32(trs_state)
调用者
名称描述
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.