tracing_map_set_var(9)
π tracing_map_set_var(9) β okay bestie, welcome to the Kernel API Manual πΈ
So you wanna assign a tracing_map_elt's variable field? Periodt, this is literally the function for that, and I'm gonna walk you through it like we're on FaceTime π«Ά
β¨ NAME β¨
tracing_map_set_var β Assign a tracing_map_elt's variable field π
π¦ SYNOPSIS π¦
void tracing_map_set_var (struct tracing_map_elt *elt , unsigned int i ,
u64 n );
π ARGUMENTS π
eltβ Thetracing_map_eltπ like, the whole star of the show.iβ The index of the given variable associated with thetracing_map_eltπ’nβ The value to assign π
π DESCRIPTION π
Okay so here's the tea β β this function assigns n to variable i associated with the specified tracing_map_elt instance. Not me being obsessed with a two-line function but here we are π
And listen, the index i? It's the index returned by the call to tracing_map_add_var when the tracing map was set up. So don't just make up a number, bestie β use the one you were literally handed. iykyk π
π SEE ALSO π
Kernel file ./kernel/trace/tracing_map.c ποΈ and honestly the whole friend group:
tracing_map_update_sum(9)tracing_map_read_sum(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)
ngl the whole squad showed up for this one π₯ go read them, they ate π
and that's the post, bestie π§π this lil page lives in ./kernel/trace, it's dated October 2026, and it answers to the name tracing_map_set_var(9) β no cap, that's the whole sign-off πΈβ¨
π¦ 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