perf_cpu_ma..._online_cpus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


source/version: ./tools/lib/perf/include/perf Β· date: October 2026 β€” bye bestie, go slay those CPU maps πŸ’…πŸŒˆ

πŸ“¦ where this page comes from