![]() |
Flowgrind
Advanced TCP traffic generator
|
Debugging routines for Flowgrind controller and daemon. More...
Go to the source code of this file.
Macros | |
#define | DEBUG_MSG(LVL, MSG, ...) |
Print debug message to standard error. More... | |
Functions | |
int | debug_timestamp (char **resultp) |
Helper function for DEBUG_MSG macro. More... | |
void | decrease_debuglevel (void) |
Decrease debug level. More... | |
void | increase_debuglevel (void) |
Decrease debug level. More... | |
Variables | |
unsigned | debug_level |
Global debug level for flowgrind controller and daemon. More... | |
Debugging routines for Flowgrind controller and daemon.
Definition in file debug.h.
#define DEBUG_MSG | ( | LVL, | |
MSG, | |||
... | |||
) |
Print debug message to standard error.
If the debug level is higher than the given debug level LVL
, print debug message MSG
together with current time, the delta in time since the last and first debug call, the function in which the debug call occurs, and the process and thread PID.
int debug_timestamp | ( | char ** | resultp | ) |
Helper function for DEBUG_MSG macro.
Write string with the current time in seconds and nanoseconds since the Epoch together with the delta in time since the last and first call the function.
[in,out] | resultp | destination string to write to |
Definition at line 56 of file debug.c.
|
inline |
Decrease debug level.
|
inline |
Decrease debug level.