perf_pmu__m...num_mem_pmus(9)
β¨ NAME β¨
okay bestie so this is the Kernel API Manual entry for perf_pmu__mem_events_num_mem_pmus β and what it does is literally right there in the name: it gets you the number of mem PMUs since the given pmu π
(yes, "since" β that's the vibe, that's the wording, we're keeping it fr fr)
π«Ά SYNOPSIS π«Ά
int perf_pmu__mem_events_num_mem_pmus (struct perf_pmu *pmu );
likeβ¦ the return type is int, the argument is a struct perf_pmu * called pmu, and that's the whole entire signature, no cap π
πΈ ARGUMENTS πΈ
pmuβ your start pmu π this is where the counting begins. and here's the iconic part: if it'sNULL, it searches the entire PMU list instead π¦ soNULL= no starting point = the whole list gets the vibe check, iykyk β¨
π SEE ALSO π
- Kernel file
./tools/perf/util/mem-events.cβ go read it, that's where the actual source lives π
ngl bestie, this one is short and sweet β one arg, one return, one file. lowkey obsessed ππ
mwah π that's a wrap β brought to you by the source over in <code>./tools/perf/util</code>, dated October 2026, and yes the header says perf_pmu__m...num_mem_pmus(9) because even manpage titles get truncated, we don't gatekeep π
π¦ 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