__rte_experimentalboolrte_trace_is_enabled(void)
Test if trace is enabled.
Returns
true if trace is enabled, false otherwise.
static__rte_experimental__rte_always_inlineboolrte_trace_feature_is_enabled(void)[static]WarningEXPERIMENTAL: this API may change, or be removed, without prior notice
Test if trace feature is enabled at compile time.
Returns
true if trace feature is enabled, false otherwise.
Definition at line 49 of file rte_trace.h.
__rte_experimentalvoidrte_trace_mode_set(enumrte_trace_modemode)
Set the trace mode.
Parametersmode Trace mode.
__rte_experimentalenumrte_trace_moderte_trace_mode_get(void)
Get the trace mode.
Returns
The current trace mode.
__rte_experimentalintrte_trace_pattern(constchar*pattern,boolenable)
Enable/Disable a set of tracepoints based on globbing pattern.
Parameterspattern The globbing pattern identifying the tracepoint.
enable true to enable tracepoint, false to disable the tracepoint, upon match.
Returns
• 0: Success and no pattern match.
• 1: Success and found pattern match.
• (-ERANGE): Tracepoint object is not registered.
__rte_experimentalintrte_trace_regexp(constchar*regex,boolenable)
Enable/Disable a set of tracepoints based on regular expression.
Parametersregex A regular expression identifying the tracepoint.
enable true to enable tracepoint, false to disable the tracepoint, upon match.
Returns
• 0: Success and no pattern match.
• 1: Success and found pattern match.
• (-ERANGE): Tracepoint object is not registered.
• (-EINVAL): Invalid regular expression rule.
__rte_experimentalintrte_trace_save(void)
Save the trace buffer to the trace directory.
By default, trace directory will be created at $HOME directory and this can be overridden by --trace-dir
EAL parameter.
Returns
• 0: Success.
• <0 : Failure.
__rte_experimentalintrte_trace_metadata_dump(FILE*f)
Dump the trace metadata to a file.
Parametersf A pointer to a file for output
Returns
• 0: Success.
• <0 : Failure.
__rte_experimentalvoidrte_trace_dump(FILE*f)
Dump the trace subsystem status to a file.
Parametersf A pointer to a file for output