函数逻辑报告 | 
Source Code:kernel\rcu\rcutorture.c | 
Create Date:2022-07-27 11:22:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Carry out need_resched()/cond_resched() forward-progress testing.
函数原型:static void rcu_torture_fwd_prog_nr(int *tested, int *tested_tries)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| int * | tested | |
| int * | tested_tries | 
| 1786 | bool selfpropcb = false | 
| 1788 | static | 
| 1790 | 如果call且sync且cb_barrier则 | 
| 1791 | init_rcu_head_on_stack( & rh) | 
| 1792 | selfpropcb = true | 
| 1796 | WRITE_ONCE(Short rcu_torture_delay() delays. , true) | 
| 1797 | sync() | 
| 1798 | 如果selfpropcb则 | 
| 1799 | WRITE_ONCE(stop, 0) | 
| 1803 | gps等于get_gp_seq() | 
| 1805 | sd4等于sd加fwd_progress_div减1的差除fwd_progress_div | 
| 1807 | WRITE_ONCE(rcu_fwd_startat, jiffies) | 
| 1808 | stopat等于rcu_fwd_startat加dur | 
| 1813 | 0x10c7 is 2**32 / 1000000 (rounded up) (10) | 
| 1814 | readunlock(idx) | 
| 1815 | 如果非fwd_progress_need_resched或need_resched()则cond_resched() | 
| 1818 | tested_tries自加 | 
| 1822 | tested自加 | 
| 1824 | gps等于rcutorture_seq_diff(get_gp_seq(), gps) | 
| 1828 | 如果selfpropcb则 | 
| 1834 | 如果selfpropcb则 | 
| 1836 | destroy_rcu_head_on_stack( & rh) | 
| 1838 | schedule_timeout_uninterruptible(HZ / 10) | 
| 1839 | WRITE_ONCE(Short rcu_torture_delay() delays. , false) | 
| 名称 | 描述 | 
|---|---|
| rcu_torture_fwd_prog | Carry out grace-period forward-progress testing. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |