函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:RCU torture fake writer kthread. Repeatedly calls sync, with a random* delay between calls.

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

返回类型:int

参数:

类型参数名称
void *arg
1103  VERBOSE_TOROUT_STRING("rcu_torture_fakewriter task started")
1104  set_user_nice(当前进程, MAX_NICE)
1106  循环
1107  schedule_timeout_uninterruptible(1 + torture_random( & rand) % 10)
1108  0x10c7 is 2**32 / 1000000 (rounded up) (torture_random( & rand) & 0x3ff)
1109  如果cb_barrier不等于NULLtorture_random( & rand)取模nfakewriters乘8恒等于0则
1111  cb_barrier()
1112  否则如果gp_normal恒等于gp_exp
1113  如果synctorture_random( & rand)按位与0x80则sync()
1115  否则如果exp_syncexp_sync()
1117  否则如果gp_normalsync
1118  sync()
1119  否则如果exp_sync
1120  exp_sync()
1122  Task stuttering, which forces load/no-load transitions.
1123  当非Is it time for the current torture test to stop?循环
1125  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
1126  返回:0