Go to the source code of this file.
Defines | |
#define | TRACE_LEVEL_NONE 4 |
NONE: No statement printed ever, use to disable trace. | |
#define | TRACE_LEVEL_ERROR 3 |
ERROR: Error Level. | |
#define | TRACE_LEVEL_WARN 2 |
WARN: Warning level. | |
#define | TRACE_LEVEL_INFO 1 |
INFO: Info level. | |
#define | TRACE_LEVEL_DEBUG 0 |
DEBUG: Debug level. | |
#define | TRACE_LEVEL_DEFAULT TRACE_LEVEL_INFO |
Default trace level. | |
#define | TRACE(level, trigger, action) /*lint -E{506} -E{774}*/if(TRACE_LEVEL_##level >= TRACE_LEVEL) fip_trace_print(TRACE_LEVEL_##level, __func__, FIP_TRACE_TR_##trigger, FIP_TRACE_ACT_##action) |
Add a TRACE statement. | |
#define | TRACE_ADDVAR(level, format, order, name, ptr, size) /*lint -E{506} -E{774}*/if(TRACE_LEVEL_##level >= TRACE_LEVEL) fip_trace_addvar(TRACE_ORDER_##order | TRACE_FORMAT_##format, name, (unsigned char *)ptr, size); |
Add a variable to the TRACE statement. | |
#define | TRACE_ADDVARH(level, format, name) TRACE_ADDVAR(level, format, HOST, #name, &name, sizeof(name)) |
Add a hosts variable to the TRACE statement, small version that requires less information by making a number of assumptions. | |
#define | TRACE_ADDRET(level) TRACE_ADDVAR(level, POINTER, HOST, "Retaddr", builtin_getRPtr(), sizeof(void *)); |
Add a statement with the return address of the function, can be used to figure out where the current function was called for. | |
#define | TRACE_ADDIP6ADDR(level, name, addr) TRACE_ADDVAR(level, IPV6ADDR, MSBFIRST, name, addr, 16) |
Add an IPv6 Address to the trace statement. | |
#define | TRACE_FORMAT_NULL 0 |
No format, no data. | |
#define | TRACE_FORMAT_UNSIGNED 1 |
Unsigned decimal. | |
#define | TRACE_FORMAT_SIGNED 2 |
Signed decimal. | |
#define | TRACE_FORMAT_HEX 3 |
Hex of form 0xYY, 0xYYYY, etc depending on length. | |
#define | TRACE_FORMAT_IPV6ADDR 4 |
IPv6 Address. | |
#define | TRACE_FORMAT_BYTEADDR 5 |
Address in form YY:YY:YY:YY. | |
#define | TRACE_ORDER_MSBFIRST 0x80 |
Flag: network order. | |
#define | TRACE_ORDER_LSBFIRST 0x00 |
Flag: host order. | |
#define | TRACE_ORDER_MASK 0x80 |
Flag mask. | |
#define | TRACE_FORMAT_MASK 0x7F |
Format mast. | |
Functions | |
void | fip_trace_test (void) |
Run a test by printing a number of TRACE statements. |