函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:53:11 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mbine freq adjustment with unthrottling to avoid two passes over the* events. At the same time, make sure, having freq events does not change* the rate of unthrottling as that would introduce bias.
函数原型:static void perf_adjust_freq_unthr_context(struct perf_event_context *ctx, int needs_unthr)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event_context * | ctx | |
int | needs_unthr |
3758 | 如果非nr_freq或needs_unthr的值则返回 |
3762 | perf_pmu_disable(pmu) |
3765 | 如果state不等于PERF_EVENT_STATE_ACTIVE则继续下一循环 |
3768 | 如果非event_filter_match(event)则继续下一循环 |
3771 | perf_pmu_disable(pmu) |
3775 | 如果interrupts恒等于MAX_INTERRUPTS则 |
3781 | 如果非freq或非sample_freq则转到:next |
3789 | now等于local64_read( & count) |
3790 | delta等于now减freq_count_stamp |
3791 | freq_count_stamp等于now |
3800 | 如果delta大于0则perf_adjust_period(event, period, delta, false) |
3803 | start(event, delta > 0 ? load the counter when starting : 0) |
3804 | next : |
3805 | perf_pmu_enable(pmu) |
3808 | perf_pmu_enable(pmu) |
名称 | 描述 |
---|---|
perf_event_task_tick |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |