DPDK  23.03.0
rte_eal_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_EAL_TRACE_H_
6 #define _RTE_EAL_TRACE_H_
7 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include <rte_trace_point.h>
19 
20 /* Generic */
22  rte_eal_trace_generic_void,
24 )
25 
27  rte_eal_trace_generic_u64,
28  RTE_TRACE_POINT_ARGS(uint64_t in),
30 )
31 
33  rte_eal_trace_generic_u32,
34  RTE_TRACE_POINT_ARGS(uint32_t in),
36 )
37 
39  rte_eal_trace_generic_u16,
40  RTE_TRACE_POINT_ARGS(uint16_t in),
42 )
43 
45  rte_eal_trace_generic_u8,
46  RTE_TRACE_POINT_ARGS(uint8_t in),
48 )
49 
51  rte_eal_trace_generic_i64,
52  RTE_TRACE_POINT_ARGS(int64_t in),
54 )
55 
57  rte_eal_trace_generic_i32,
58  RTE_TRACE_POINT_ARGS(int32_t in),
60 )
61 
63  rte_eal_trace_generic_i16,
64  RTE_TRACE_POINT_ARGS(int16_t in),
66 )
67 
69  rte_eal_trace_generic_i8,
70  RTE_TRACE_POINT_ARGS(int8_t in),
72 )
73 
75  rte_eal_trace_generic_int,
76  RTE_TRACE_POINT_ARGS(int in),
78 )
79 
81  rte_eal_trace_generic_long,
82  RTE_TRACE_POINT_ARGS(long in),
84 )
85 
87  rte_eal_trace_generic_float,
88  RTE_TRACE_POINT_ARGS(float in),
90 )
91 
93  rte_eal_trace_generic_double,
94  RTE_TRACE_POINT_ARGS(double in),
96 )
97 
99  rte_eal_trace_generic_ptr,
100  RTE_TRACE_POINT_ARGS(const void *ptr),
102 )
103 
105  rte_eal_trace_generic_str,
106  RTE_TRACE_POINT_ARGS(const char *str),
108 )
109 
111  rte_eal_trace_generic_size_t,
112  RTE_TRACE_POINT_ARGS(size_t sz),
114 )
115 
117  rte_eal_trace_generic_func,
118  RTE_TRACE_POINT_ARGS(const char *func),
120 )
121 
123  rte_eal_trace_generic_blob,
124  RTE_TRACE_POINT_ARGS(const void *in, uint8_t len),
125  rte_trace_point_emit_blob(in, len);
126 )
127 
128 #define RTE_EAL_TRACE_GENERIC_FUNC rte_eal_trace_generic_func(__func__)
129 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif /* _RTE_EAL_TRACE_H_ */
#define rte_trace_point_emit_u32(val)
#define rte_trace_point_emit_size_t(val)
#define rte_trace_point_emit_int(val)
#define RTE_TRACE_POINT_ARGS
#define rte_trace_point_emit_string(val)
#define RTE_TRACE_POINT(tp, args,...)
#define rte_trace_point_emit_i16(val)
#define rte_trace_point_emit_u8(val)
#define rte_trace_point_emit_u16(val)
#define rte_trace_point_emit_i64(val)
#define rte_trace_point_emit_i8(val)
#define rte_trace_point_emit_float(val)
#define rte_trace_point_emit_ptr(val)
#define rte_trace_point_emit_double(val)
#define rte_trace_point_emit_i32(val)
#define rte_trace_point_emit_blob(val, len)
#define rte_trace_point_emit_u64(val)
#define rte_trace_point_emit_long(val)