tracing_map_read_sum(9)
π tracing_map_read_sum(9) π
okay so real talk, bestie β this is a Kernel API Manual page, and today's main character is tracing_map_read_sum(9). yes it's a mouthful, no you're not gonna mess it up, i got you π«Ά
β¨ NAME β¨
tracing_map_read_sum β it literally just returns the value of a tracing_map_elt's sum field. that's the whole gig. icon behavior, honestly π
πΈ SYNOPSIS πΈ
u64 tracing_map_read_sum (struct tracing_map_elt *elt , unsigned int i );
look at that signature. it ate. π
π ARGUMENTS π
eltβ thetracing_map_elt. like, the element. your guy. your blorbo πiβ the index of the given sum associated with thetracing_map_elt. it's a number pointing at which sum you want, iykyk β¨
π¦ DESCRIPTION π¦
so the way this works: you call this and it retrieves the value of the sum i associated with the specified tracing_map_elt instance. that's it. that's the vibe check and it passed π
and here's the part you actually need to remember, bestie: the index i is the index returned by the call to tracing_map_add_sum_field when the tracing map was set up. so don't be out here inventing your own index, okay?? you gotta use the one tracing_map_add_sum_field handed you back at setup time. no cap, this matters π
π RETURN π
the sum associated with field i for elt. that's what you get back. periodt π
π§ SEE ALSO π§
kernel file ./kernel/trace/tracing_map.c, plus the whole friend group:
tracing_map_update_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)
literally the entire tracing_map squad. go say hi to all of them π«Ά
and that's the page!! one more thing for the road β this lil beauty comes from ./kernel/trace in the Kernel API Manual, and the date on it is October 2026. write that down, bestie ποΈπ
go read your sums, slay, and remember β kernel dev is main character energy fr fr πβ¨π
π¦ 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