Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\rcu\rcutorture.c Create Date:2022-07-28 10:21:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:RCU torture fake writer kthread. Repeatedly calls sync, with a random* delay between calls.

Proto:static int rcu_torture_fakewriter(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
1103  VERBOSE_TOROUT_STRING("rcu_torture_fakewriter task started")
1104  set_user_nice(current process, MAX_NICE)
1106  Do
1107  schedule_timeout_uninterruptible(1 + torture_random( & rand) % 10)
1108  0x10c7 is 2**32 / 1000000 (rounded up) (torture_random( & rand) & 0x3ff)
1109  If cb_barrier != NULL && torture_random( & rand) % nfakewriters * 8 == 0 Then
1111  cb_barrier()
1112  Else if gp_normal == gp_exp Then
1113  If sync && torture_random( & rand) & 0x80 Then sync()
1115  Else if exp_sync Then exp_sync()
1117  Else if gp_normal && sync Then
1118  sync()
1119  Else if exp_sync Then
1120  exp_sync()
1122  Task stuttering, which forces load/no-load transitions.
1123  When Not Is it time for the current torture test to stop? cycle
1125  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
1126  Return 0