函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:58:39 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__perf_event_account_interrupt
函数原型:static int __perf_event_account_interrupt(struct perf_event *event, int throttle)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | event | |
int | throttle |
8366 | ret等于0 |
8369 | seq等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(perf_throttled_seq) |
8370 | 如果seq不等于interrupts_seq则 |
8371 | interrupts_seq等于seq |
8372 | interrupts等于1 |
8373 | 否则 |
8374 | interrupts自加 |
8375 | 如果此条件成立可能性小(为编译器优化)(throttle && interrupts >= max_samples_per_tick)则 |
8385 | 如果freq则 |
8386 | now等于perf_clock() |
8387 | delta等于now减freq_time_stamp |
8389 | freq_time_stamp等于now |
8391 | 如果delta大于0且delta小于2乘TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ 则perf_adjust_period(event, delta, last_period, true) |
8395 | 返回:ret |
名称 | 描述 |
---|---|
perf_event_account_interrupt | |
__perf_event_overflow | Generic event overflow handling, sampling. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |