Enumerations | |
enum | { MSP_TRACE_BRIEF = 1, MSP_TRACE_DETAIL = 2, MSP_TRACE_EXTENSIVE = 3, MSP_TRACE_VERBOSE = 4 } |
Sample levels to be used by msp_trace API. | |
Functions | |
int | msp_trace_handle_create (const char *name) |
Create a trace handle to be used by other trace APIs. | |
int | msp_trace_handle_setlevel (int handle, int level) |
Set trace level for the given handle. | |
int | msp_trace_handle_getlevel (int handle) |
Get trace level for the given handle. | |
void | msp_trace (int handle, int level, const char *format,...) |
Fast trace API. | |
void | msp_log (int log_level, const char *format,...) |
Fast log API. |
The same backend is used for syslogs and the output is just sent to RE. (syslog, tracing use different buffers and enabling one should not impact the other one).
Assumptions are that this tracing will be controlled and if the per cpu buffers fill up traces/syslogs can be lost.
Trace handles are a generic way to control the level of tracing for subset of traces. This can be controlled from debug cli. Idea is to provide a generic way for trace users to set/clear trace options from debug cli without having to change debug cli.
These APIs can only be used from plugin context.
|
Fast log API.
|
|
Fast trace API.
|
|
Create a trace handle to be used by other trace APIs.
|
|
Get trace level for the given handle.
|
|
Set trace level for the given handle.
|