net/virtio: fix incorrect cast of void *
[dpdk.git] / ethdev / rte_ethdev_trace_fp.h
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
8 /**
9  * @file
10  *
11  * API for ethdev trace support
12  */
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #include <rte_trace_point.h>
19
20 RTE_TRACE_POINT_FP(
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);
27         rte_trace_point_emit_u16(nb_rx);
28 )
29
30 RTE_TRACE_POINT_FP(
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_ */