SOTRUSS(1)

✨ SOTRUSS ✨

okay bestie, welcome to sotruss(1) πŸ’… β€” a User Commands page, and honestly? it's giving lowkey magic. sit down, grab a boba, let's get into it πŸ§‹πŸ¦‹


🌸 NAME 🌸

sotruss β€” trace shared library calls through PLT πŸŽ€


🫢 SYNOPSIS 🫢

sotruss [OPTION...] [--] EXECUTABLE [EXECUTABLE-OPTION...]

πŸ’– DESCRIPTION πŸ’–

so. sotruss is literally just a small wrapper around ld.so β€” no cap. you hand it an executable, and it runs that executable until it exits, that's the whole job.

but here's the slay: while that process is running, sotruss intercepts the dynamic library calls that the process makes through the Procedure Linkage Table (PLT), and produces a whole trace of them. and it's not doing the bare minimum either β€” as each call gets executed, it outputs the caller, the calle and the parameters. main character observability fr fr πŸ”₯


✨ OPTIONS ✨

  • -F, --from _FROMLIST_ β€” trace calls that come from objects on _FROMLIST_ πŸ‘€
  • -T, --to _TOLIST_ β€” trace calls that go to objects on _TOLIST_ πŸ’«
  • -e, --exit β€” also show the exits from the function calls. not just the arrivals, bestie, the departures too πŸšͺ✨
  • -f, --follow β€” follow child processes as they get created by the processes you're currently tracing, as a result of the fork(2) system call. it's giving family tree energy 🌳
  • -o, --output _FILENAME_ β€” write output to _FILENAME_ instead of standard error. (or to FILENAME. in case -f is also used πŸ‘€ yes, with the dot, that's not a typo, that's the vibe)
  • -?, --help β€” give this help list 🫢
  • --usage β€” give a short usage message ⭐
  • --version β€” print program version 🏷️

πŸ‘‘ AUTHOR πŸ‘‘

Written by Ulrich Drepper. an icon, honestly 🫑


Copyright Β© 2013 Free Software Foundation, Inc. πŸ’œ

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. read that again bestie, no warranty, we said what we said 😭


🌈 SEE ALSO 🌈


and that's the whole page, no crumbs left πŸ’€βœ¨

okay bye, this was the sotruss manual page, from May 2014, and you can find it chilling in the User Commands section of the manual, filed under SOTRUSS(1) πŸ’– go trace something, you got this πŸ«ΆπŸŽ€