Function report |
Source Code:kernel\rcu\rcuperf.c |
Create Date:2022-07-28 10:23:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rcu_perf_cleanup
Proto:static void rcu_perf_cleanup(void)
Type:void
Parameter:Nothing
472 | ngps = 0 |
482 | If Should expedited grace-period primitives always fall back to their* non-expedited counterparts? Intended for use within RCU. Note* that if the user specifies both rcu_expedited and rcu_normal, then* rcu_normal wins && gp_exp Then VERBOSE_PERFOUT_ERRSTRING("All grace periods normal, no expedited ones to measure!") |
484 | If gp_exp && gp_async Then VERBOSE_PERFOUT_ERRSTRING("No expedited async GPs, so went with async!") |
487 | If Clean up torture module Then Return |
489 | If Not cur_ops Then |
490 | torture_cleanup_end() |
491 | Return |
494 | If reader_tasks Then |
495 | When i < nrealreaders cycle torture_stop_kthread(RCU perf reader kthread. Repeatedly does empty RCU read-side* critical section, minimizing update-side interference., reader_tasks[i]) |
498 | kfree(reader_tasks) |
501 | If writer_tasks Then |
502 | When i < nrealwriters cycle |
505 | If Not writer_n_durations Then Continue |
507 | j = writer_n_durations[i] |
512 | pr_alert("%s%s start: %llu end: %llu duration: %llu gps: %d batches: %ld\n", perf_type, PERF_FLAG, t_rcu_perf_writer_started, t_rcu_perf_writer_finished, t_rcu_perf_writer_finished - t_rcu_perf_writer_started, ngps, rcuperf_seq_diff(b_rcu_perf_writer_finished, b_rcu_perf_writer_started)) |
520 | When i < nrealwriters cycle |
521 | If Not writer_durations Then Break |
523 | If Not writer_n_durations Then Continue |
525 | wdpp = writer_durations[i] |
526 | If Not wdpp Then Continue |
528 | When j <= writer_n_durations[i] cycle |
533 | If j % 100 == 0 Then schedule_timeout_uninterruptible(1) |
536 | kfree(writer_durations[i]) |
538 | kfree(writer_tasks) |
539 | kfree(writer_durations) |
540 | kfree(writer_n_durations) |
547 | torture_cleanup_end() |
Name | Describe |
---|---|
rcu_perf_shutdown | RCU perf shutdown kthread. Just waits to be awakened, then shuts* down system. |
rcu_perf_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 |