Function report |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-28 10:22:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Carry out need_resched()/cond_resched() forward-progress testing.
Proto:static void rcu_torture_fwd_prog_nr(int *tested, int *tested_tries)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
int * | tested | |
int * | tested_tries |
1786 | bool selfpropcb = false |
1788 | static |
1790 | If call && sync && cb_barrier Then |
1791 | init_rcu_head_on_stack( & rh) |
1792 | selfpropcb = true |
1796 | WRITE_ONCE(Short rcu_torture_delay() delays. , true) |
1797 | sync() |
1798 | If selfpropcb Then |
1799 | WRITE_ONCE(stop, 0) |
1802 | cver = READ_ONCE(rcu_torture_current_version) |
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 | If Not fwd_progress_need_resched || need_resched() Then cond_resched() |
1818 | tested_tries++ |
1822 | tested++ |
1823 | cver = READ_ONCE(rcu_torture_current_version) - cver |
1824 | gps = rcutorture_seq_diff(get_gp_seq(), gps) |
1828 | If selfpropcb Then |
1834 | If selfpropcb Then |
1836 | destroy_rcu_head_on_stack( & rh) |
1838 | schedule_timeout_uninterruptible(HZ / 10) |
1839 | WRITE_ONCE(Short rcu_torture_delay() delays. , false) |
Name | Describe |
---|---|
rcu_torture_fwd_prog | Carry out grace-period forward-progress testing. |
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 |