函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:aperfmperf_snapshot_cpu

函数原型:static bool aperfmperf_snapshot_cpu(int cpu, ktime_t now, bool wait)

返回类型:bool

参数:

类型参数名称
intcpu
ktime_tnow
boolwait
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
调用者
名称描述
aperfmperf_get_khz
arch_freq_prepare_all
arch_freq_get_on_cpu