Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Absorb kthreads into a kernel function that won't return, so that* they won't ever access module text or data again.

Proto:void torture_shutdown_absorb(const char *title)

Type:void

Parameter:

TypeParameterName
const char *title
466  When READ_ONCE(fullstop) == System shutdown with torture running. cycle
467  pr_notice("torture thread %s parking due to system shutdown\n", title)
469  schedule_timeout_uninterruptible(MAX_SCHEDULE_TIMEOUT)
Caller
NameDescribe
rcu_torture_boost
rcu_torture_statsPeriodically prints torture statistics, if periodic statistics printing* was specified via the stat_interval module parameter.
rcu_torture_stallCPU-stall kthread. It waits as specified by stall_cpu_holdoff, then* induces a CPU stall for the time specified by stall_cpu.
torture_shuffleShuffle tasks across CPUs, with the intent of allowing each CPU in the* system to become idle at a time and cut off its timer ticks. This is meant* to test the support for such tickless idle CPU in RCU.
stutter_waitBlock until the stutter interval ends. This must be called periodically* by all running kthreads that need to be subject to stuttering.
torture_stutterCause the torture test to "stutter", starting and stopping all* threads periodically.
torture_kthread_stoppingEach kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue