Function report |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-28 10:22:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kthread function to drive and coordinate RCU barrier testing.
Proto:static int rcu_torture_barrier(void *arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | arg |
2067 | VERBOSE_TOROUT_STRING("rcu_torture_barrier task starting") |
2068 | Do |
2069 | atomic_set( & Barrier callbacks invoked. , 0) |
2070 | atomic_set( & Barrier callbacks registered. , n_barrier_cbs) |
2072 | smp_store_release( & Test phase. , !Test phase. ) |
2073 | When i < n_barrier_cbs cycle wake_up( & Coordinate barrier testing. [i]) |
2078 | If Is it time for the current torture test to stop? Then Break |
2080 | n_barrier_attempts++ |
2081 | cb_barrier() |
2082 | If atomic_read( & Barrier callbacks invoked. ) != n_barrier_cbs Then |
2083 | n_rcu_torture_barrier_error++ |
2084 | pr_err("barrier_cbs_invoked = %d, n_barrier_cbs = %d\n", atomic_read( & Barrier callbacks invoked. ), n_barrier_cbs) |
2087 | WARN_ON_ONCE(1) |
2088 | Else |
2089 | did rcu_barrier test succeed? ++ |
2091 | schedule_timeout_interruptible(HZ / 10) |
2092 | When Not Is it time for the current torture test to stop? cycle |
2094 | Return 0 |
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 |