Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
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() |
1118 | sync() |
1119 | Else if exp_sync Then |
1120 | exp_sync() |
1123 | When Not Is it time for the current torture test to stop? cycle |
1126 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |