函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Block until the stutter interval ends. This must be called periodically* by all running kthreads that need to be subject to stuttering.

函数原型:bool stutter_wait(const char *title)

返回类型:bool

参数:

类型参数名称
const char *title
580  bool ret = false
582  cond_resched_tasks_rcu_qs - Report potential quiescent states to RCU* This macro resembles cond_resched(), except that it is defined to* report potential quiescent states to RCU-tasks even if the cond_resched()()
583  spt等于READ_ONCE(stutter_pause_test)
584 spt循环
585  ret = true
586  如果spt恒等于1则
588  否则如果spt恒等于2则
590  cond_resched()
591  否则
594  Absorb kthreads into a kernel function that won't return, so that* they won't ever access module text or data again.
596  返回:ret
调用者
名称描述
lock_torture_readerLock torture reader kthread. Repeatedly acquires and releases* the reader lock.
rcu_torture_boost
rcu_torture_fqsRCU torture force-quiescent-state kthread. Repeatedly induces* bursts of calls to force_quiescent_state(), increasing the probability* of occurrence of some important types of race conditions.
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.
rcu_torture_readerRCU torture reader kthread. Repeatedly dereferences rcu_torture_current,* incrementing the corresponding element of the pipeline array. The* counter in the element should never be greater than 1, otherwise, the* RCU implementation is broken.
rcu_torture_fwd_progCarry out grace-period forward-progress testing.
lock_torture_writerLock torture writer kthread. Repeatedly acquires and releases* the lock, checking for duplicate acquisitions.