函数逻辑报告 |
Source Code:kernel\rcu\rcuperf.c |
Create Date:2022-07-27 11:24:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rcu_perf_init
函数原型:static int __init rcu_perf_init(void)
返回类型:int
参数:无
591 | firsterr等于0 |
596 | 如果非Initialize torture module则返回:负EBUSY |
607 | 打印警报信息("rcu-perf types:") |
608 | 以i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(perf_ops)循环打印标准信息(" %s", name) |
610 | 打印标准信息("\n") |
611 | WARN_ON(!IS_MODULE(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'm', 0* otherwise.(CONFIG_RCU_PERF_TEST)) |
613 | cur_ops = NULL |
614 | 转到:unwind |
619 | nrealwriters等于Return the number if non-negative. If -1, the number of CPUs.* If less than -1, that much less than the number of CPUs, but* at least one. |
620 | nrealreaders等于Return the number if non-negative. If -1, the number of CPUs.* If less than -1, that much less than the number of CPUs, but* at least one. |
621 | atomic_set( & n_rcu_perf_reader_started, 0) |
622 | atomic_set( & n_rcu_perf_writer_started, 0) |
623 | atomic_set( & n_rcu_perf_writer_finished, 0) |
624 | rcu_perf_print_module_parms(cur_ops, "Start of test") |
628 | 如果shutdown则 |
629 | init_waitqueue_head( & shutdown_wq) |
636 | reader_tasks等于分配数组内存并置零 |
638 | 如果(reader_tasks == NULL)则 |
643 | 以i小于nrealreaders循环 |
651 | writer_tasks等于分配数组内存并置零 |
658 | 如果非writer_tasks或非writer_durations或非writer_n_durations则 |
663 | 以i小于nrealwriters循环 |
664 | writer_durations[i]等于分配数组内存并置零 |
667 | 如果非writer_durations[i]则 |
677 | 返回:0 |
679 | unwind : |
681 | rcu_perf_cleanup() |
682 | 返回:firsterr |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |