STRUCT AMD_APERF_MPERF(9)
π NAME π
okay so bestie, welcome to the glow-up of struct amd_aperf_mperf β that's the whole name, that's it, and yes the description field after the dash is literally empty. the man page authors really said "the name speaks for itself" and honestly? iconic. this page lives in the Kernel API Manual, so you know it's the real deal. β¨
πΈ SYNOPSIS πΈ
here's the whole struct, no cap, copy it exactly bestie:
struct amd_aperf_mperf {
u64 aperf;
u64 mperf;
u64 tsc;
};
three u64 fields, that's the entire vibe. it's giving "small but mighty" π«Ά
π Members π
okay so let's meet the cast, they're all main characters:
aperfβ the actual performance frequency clock count. that's the real one, the one out there actually doing the work π₯mperfβ the maximum performance frequency clock count. the ceiling, the limit, the "what could have been" πtscβ the time stamp counter. classic. the little clock that keeps track of when stuff happened β°
π¦ SEE ALSO π¦
go read these next, bestie, they're all in the same friend group:
- Kernel file
./drivers/cpufreq/amd-pstate.h union perf_cached(9)struct amd_cpudata(9)
ngl, this page is short and sweet β but every field counts, so don't skip a single one π
and that's a wrap! this little masterpiece comes from ./drivers/cpufreq, dated October 2026, and it's filed as struct amd_aperf_mperf(9) β slay, go forth and read your counters π§ββοΈβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms