函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:50:23 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_sample_event_took
函数原型:void perf_sample_event_took(u64 sample_len_ns)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
u64 | sample_len_ns |
512 | 如果max_len恒等于0则返回 |
516 | running_len等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(running_sample_length) |
518 | running_len加等于sample_len_ns |
530 | __report_avg等于avg_len |
531 | __report_allowed等于max_len |
537 | max等于TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ 除100乘sysctl_perf_cpu_time_max_percent |
540 | 否则max等于1 |
550 | early_printk("perf: interrupt took too long (%lld > %lld), lowering kernel.perf_event_max_sample_rate to %d\n", __report_avg, __report_allowed, sysctl_perf_event_sample_rate) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |