tracing_map_update_sum(9)
π tracing_map_update_sum(9) β like, the Kernel API Manual, bestie β¨
okay so real talk, this is a page straight out of the Kernel API Manual and it's honestly such a little icon. it does ONE thing and it does it slayfully. let's get into it π«Ά
πΈ NAME πΈ
tracing_map_update_sum β adds a value to a tracing_map_elt's sum field. that's it. that's the whole gig. main character behavior fr fr π
β¨ SYNOPSIS β¨
void tracing_map_update_sum (struct tracing_map_elt *elt , unsigned int i , u64 n );
like yes, that's the whole signature. short, sweet, no cap.
π ARGUMENTS π
eltβ thetracing_map_elt. the little guy we're updating. π¦iβ the index of the given sum that belongs to thistracing_map_elt. think of it as the sum's address in the group chat πnβ the value you're adding to the sum. the contribution. the moment. the +1 β¨
π DESCRIPTION π
okay so the vibe here is: you take n and you add it to sum i, and that sum lives on the specific tracing_map_elt instance you passed in. that's literally it. no plot twist, no drama, just addition π₯
and like β important detail bestie β that index i isn't just any random number you made up. it's the index that got returned by the call to tracing_map_add_sum_field back when the tracing map was set up in the first place. so if you're out here picking an i out of thin airβ¦ don't π use the one you got handed earlier. iykyk.
π SEE ALSO π
everything is connected, it's giving family reunion π§
- kernel file
./kernel/trace/tracing_map.c tracing_map_read_sum(9)tracing_map_set_var(9)tracing_map_var_set(9)tracing_map_read_var(9)tracing_map_read_var_once(9)tracing_map_add_sum_field(9)tracing_map_add_var(9)tracing_map_add_key_field(9)tracing_map_insert(9)tracing_map_lookup(9)tracing_map_destroy(9)tracing_map_clear(9)tracing_map_create(9)tracing_map_init(9)tracing_map_destroy_sort_entries(9)tracing_map_sort_entries(9)
go read them. all of them. be thorough bestie π
and that's the whole page!! πΈ this lil baddie lives in ./kernel/trace and the version is dated October 2026 β so yeah, mark your calendars, screenshot it, send it to the group chat, tracing_map_update_sum(9) said see you then β¨ππ
π¦ 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