Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Cause the torture test to "stutter", starting and stopping all* threads periodically.

Proto:static int torture_stutter(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
608  VERBOSE_TOROUT_STRING("torture_stutter task started")
609  Do
611  wtime = stutter
612  If stutter > HZ + 1 Then
621  WRITE_ONCE(stutter_pause_test, 0)
622  If Not Is it time for the current torture test to stop? Then 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  When Not Is it time for the current torture test to stop? cycle
626  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
627  Return 0