cpu__get_socket_id(9)
okay so bestie, this is the cpu__get_socket_id(9) page from the Kernel API Manual, and it's literally the guide to getting a CPU's socket number. We're keeping every crumb, every path, every reference β no cap, fr fr πβ¨
πΈ NAME πΈ
cpu__get_socket_id β returns the socket number as read from /sys/devices/system/cpu/cpuX/topology/physical_package_id for the given CPU. π¦
π SYNOPSIS π
int cpu__get_socket_id (struct perf_cpu cpu );
π ARGUMENTS π
cpuβ-- undescribed --(yes bestie, that's exactly what the original says; the argument notes are giving mystery main character energy π« ).
π SEE ALSO π
The Kernel file ./tools/perf/util/cpumap.h is the home base, and the whole squad is linked here:
cpu_map__is_dummy(9)cpu__get_node(9)cpu__get_die_id(9)cpu__get_cluster_id(9)cpu__get_core_id(9)cpu_aggr_map__empty_new(9)cpu_aggr_map__new(9)aggr_cpu_id__socket(9)aggr_cpu_id__die(9)aggr_cpu_id__cluster(9)aggr_cpu_id__core(9)aggr_cpu_id__node(9)aggr_cpu_id__global(9)
mwah π this page's source/version home is ./tools/perf/util, and it's dated October 2026 β that's the cute little footer tea, bestie, and we did not lose a single detail π«Άβ¨
π¦ 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