Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\aperfmperf.c Create Date:2022-07-28 07:56:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:aperfmperf_snapshot_cpu

Proto:static bool aperfmperf_snapshot_cpu(int cpu, ktime_t now, bool wait)

Type:bool

Parameter:

TypeParameterName
intcpu
ktime_tnow
boolwait
69  time_delta = ktime_ms_delta(now, per_cpu(time, cpu))
72  If time_delta < APERFMPERF_CACHE_THRESHOLD_MS Then Return 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  Return time_delta <= APERFMPERF_STALE_THRESHOLD_MS
Caller
NameDescribe
aperfmperf_get_khz
arch_freq_prepare_all
arch_freq_get_on_cpu