aggr_cpu_id__socket(9)
π aggr_cpu_id__socket(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to aggr_cpu_id__socket, straight out of the kernel API manual (section 9, kernel developer girly territory β¨). This one's a tiny little function with main character energy β it builds you an aggr_cpu_id with the socket field already filled in from the cpu you hand it. Iconic, low effort, high payoff. π
πΈ NAME
aggr_cpu_id__socket β create an aggr_cpu_id with the socket populated with the socket for cpu. The function signature is compatible with aggr_cpu_id_get_t. no cap, that's literally the whole job π«Ά
β¨ SYNOPSIS
struct aggr_cpu_id aggr_cpu_id__socket (struct perf_cpu cpu , void *data );
that's it. that's the whole vibe check. π¦
π§ ARGUMENTS
cpuβ-- undescribed --π the manual literally gives us nothing here, so we're not gonna invent lore. It's astruct perf_cpu, it's your cpu, it goes in.dataβ-- undescribed --π also undescribed, also avoid *, also just vibing. We do not speculate. We do not make things up. Periodt.
π₯ SEE ALSO
the whole friend group, assembled π β all these live in the kernel file ./tools/perf/util/cpumap.h:
cpu_map__is_dummy(9)cpu__get_node(9)cpu__get_socket_id(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__die(9)aggr_cpu_id__cluster(9)aggr_cpu_id__core(9)aggr_cpu_id__node(9)aggr_cpu_id__global(9)
like, the full aggr_cpu_id cinematic universe π iykyk.
quick reminder bestie:cpuanddataare both marked-- undescribed --in the original β no guessing, no fanfic, no "well actually I think it doesβ¦". we keep it honest. π
and that's the page! π brought to you by the source at ./tools/perf/util, dated October 2026 β mwah, sending you a little π from the kernel tree. slay safe out there! β¨
π¦ 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