函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void torture_shutdown_absorb(const char *title)

返回类型:void

参数:

类型参数名称
const char *title
466 READ_ONCE(fullstop)恒等于System shutdown with torture running. 循环
467  打印注释信息("torture thread %s parking due to system shutdown\n", title)
469  schedule_timeout_uninterruptible(MAX_SCHEDULE_TIMEOUT)
调用者
名称描述
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
lock_torture_statsPeriodically prints torture statistics, if periodic statistics printing* was specified via the stat_interval module parameter.* No need to worry about fullstop here, since this one doesn't reference* volatile state or register callbacks.