1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2020 Marvell International Ltd.
9 #include <rte_trace_point.h>
11 #define trace_err(fmt, args...) \
12 RTE_LOG(ERR, EAL, "%s():%u " fmt "\n", __func__, __LINE__, ## args)
14 #define trace_crit(fmt, args...) \
15 RTE_LOG(CRIT, EAL, "%s():%u " fmt "\n", __func__, __LINE__, ## args)
17 #define TRACE_CTF_FIELD_SIZE 384
18 #define TRACE_POINT_NAME_SIZE 64
21 STAILQ_ENTRY(trace_point) next;
22 rte_trace_point_t *handle;
23 char name[TRACE_POINT_NAME_SIZE];
24 char ctf_field[TRACE_CTF_FIELD_SIZE];
30 enum rte_trace_mode mode;
31 uint32_t nb_trace_points;
34 /* Helper functions */
35 static inline uint16_t
36 trace_id_get(rte_trace_point_t *trace)
38 return (*trace & __RTE_TRACE_FIELD_ID_MASK) >>
39 __RTE_TRACE_FIELD_ID_SHIFT;
42 /* Trace point list functions */
43 STAILQ_HEAD(trace_point_head, trace_point);
45 #endif /* __EAL_TRACE_H */