die_get_var_range(9)
π die_get_var_range(9) β the Kernel API Manual, bestie edition β¨
okay so real talk: this is die_get_var_range, and yes the manual name is <rainbow>Kernel API Manual</rainbow> because that's literally where we live now π
πΈ NAME πΈ
die_get_var_range β get the byte offset range of a given variable DIE π
β¨ SYNOPSIS β¨
int die_get_var_range (Dwarf_Die *sp_die , Dwarf_Die *vr_die , struct
strbuf *buf );
like, that's the whole signature, no cap π«Ά
π ARGUMENTS π
sp_dieβ a subprogram DIE. the function-side of the situation, if you will πvr_dieβ a variable DIE. the variable in question, main character energy πbufβ astrbuffor the type and variable name and the byte offset range. it's holding all three, she's booked and busy π
π DESCRIPTION π
so what she does is: she gets the byte offset range of vr_die and stores it in buf, formatted like this β¬οΈ
"<function_name+[NN-NN,NN-NN]>"
that's it, that's the vibe π¦ honestly obsessed with how tidy that looks.
π₯ SEE ALSO π₯
the whole friend group, fr fr β go say hi to all of them π
cu_find_realpath(9)cu_get_comp_dir(9)cu_find_lineinfo(9)cu_walk_functions_at(9)die_get_linkage_name(9)die_compare_name(9)die_match_name(9)die_get_call_lineno(9)die_get_type(9)die_get_real_type(9)die_get_pointer_type(9)die_is_signed_type(9)die_is_func_def(9)die_entrypc(9)die_is_func_instance(9)die_get_data_member_location(9)die_get_call_file(9)die_get_decl_file(9)die_find_child(9)die_find_tailfunc(9)die_find_realfunc(9)die_find_top_inlinefunc(9)die_find_inlinefunc(9)die_find_func_rettype(9)die_walk_instances(9)die_walk_lines(9)die_find_variable_at(9)die_find_member(9)die_get_typename_from_type(9)die_get_typename(9)die_get_varname(9)die_get_var_innermost_scope(9)is_breg_access_indirect(9)die_find_variable_by_reg(9)die_find_variable_by_addr(9)die_collect_vars(9)die_collect_global_vars(9)die_get_cfa(9)die_get_scopes(9)die_get_member_type(9)die_deref_ptr_type(9)
ngl bestie, that's a lot of (9)s and every single one ate π₯ don't skip them, they're all peak.
and that's the page!! π this one lives in ./tools/perf/util, dated October 2026, and it's copyrighted to the Kernel API Manual β mwah, sending you off with a π and a π, slay, periodt π
β¨
π¦ 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