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 thefork(2)system call. it's giving family tree energy π³-o,--output_FILENAME_ β write output to _FILENAME_ instead of standard error. (or toFILENAME.in case-fis 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 π
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 π
ld.so(8)π¦
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 π«Άπ
π¦ where this page comes from
- debian bookworm: libc-devtools 2.36-9+deb12u14
- debian bookworm: libc-devtools 2.36-9+deb12u7
- debian trixie: libc-devtools 2.41-12+deb13u4 Β· LGPL-2.1-or-later
- ubuntu jammy: libc-devtools 2.35-0ubuntu3
- ubuntu jammy: libc-devtools 2.35-0ubuntu3.15
- ubuntu noble: libc-devtools 2.39-0ubuntu8
- ubuntu noble: libc-devtools 2.39-0ubuntu8.9
- ubuntu questing: libc-devtools 2.42-0ubuntu3
- ubuntu questing: libc-devtools 2.42-0ubuntu3.1
- ubuntu resolute: libc-devtools 2.43-2ubuntu2 Β· LGPL-2.1-or-later
- ubuntu resolute: libc-devtools 2.43-2ubuntu2.4 Β· LGPL-2.1-or-later
- ubuntu stonking: libc-devtools 2.44-1ubuntu2 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms