]> The Tcpdump Group git mirrors - tcpdump/commit
instrument functions: Enhance the output
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 24 Jan 2022 08:56:21 +0000 (09:56 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 27 Jan 2022 15:05:58 +0000 (16:05 +0100)
commit65f4c88d27fa3a333b7f5303c34d8d10999e1d4d
tree0184c44a1aff098c0f97c54217ff1830e9122f6c
parent1af6dea4120b6d566f7c4e6eff0179b6fa819ba9
instrument functions: Enhance the output

If entering in a function, print also the calling function name with
file name and line number. There may be a small shift in the line number.

In some cases, with Clang 11, the file number is unknown (printed '??')
or the line number is unknown (printed '?'). In this case, use GCC.

To print nothing, like with no instrumentation:
$ make instrument_off

As before, the following commands are available:
To configure the printing of only the global functions names:
$ make instrument_global

To go back to print all the functions names:
$ make instrument_all

The library libbfd is used, therefore the binutils-dev package is required.
.gitignore
Makefile.in
configure
configure.ac
instrument-functions.c