whocalls(1)
NAME
whocalls − report on the calls to a specific procedure.
SYNOPSIS
/usr/ccs/bin/whocalls whocalls [ -l wholib ] funcname
executable [executable arguements ...]
DESCRIPTION
whocalls is a simple example of a utility based on the Link-Auditing library, which permits the tracking of a given function call. See Linker and Libraries Guide. 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.
OPTIONS
−l wholib Specify an alternate who.so Link-Auditing library to use.
EXAMPLES
This examples tracks the calls to printf() made by a simple hello_world program
% whocalls printf hello
printf(0x106e4, 0xef625310, 0xef621ba8)
hello:main+0x10
hello:_start+0x5c
hello
%
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| Availability | SUNWtoo |
SEE ALSO
ld.so.1(1), sotruss(1), attributes(5)
Linker and Libraries Guide
SunOS 5.6 — Last change: 24 Jan 1997