die_get_scopes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, meet die_get_scopes β€” the die_get_scopes(9) girlie from the Kernel API Manual whose whole thing is to return a list of scopes including the address πŸ’…βœ¨

✨ SYNOPSIS ✨

the signature, served fresh:

int die_get_scopes (Dwarf_Die *cu_die , Dwarf_Addr pc , Dwarf_Die
**scopes );

πŸŽ€ ARGUMENTS πŸŽ€

  • cu_die β€” a compile unit DIE, aka the context baddie.
  • pc β€” the address to find. yes, that address.
  • scopes β€” the array of DIEs for scopes (result). she fills this in for you 🫢

πŸ’– DESCRIPTION πŸ’–

so basically this function does the same as dwarf_getscopes, but she does not follow the origins of inlined functions. important vibe check, no cap.

she returns the number of scopes saved in the scopes argument. the outer scope gets saved first at index 0, and the last one is the innermost scope at the pc β€” literally innermost, bestie 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./tools/perf/util/dwarf-aux.c, and here's the whole friend group β€” every single one, periodt:


okay that's the whole page, bestie 🫢 this one comes from ./tools/perf/util, dated October 2026, and it's filed under die_get_scopes(9) β€” now go find those scopes πŸ’…βœ¨

πŸ“¦ where this page comes from