函数逻辑报告 |
Source Code:kernel\rcu\rcuperf.c |
Create Date:2022-07-27 11:24:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rcu_perf_cleanup
函数原型:static void rcu_perf_cleanup(void)
返回类型:void
参数:无
472 | ngps等于0 |
482 | 如果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则VERBOSE_PERFOUT_ERRSTRING("All grace periods normal, no expedited ones to measure!") |
484 | 如果gp_exp且gp_async则VERBOSE_PERFOUT_ERRSTRING("No expedited async GPs, so went with async!") |
487 | 如果Clean up torture module则返回 |
489 | 如果非cur_ops则 |
490 | torture_cleanup_end() |
491 | 返回 |
494 | 如果reader_tasks则 |
495 | 以i小于nrealreaders循环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 | 如果writer_tasks则 |
502 | 以i小于nrealwriters循环 |
505 | 如果非writer_n_durations则继续下一循环 |
507 | j等于writer_n_durations[i] |
512 | 打印警报信息("%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 | 以i小于nrealwriters循环 |
521 | 如果非writer_durations则退出 |
523 | 如果非writer_n_durations则继续下一循环 |
525 | wdpp等于writer_durations[i] |
526 | 如果非wdpp则继续下一循环 |
528 | 以j小于等于writer_n_durations[i]循环 |
533 | 如果j取模100恒等于0则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() |
名称 | 描述 |
---|---|
rcu_perf_shutdown | RCU perf shutdown kthread. Just waits to be awakened, then shuts* down system. |
rcu_perf_init |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |