Function report |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-28 10:21:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rcu_read_delay
Proto:static void rcu_read_delay(struct torture_random_state *rrsp, struct rt_read_seg *rtrsp)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct torture_random_state * | rrsp | |
struct rt_read_seg * | rtrsp |
334 | shortdelay_us = 200 |
335 | longdelay_ms = 300 |
342 | If Not Short rcu_torture_delay() delays. && Not (torture_random(rrsp) % nrealreaders * 2000 * longdelay_ms ) Then |
344 | started = get_gp_seq() |
345 | ts = rcu_trace_clock_local() |
346 | If We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt. & (SOFTIRQ_MASK | HARDIRQ_MASK) Then longdelay_ms = 5 |
348 | mdelay(longdelay_ms) |
349 | rt_delay_ms = longdelay_ms |
350 | completed = get_gp_seq() |
354 | If Not (torture_random(rrsp) % nrealreaders * 2 * shortdelay_us ) Then |
361 | rt_preempted = true |
Name | Describe |
---|---|
srcu_read_delay |
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 |