函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\aperfmperf.c |
Create Date:2022-07-27 08:56:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:aperfmperf_snapshot_cpu
函数原型:static bool aperfmperf_snapshot_cpu(int cpu, ktime_t now, bool wait)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
int | cpu | |
ktime_t | now | |
bool | wait |
69 | time_delta等于ktime_ms_delta(now, per_cpu(time, cpu)) |
72 | 如果time_delta小于APERFMPERF_CACHE_THRESHOLD_MS则返回:true |
75 | smp_call_function_single(cpu, aperfmperf_snapshot_khz()* On the current CPU, snapshot APERF, MPERF, and jiffies* unless we already did it within 10ms* calculate kHz, save snapshot, NULL, wait) |
78 | 返回:time_delta小于等于APERFMPERF_STALE_THRESHOLD_MS |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |