August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/ccs/bin/whocalls whocalls [-l wholib] funcname executable [executable arguments...]
The whocalls command is based on the Link-Auditing library that permits the tracking of a given function call. See Linker and Libraries Guide for more information. The executable is run as normal. Each time the procedure funcname is called, both the arguments to that procedure and a stack trace are displayed on standard output.
| -l wholib | Specify an alternate who.so Link-Auditing library to use. |
This examples tracks the calls to printf() made by a simple hello_world program.
castle% whocalls printf hello printf(0x106e4, 0xef625310, 0xef621ba8) hello:main+0x10 ...Read now
Unlock full access