tcpdump mailing list archives

Re: [tcpdump] New configure option for debugging


From: Francois-Xavier Le Bail via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Sat, 22 Jan 2022 13:49:08 +0100

--- Begin Message --- From: Francois-Xavier Le Bail <devel.fx.lebail () orange fr>
Date: Sat, 22 Jan 2022 13:49:08 +0100
The usage is:
./configure --enable-instrument-functions

This should help some debugging processes.
 
Enabling it generate instrumentation calls for entry and exit to functions.
Just after function entry and just before function exit, these profiling functions are called and print the function 
names with indentation and call level.
 
To instrument a static function, remove temporarily the static specifier.

The result output of the --enable-instrument-functions has been enhanced:
    
It prints now, by default, also the static functions names.

To configure the printing of only the global functions names, as before:
$ make instrument_global

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

--- End Message ---
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: