DPDK 21.11.9
|
Go to the source code of this file.
Enumerations | |
enum | rte_trace_mode { RTE_TRACE_MODE_OVERWRITE , RTE_TRACE_MODE_DISCARD } |
Functions | |
__rte_experimental bool | rte_trace_is_enabled (void) |
__rte_experimental void | rte_trace_mode_set (enum rte_trace_mode mode) |
__rte_experimental enum rte_trace_mode | rte_trace_mode_get (void) |
__rte_experimental int | rte_trace_pattern (const char *pattern, bool enable) |
__rte_experimental int | rte_trace_regexp (const char *regex, bool enable) |
__rte_experimental int | rte_trace_save (void) |
__rte_experimental int | rte_trace_metadata_dump (FILE *f) |
__rte_experimental void | rte_trace_dump (FILE *f) |
RTE Trace API
This file provides the trace API to RTE applications.
Definition in file rte_trace.h.
enum rte_trace_mode |
Enumerate trace mode operation.
Definition at line 41 of file rte_trace.h.
__rte_experimental bool rte_trace_is_enabled | ( | void | ) |
Test if trace is enabled.
__rte_experimental void rte_trace_mode_set | ( | enum rte_trace_mode | mode | ) |
Set the trace mode.
mode | Trace mode. |
__rte_experimental enum rte_trace_mode rte_trace_mode_get | ( | void | ) |
Get the trace mode.
__rte_experimental int rte_trace_pattern | ( | const char * | pattern, |
bool | enable | ||
) |
Enable/Disable a set of tracepoints based on globbing pattern.
pattern | The globbing pattern identifying the tracepoint. |
enable | true to enable tracepoint, false to disable the tracepoint, upon match. |
__rte_experimental int rte_trace_regexp | ( | const char * | regex, |
bool | enable | ||
) |
Enable/Disable a set of tracepoints based on regular expression.
regex | A regular expression identifying the tracepoint. |
enable | true to enable tracepoint, false to disable the tracepoint, upon match. |
__rte_experimental int rte_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.
__rte_experimental int rte_trace_metadata_dump | ( | FILE * | f | ) |
Dump the trace metadata to a file.
f | A pointer to a file for output |
__rte_experimental void rte_trace_dump | ( | FILE * | f | ) |
Dump the trace subsystem status to a file.
f | A pointer to a file for output |