die_find_realfunc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… die_find_realfunc(9) πŸ’…

okay bestie, welcome to the Kernel API Manual corner of the group chat β€” today’s main character is die_find_realfunc(9), and the name is literally giving β€œfind the real one” energy. ✨


πŸŽ€ NAME πŸŽ€

die_find_realfunc β€” search a non-inlined function at a given address. No cap, that’s the whole plot. 🫢


🌸 SYNOPSIS 🌸

Dwarf_Die * die_find_realfunc (Dwarf_Die *cu_die , Dwarf_Addr addr ,
Dwarf_Die *die_mem );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cu_die β€” the CU DIE that includes addr. That’s the context bestie, don’t lose it.
  • addr β€” the target address. The exact spot we’re investigating.
  • die_mem β€” a buffer for the result DIE. This is where the found DIE gets parked.

✨ DESCRIPTION ✨

So here’s the tea: die_find_realfunc searches for a non-inlined function DIE which includes addr. If it finds one, it stores that DIE to die_mem and returns it. If it fails, you get NULL β€” and that’s it, no dramatic monologue. πŸ’€

bestie reminder: this is specifically about a non-inlined function DIE, not just any cute little inline situation. Read the assignment. πŸ’…

🌈 SEE ALSO 🌈

The kernel file is ./tools/perf/util/dwarf-aux.c, and the whole friend group is right here β€” collect them all like they’re limited-edition stickers:


bye bestie πŸ’– β€” source/version energy is ./tools/perf/util, the date is October 2026, and this has been your die_find_realfunc(9) moment. periodt. πŸ‘‘

πŸ“¦ where this page comes from