函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Cause the torture test to "stutter", starting and stopping all* threads periodically.

函数原型:static int torture_stutter(void *arg)

返回类型:int

参数:

类型参数名称
void *arg
608  VERBOSE_TOROUT_STRING("torture_stutter task started")
609  循环
611  wtime等于stutter
612  如果stutter大于HZ加1则
621  WRITE_ONCE(stutter_pause_test, 0)
622  如果非Is it time for the current torture test to stop?We can use __set_current_state() here because schedule_timeout() calls* schedule() unconditionally.
624  Absorb kthreads into a kernel function that won't return, so that* they won't ever access module text or data again.
625  当非Is it time for the current torture test to stop?循环
626  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
627  返回:0