函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rcu_read_delay

函数原型:static void rcu_read_delay(struct torture_random_state *rrsp, struct rt_read_seg *rtrsp)

返回类型:void

参数:

类型参数名称
struct torture_random_state *rrsp
struct rt_read_seg *rtrsp
334  shortdelay_us等于200
335  longdelay_ms等于300
342  如果非Short rcu_torture_delay() delays. 且非torture_random(rrsp)与nrealreaders乘2000乘longdelay_ms的模则
344  started等于get_gp_seq()
345  ts等于rcu_trace_clock_local()
346  如果抢占计数值按位与SOFTIRQ_MASK按位或HARDIRQ_MASK的值则longdelay_ms等于5
348  mdelay(longdelay_ms)
349  rt_delay_ms等于longdelay_ms
350  completed等于get_gp_seq()
351  do_trace_rcu_torture_read(name, NULL, ts, started, completed)
354  如果非torture_random(rrsp)与nrealreaders乘2乘shortdelay_us的模则
355  0x10c7 is 2**32 / 1000000 (rounded up) (shortdelay_us)
356  rt_delay_us等于shortdelay_us
358  如果非抢占计数值且非torture_random(rrsp)与nrealreaders乘500的模则
361  rt_preempted = true
调用者
名称描述
srcu_read_delay