die_get_real_type(9)
okay bestie, welcome to die_get_real_type(9) from the Kernel API Manual β this is the page where we get a type DIE but skip qualifiers and typedefs, and honestly? iconic. π
β¨ NAME β¨
die_get_real_type β Get a type die, but skip qualifiers and typedef.
πΈ SYNOPSIS πΈ
Dwarf_Die * die_get_real_type (Dwarf_Die *vr_die , Dwarf_Die *die_mem );
π ARGUMENTS π
vr_dieβ a DIE of a variable. like, the variable DIE you're handing over, bestie.die_memβ where to store a type DIE. this is the spot where the type DIE lands.
π DESCRIPTION π
okay so here's the tea: this function gets a DIE of the type of the given variable (vr_die) and stores it in die_mem. If it fails to get a type DIE, it returns NULL β that's the fail case, no cap.
And if the type is qualifiers (e.g. const) or a typedef, it skips that and tries to find the real type β like a structure or basic types, e.g. int. literally the whole point: skip the fake-out wrapper and find the actual type. slay. π¦
π₯ SEE ALSO π₯
Kernel file ./tools/perf/util/dwarf-aux.c β these are the related pages, all listed so you don't miss a single one:
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_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)die_get_var_range(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)
This page is dated October 2026, comes from the source spot ./tools/perf/util, and it's die_get_real_type(9) β bye bestie, go get that real type! π«Άπ
π¦ 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