DPDK 25.03.0-rc0
rte_trace.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2020 Marvell International Ltd.
3 */
4
5#ifndef _RTE_TRACE_H_
6#define _RTE_TRACE_H_
7
19#include <stdbool.h>
20#include <stdio.h>
21
22#include <rte_common.h>
23#include <rte_compat.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
35__rte_experimental
37
47__rte_experimental
48static __rte_always_inline bool
50{
51#ifdef RTE_TRACE
52 return true;
53#else
54 return false;
55#endif
56}
57
72};
73
80__rte_experimental
82
89__rte_experimental
91
104__rte_experimental
105int rte_trace_pattern(const char *pattern, bool enable);
106
120__rte_experimental
121int rte_trace_regexp(const char *regex, bool enable);
122
133__rte_experimental
135
145__rte_experimental
147
154__rte_experimental
155void rte_trace_dump(FILE *f);
156
157#ifdef __cplusplus
158}
159#endif
160
161#endif /* _RTE_TRACE_H_ */
#define __rte_always_inline
Definition: rte_common.h:413
__rte_experimental int rte_trace_metadata_dump(FILE *f)
rte_trace_mode
Definition: rte_trace.h:61
@ RTE_TRACE_MODE_OVERWRITE
Definition: rte_trace.h:66
@ RTE_TRACE_MODE_DISCARD
Definition: rte_trace.h:71
__rte_experimental int rte_trace_pattern(const char *pattern, bool enable)
__rte_experimental int rte_trace_regexp(const char *regex, bool enable)
__rte_experimental bool rte_trace_is_enabled(void)
__rte_experimental void rte_trace_dump(FILE *f)
__rte_experimental void rte_trace_mode_set(enum rte_trace_mode mode)
__rte_experimental int rte_trace_save(void)
static __rte_experimental __rte_always_inline bool rte_trace_feature_is_enabled(void)
Definition: rte_trace.h:49
__rte_experimental enum rte_trace_mode rte_trace_mode_get(void)