perf_pmu__m...num_mem_pmus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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's NULL, it searches the entire PMU list instead πŸ¦‹ so NULL = 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