FUNCTION::ADDR(3stap)

✨ function::addr πŸ’–

okay bestie, welcome to the SystemTap Tapset Reference, section 3stap β€” this is the Context Functions corner of the manual, and today's main character is a lil function called addr. she's tiny, she's iconic, and she knows exactly where you are. iykyk πŸ’…


NAME πŸŽ€

function::addr β€” Address of the current probe point. that's it, that's the whole vibe.


SYNOPSIS ✨

addr:long()

ARGUMENTS 🌸

None. nope, zero, nada, she takes no arguments, she's self-sufficient, she doesn't need you to hand her anything 🫢


DESCRIPTION πŸ’–

okay so here's the tea: addr returns the instruction pointer from the current probe's register state. like, it's telling you where in the code you literally are right now. main character energy fr.

BUT β€” and this is important, bestie β€” not all probe types have registers. if yours doesn't, then zero is returned. zero. nothing. the void. πŸ’€ so don't be surprised if you get a big fat 0 back.

the returned address is suitable for use with functions like symname and symdata. so like, if you wanna turn that raw address into something readable, those two are your girls 🌈


SEE ALSO πŸ”₯


heads up bestie: this is 3stap, the SystemTap tapset reference β€” so these functions live in tapset land, not regular libc land. different universe, same energy πŸ‘‘

and that's the whole page, no cap 🧚 SystemTap Tapset Reference, Ver, September 2026 β€” mwah, slay, go probe something iconic πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from