get_count_from_result(9)
β¨ get_count_from_result(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function called get_count_from_result and honestly? she's giving quiet competence. let's get into it π
πΈ NAME πΈ
get_count_from_result β literally just, like, grabbing the event count from all the result elements in res π
no cap, that's the whole vibe.
π¦ SYNOPSIS π¦
int get_count_from_result (struct perf_event *event , struct
hv_24x7_data_result_buffer *resb , struct hv_24x7_result *res , u64
*countp , struct hv_24x7_result **next );
like yes, that's a lot of arguments, but she handles it ππ₯
π ARGUMENTS π
eventβ the event that's associated withres. her ride-or-die, fr fr.resbβ the result buffer that containsres. think of it as the group chat andresis one of the messages π«Άresβ the result we're actually working on. main character energy right here πcountpβ output variable holding the event count. this is where the good stuff lands β¨nextβ optional output variable that points to the next result inresb. only there if you need her, ngl π
π DESCRIPTION π
so here's the tea β if the event that corresponds to this result needs aggregation of the result element values β like, if it's gotta add them all up β then this function does exactly that. periodt. π
no extra magic, no secret behaviour. that's the described job, and she does the described job. π§
π SEE ALSO π
- Kernel file
./arch/powerpc/perf/hv-24x7.cβ go read her, iykyk ππ
okay that's the page!! π this whole thing lives under ./arch/powerpc/perf, and it's stamped October 2026 β so yeah, from the future, slaying as always βπ
bye bestie!! π¦π
π¦ 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