HP-UX Linker and Libraries User's Guide
The output from each of the execution is appended to the log file.
To generate a log when a program $ ./a.out arg1 arg2 arg3 .. argn is executed, use the following
command syntax:
$/usr/ccs/bin/ltrace ./a.out -a "arg1 arg2 arg3 .. argn"
For example:
$/usr/ccs/bin/ltrace /usr/bin/ls -a "-ltr"
The above-mentioned command has the effect of tracing all inter-module procedure calls when
/usr/bin/ls -ltr command is executed.
NOTE: ltrace does not need the debug version of the library libc as it already includes
prototype information for some of the most commonly used libc procedures. For the remaining
libc procedures, only the execution is reported.
68 Linker Tools for Itanium-Based Systems