is_pmu_core(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

is_pmu_core β€” okay so this one is literally just a vibe check for PMU names: it checks whether the name you hand it belongs to a core CPU PMU πŸ’… (and yes, this is the Kernel API Manual, hi bestie, welcome 🫢)


🌸 SYNOPSIS 🌸

bool is_pmu_core (const char *name );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the PMU name you want checked, bestie. That's it. That's the whole argument. She's low maintenance πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

So how do we know a PMU is a core PMU? There are exactly two ways, and ngl they're both kind of iconic in their own little way πŸ‘‘

  1. Exact name match β€” like, the name is the name, no games:
    • "cpu" β€” typically used on x86 architectures πŸ’»
    • "cpum_cf" β€” typically used on s390 architectures (that's the CPU Measurement Counter Facility, iykyk) 🧚
    • "default_core" β€” a generic name used to refer to the default core PMU ✨
  2. Sysfs file existence check (is_sysfs_pmu_core) β€” the "does the file even exist" method:
    • Typically used on ARM systems or Intel hybrid architectures (e.g. "cpu_atom", "cpu_core"). This approach checks if the sysfs directory for the PMU contains a "cpus" file 🌈
fr fr, that's the entire detection strategy β€” name match or "is there a cpus file in there". Simple, effective, slay πŸ’…

πŸ”₯ SEE ALSO πŸ”₯


And that's the whole page, bestie πŸŽ€ brought to you by ./tools/perf/util, stamped October 2026, filed under is_pmu_core(9). Go check those core PMU names, periodt πŸ’œπŸŒΈ

πŸ“¦ where this page comes from