Function report |
Source Code:kernel\locking\locktorture.c |
Create Date:2022-07-28 09:54:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:torture_spin_lock_write_delay
Proto:static void torture_spin_lock_write_delay(struct torture_random_state *trsp)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct torture_random_state * | trsp |
153 | shortdelay_us = 2 |
154 | longdelay_ms = 100 |
159 | If Not (torture_random(trsp) % nrealwriters_stress * 2000 * longdelay_ms ) Then mdelay(longdelay_ms) |
162 | If Not (torture_random(trsp) % nrealwriters_stress * 2 * shortdelay_us ) Then 0x10c7 is 2**32 / 1000000 (rounded up) (shortdelay_us) |
165 | If Not (torture_random(trsp) % nrealwriters_stress * 20000 ) Then |
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 |