Function report |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-28 10:22:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rcu_torture_cleanup
Proto:static void rcu_torture_cleanup(void)
Type:void
Parameter:Nothing
2183 | flags = 0 |
2184 | gp_seq = 0 |
2187 | If Clean up torture module Then |
2188 | If (cb_barrier != NULL) Then cb_barrier() |
2190 | Return |
2192 | If Not cur_ops Then |
2193 | torture_cleanup_end() |
2194 | Return |
2197 | show_rcu_gp_kthreads() |
2200 | torture_stop_kthread(CPU-stall kthread. It waits as specified by stall_cpu_holdoff, then* induces a CPU stall for the time specified by stall_cpu., stall_task) |
2203 | If reader_tasks Then |
2207 | kfree(reader_tasks) |
2209 | rcu_torture_current = NULL |
2211 | If fakewriter_tasks Then |
2221 | srcutorture_get_gp_data(ttype, srcu_ctlp, & flags, & gp_seq) |
2224 | torture_stop_kthread(Periodically prints torture statistics, if periodic statistics printing* was specified via the stat_interval module parameter., stats_task) |
2233 | If (cb_barrier != NULL) Then cb_barrier() |
2240 | If err_segs_recorded Then |
2241 | pr_alert("Failure/close-call rcutorture reader segments:\n") |
2242 | If rt_read_nsegs == 0 Then pr_alert("\t: No segments recorded!!!\n") |
2244 | firsttime = 1 |
2245 | When i < rt_read_nsegs cycle |
2246 | pr_alert("\t%d: %#x ", i, rt_readstate) |
2247 | If rt_delay_jiffies != 0 Then |
2250 | firsttime = 0 |
2252 | If rt_delay_ms != 0 Then |
2253 | Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("%s%ldms", firsttime ? "" : "+", rt_delay_ms) |
2255 | firsttime = 0 |
2257 | If rt_delay_us != 0 Then |
2267 | If atomic_read( & n_rcu_torture_error) || n_rcu_torture_barrier_error Then rcu_torture_print_module_parms(cur_ops, "End of test: FAILURE") |
2269 | Else if torture_onoff_failures() Then rcu_torture_print_module_parms(cur_ops, "End of test: RCU_HOTPLUG") |
2272 | Else rcu_torture_print_module_parms(cur_ops, "End of test: SUCCESS") |
2274 | torture_cleanup_end() |
Name | Describe |
---|---|
rcu_torture_init |
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 |