函数逻辑报告 |
Source Code:kernel\torture.c |
Create Date:2022-07-27 15:11:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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() |
名称 | 描述 |
---|---|
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_writer | Lock torture writer kthread. Repeatedly acquires and releases* the lock, checking for duplicate acquisitions. |
lock_torture_reader | Lock torture reader kthread. Repeatedly acquires and releases* the reader lock. |
rcu_read_delay | |
srcu_read_delay | |
rcu_torture_writer | RCU 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_fakewriter | RCU torture fake writer kthread. Repeatedly calls sync, with a random* delay between calls. |
rcutorture_extend_mask | Return a random protection state mask, but with at least one bit set. |
rcutorture_loop_extend | Do a randomly selected number of extensions of an existing RCU read-side* critical section. |
rcu_torture_fwd_prog_nr | Carry out need_resched()/cond_resched() forward-progress testing. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |