FUNCTION::RETURN_STR(3stap)

πŸ’– FUNCTION::RETURN_STR πŸ’–

okay bestie, welcome to the Errno Tapset corner of the 3stap manual pages πŸŽ€ this one's short, sweet, and lowkey iconic, so let's get into it.


✨ NAME ✨

function::return_str β€” literally formats the return value as a string πŸ’…


✨ SYNOPSIS ✨

return_str:string(format:long,ret:long)

✨ ARGUMENTS ✨

  • format β€” the variable that decides what base value the return type is gonna use, bestie. it's the vibe-setter 🌸
  • ret β€” the return value itself, and yeah, it's typically $return πŸ‘‘

✨ DESCRIPTION ✨

so this function gets used by the syscall tapset, and what it does is hand you back a string. that's it, that's the whole gig ✨

set format like this and it's giving:

  • 1 β†’ decimal
  • 2 β†’ hex
  • 3 β†’ octal

and ngl, you should know that this function is preferred over returnstr β€” like, returnstr is fine but this one is the main character πŸ‘‘ periodt.


✨ SEE ALSO ✨


and that's the whole page, bestie!! 🫢 this one came from the SystemTap Tapset Reference, version field literally just says Ver, and it's dated September 2026 πŸ“… slay, go format some return values, iykyk πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from