cu_walk_functions_at(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cu_walk_functions_at β€” from the Kernel API Manual (section 9)

okay so bestie, welcome to the dwarf-walking corner of the kernel, this one lives in the Kernel API Manual and it's lowkey a little tour guide for function DIEs ✨


🌸 NAME 🌸

cu_walk_functions_at β€” walk on function DIEs at given address πŸšΆβ€β™€οΈπŸ’–


✨ SYNOPSIS ✨

int cu_walk_functions_at (Dwarf_Die *cu_die , Dwarf_Addr addr , int
(*callback)(Dwarf_Die *, void *) , void *data );

πŸŽ€ ARGUMENTS πŸŽ€

  • cu_die β€” a CU DIE. that's the compile-unit DIE you're strolling through, she's the main character of this whole operation πŸ‘‘
  • addr β€” an address. the spot you're checking out πŸ—ΊοΈ
  • callback β€” a callback which is called with the found DIEs. she gets handed each DIE that turns up, so be nice to her 🫢
  • data β€” a user data. your own little bag of stuff that rides along and gets passed through πŸ’œ

πŸ¦‹ DESCRIPTION πŸ¦‹

Walk on function DIEs at given addr in cu_die. no cap, that's the whole bit: you give it a compile-unit DIE and an address, and it goes walking through the function DIEs sitting at that address.

The DIEs that get passed along should be subprogram or inlined-subroutines. like, that's the vibe check for what shows up β€” those are the kinds of DIEs you're going to meet on this walk πŸ§šβ€β™€οΈ


🌈 SEE ALSO 🌈

the kernel file ./tools/perf/util/dwarf-aux.c, plus the whole friend group of dwarf helpers β€” fr fr, go say hi to all of them:


kk that's the whole page, mwah πŸ’‹ β€” this cutie came out of ./tools/perf/util, dated October 2026, and she ate, no notes βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from