Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:bool stutter_wait(const char *title)

Type:bool

Parameter:

TypeParameterName
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  When spt cycle
585  ret = true
586  If spt == 1 Then
588  Else if spt == 2 Then
590  cond_resched()
591  Else
594  Absorb kthreads into a kernel function that won't return, so that* they won't ever access module text or data again.
596  Return ret
Caller
NameDescribe
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.