perf_cpu_ma..._online_cpus(9)
okay bestie, you opened perf_cpu_ma..._online_cpus(9) in the Kernel API Manual and we are gonna get you comfy with it π«Άβ¨
π NAME π
perf_cpu_map__new_online_cpus β it gives you a map read from /sys/devices/system/cpu/online if that file is available π
and if reading wasnβt possible? no stress, it creates a map using the online processors and assumes the first n processors are all online. thatβs the vibe check. π¦
β¨ SYNOPSIS β¨
LIBPERF_API struct perf_cpu_map * perf_cpu_map__new_online_cpus (void );
πΈ ARGUMENTS πΈ
voidβ no arguments. literally none. not even a sneaky little parameter, bestie π
π SEE ALSO π
Kernel file ./tools/lib/perf/include/perf/cpumap.h, plus the whole CPU-map friend group:
struct perf_cpu(9)perf_cpu_map__new_any_cpu(9)perf_cpu_map__new(9)perf_cpu_map__cpu(9)perf_cpu_map__nr(9)perf_cpu_map__has_any_cpu_or_is_empty(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)
source/version: ./tools/lib/perf/include/perf Β· date: October 2026 β bye bestie, go slay those CPU maps π
π
π¦ 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