DPDK  21.11.8
rte_ethdev_trace_fp.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_ETHDEV_TRACE_FP_H_
6 #define _RTE_ETHDEV_TRACE_FP_H_
7 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include <rte_trace_point.h>
19 
21  rte_ethdev_trace_rx_burst,
22  RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id,
23  void **pkt_tbl, uint16_t nb_rx),
24  rte_trace_point_emit_u16(port_id);
25  rte_trace_point_emit_u16(queue_id);
26  rte_trace_point_emit_ptr(pkt_tbl);
28 )
29 
31  rte_ethdev_trace_tx_burst,
32  RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id,
33  void **pkts_tbl, uint16_t nb_pkts),
34  rte_trace_point_emit_u16(port_id);
35  rte_trace_point_emit_u16(queue_id);
36  rte_trace_point_emit_ptr(pkts_tbl);
37  rte_trace_point_emit_u16(nb_pkts);
38 )
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* _RTE_ETHDEV_TRACE_FP_H_ */
#define RTE_TRACE_POINT_ARGS
#define rte_trace_point_emit_u16(val)
#define rte_trace_point_emit_ptr(val)
#define RTE_TRACE_POINT_FP(tp, args,...)