is_pmu_core(9)
β¨ 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 π
- 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 β¨
- 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 π
- Typically used on ARM systems or Intel hybrid architectures (e.g.
fr fr, that's the entire detection strategy β name match or "is there a cpus file in there". Simple, effective, slay π
π₯ SEE ALSO π₯
- Kernel file
./tools/perf/util/pmu.c struct perf_pmu_alias(9)is_sysfs_pmu_core(9)perf_pmu__match_wildcard(9)perf_pmu__match_ignoring_suffix_uncore(9)perf_pmu__match_wildcard_uncore(9)perf_pmu__name_wildcard_match(9)perf_pmu__name_no_suffix_match(9)
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
- 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