PROBE::SYSCALL_ANY(3stap)

πŸ’– PROBE::SYSCALL_ANY πŸ’–

okay bestie, so this is a page from the SystemTap Tapset Reference β€” it's manual section 3stap, and it's all about the syscall_any tapset. Buckle up, it's short but it's iconic. ✨


🌸 NAME 🌸

probe::syscall_any.return β€” literally just: Record exit from a syscall πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

probe syscall_any.return {}

that's it. that's the whole probe. no arguments, no fuss, she's lowkey minimal and we respect it πŸ’…


πŸ’œ VALUES πŸ’œ

these are the things you can peek at when this probe fires. three of them. all bangers.

  • syscall_nr β€” number of the syscall
  • retval β€” return value of the syscall
  • name β€” name of the syscall

like. the number, the return, and the name. the full trio. the way that's so helpful of her fr fr πŸ™ˆ


🧚 CONTEXT 🧚

The process performing the syscall

(yeah β€” it's the process doing the syscall. the main character of this whole operation, no cap πŸ‘‘)


πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea, and it's giving smart:

She prefers kernel.tracepoint("sys_exit") when vmlinux.h BTF tracepoints are available. but if they're not? she's got a backup plan, bestie β€” she falls back to kernel.trace("sys_exit") (kernel 3.5+). 🫢

so like: fancy modern tracepoints first, old reliable second. she's flexible. she's adaptable. she ate. πŸ’…

ngl the fallback is the important part β€” if your kernel is doing the BTF thing she rides the tracepoint, otherwise it's the plain trace route. either way, kernel 3.5+ is the floor here. ⭐

🌈 SEE ALSO 🌈

go read that one too, iykyk πŸ“–βœ¨


and that's the whole page, bestie!! πŸ’– This was the SystemTap Tapset Reference, version September 2026 β€” mwah, go trace some syscalls, you've got this πŸ¦‹πŸŽ€πŸ’œ

πŸ“¦ where this page comes from