- online man pages   

SunOS man pages : whocalls (1)

User Commands                                         whocalls(1)


whocalls - report on the calls to a specific procedure.


/usr/ccs/bin/whocalls whocalls [ -l wholib ] funcname executable [ executable arguements ... ]


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.


-l wholib Specify an alternate Link-Auditing library to use.


Example 1: A sample of the whocalls command. 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 %


See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWtoo | |_____________________________|_____________________________|

SEE ALSO, sotruss(1), attributes(5) Linker and Libraries Guide SunOS 5.8 Last change: 24 Jan 1997 1