函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:53:07 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_adjust_period
函数原型:static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count, bool disable)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | event | |
u64 | nsec | |
u64 | count | |
bool | disable |
3717 | period等于perf_calculate_period(event, nsec, count) |
3719 | delta等于period减sample_period |
3722 | sample_period等于sample_period加delta |
3724 | 如果非sample_period则sample_period等于1 |
3727 | sample_period等于sample_period |
3729 | 如果local64_read( & period_left)大于8乘sample_period则 |
3730 | 如果disable则stop(event, update the counter when stopping ) |
3733 | local64_set( & period_left, 0) |
3735 | 如果disable则start(event, load the counter when starting ) |
名称 | 描述 |
---|---|
perf_adjust_freq_unthr_context | 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. |
__perf_event_account_interrupt |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |