truss
truss [ -fcaeildD ] [ - [ tTvx ] [ ! ] syscall , ... ] [ - [ sS ] [ ! ] signal , ... ] [ - [ mM ] [ ! ] fault , ... ] [ - [ rw ] [ ! ] fd , ... ] [ - [ uU ] [ ! ] lib , ... : [ : ] [ ! ] func , ... ] [ -o outfile ] command | -p pid ...
Available on: Solaris
Examples
Trace a running task (PID 12910)
# truss -aef -wall -rall -p 12910
Run a command and trace it, writing trace information to a file
$ truss -aef -wall -rall -o truss.out date