cu_find_lineinfo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the cu_find_lineinfo(9) page in the Kernel API Manual ✨

cu_find_lineinfo β€” Get a line number and file name for given address πŸŽ€

✨ SYNOPSIS ✨

the signature is literally this, no cap:

int cu_find_lineinfo (Dwarf_Die *cu_die , Dwarf_Addr addr , const char
       **fname , int *lineno );

πŸŽ€ ARGUMENTS πŸŽ€

  • cu_die β€” a CU DIE 🧚
  • addr β€” An address πŸ“
  • fname β€” a pointer which returns the file name string πŸ“
  • lineno β€” a pointer which returns the line number πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so, the whole move here is: find a line number and file name for addr in cu_die. that’s it, that’s the vibe β€” debug-info detective work and honestly? iconic πŸ’…βœ¨

🌈 SEE ALSO 🌈

Kernel file ./tools/perf/util/dwarf-aux.c, and the whole SEE ALSO friend group is: cu_find_realpath(9), cu_get_comp_dir(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), 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) 🫢


mwah πŸ’‹ β€” this page’s source/version is ./tools/perf/util, the date is October 2026, and the page is cu_find_lineinfo(9). periodt 🫢🌸

πŸ“¦ where this page comes from