perf_cpu_ma..._or_is_empty(9)
π NAME π
perf_cpu_map__has_any_cpu_or_is_empty β bestie, this one asks the real questions: is this map either empty, or does it have that "any CPU"/dummy value? That's it, that's the whole vibe check π₯
This page lives in the Kernel API Manual, and the title got cut off at perf_cpu_ma..._or_is_empty(9) so likeβ¦ yeah, we're working with what we've got π«Ά
β¨ SYNOPSIS β¨
okay so here's the exact signature, no cap, copy it verbatim:
LIBPERF_API bool perf_cpu_map__has_any_cpu_or_is_empty (const struct
perf_cpu_map *map );
notice the LIBPERF_API prefix, the bool return, and the const struct perf_cpu_map *map β all of it, literally character for character π
π ARGUMENTS π
mapβ so the manpage itself just says-- undescribed --for this one π like the docs literally gave us nothing. It's aconst struct perf_cpu_map *map, that's what the synopsis says, and the description isβ¦ not written. Not me being lazy, the source is just built different (derogatory). If you need to know more about it, that's acpumap.hgirlie's job π
π¦ SEE ALSO π¦
the whole friend group, in order π and yes the first one is a kernel file path:
- Kernel file
./tools/lib/perf/include/perf/cpumap.h struct perf_cpu(9)perf_cpu_map__new_any_cpu(9)perf_cpu_map__new_online_cpus(9)perf_cpu_map__new(9)perf_cpu_map__cpu(9)perf_cpu_map__nr(9)perf_cpu_map__is_any_cpu_or_is_empty(9)perf_cpu_map__is_empty(9)perf_cpu_map__min(9)perf_cpu_map__max(9)
go read them, they ate π
so yeah, that's the page πΈ it's short, it's sweet, the argument section is a mystery, and honestly? iconic for that.
sign-off time π this beauty comes from ./tools/lib/perf/include/perf, dated October 2026, and the page answers to perf_cpu_ma..._or_is_empty(9) β yes, still truncated, we stan a consistent queen β¨π
π¦ 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