DPDK  20.08.0
rte_ethdev_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_ETHDEV_TRACE_H_
6 #define _RTE_ETHDEV_TRACE_H_
7 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include <rte_trace_point.h>
19 
20 #include "rte_ethdev.h"
21 
23  rte_ethdev_trace_configure,
24  RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t nb_rx_q,
25  uint16_t nb_tx_q, const struct rte_eth_conf *dev_conf, int rc),
26  rte_trace_point_emit_u16(port_id);
27  rte_trace_point_emit_u16(nb_rx_q);
28  rte_trace_point_emit_u16(nb_tx_q);
37 )
38 
40  rte_ethdev_trace_rxq_setup,
41  RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t rx_queue_id,
42  uint16_t nb_rx_desc, void *mp,
43  const struct rte_eth_rxconf *rx_conf, int rc),
44  rte_trace_point_emit_u16(port_id);
45  rte_trace_point_emit_u16(rx_queue_id);
46  rte_trace_point_emit_u16(nb_rx_desc);
48  rte_trace_point_emit_u8(rx_conf->rx_thresh.pthresh);
49  rte_trace_point_emit_u8(rx_conf->rx_thresh.hthresh);
50  rte_trace_point_emit_u8(rx_conf->rx_thresh.wthresh);
51  rte_trace_point_emit_u8(rx_conf->rx_drop_en);
52  rte_trace_point_emit_u8(rx_conf->rx_deferred_start);
53  rte_trace_point_emit_u64(rx_conf->offloads);
55 )
56 
58  rte_ethdev_trace_txq_setup,
59  RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t tx_queue_id,
60  uint16_t nb_tx_desc, const struct rte_eth_txconf *tx_conf),
61  rte_trace_point_emit_u16(port_id);
62  rte_trace_point_emit_u16(tx_queue_id);
63  rte_trace_point_emit_u16(nb_tx_desc);
64  rte_trace_point_emit_u8(tx_conf->tx_thresh.pthresh);
65  rte_trace_point_emit_u8(tx_conf->tx_thresh.hthresh);
66  rte_trace_point_emit_u8(tx_conf->tx_thresh.wthresh);
67  rte_trace_point_emit_u8(tx_conf->tx_deferred_start);
68  rte_trace_point_emit_u16(tx_conf->tx_free_thresh);
69  rte_trace_point_emit_u64(tx_conf->offloads);
70 )
71 
73  rte_ethdev_trace_start,
74  RTE_TRACE_POINT_ARGS(uint16_t port_id),
75  rte_trace_point_emit_u16(port_id);
76 )
77 
79  rte_ethdev_trace_stop,
80  RTE_TRACE_POINT_ARGS(uint16_t port_id),
81  rte_trace_point_emit_u16(port_id);
82 )
83 
85  rte_ethdev_trace_close,
86  RTE_TRACE_POINT_ARGS(uint16_t port_id),
87  rte_trace_point_emit_u16(port_id);
88 )
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* _RTE_ETHDEV_TRACE_H_ */
#define rte_trace_point_emit_u32(val)
#define rte_trace_point_emit_int(val)
uint32_t max_rx_pkt_len
Definition: rte_ethdev.h:400
#define RTE_TRACE_POINT_ARGS
uint32_t lpbk_mode
Definition: rte_ethdev.h:1180
enum rte_eth_tx_mq_mode mq_mode
Definition: rte_ethdev.h:919
uint32_t link_speeds
Definition: rte_ethdev.h:1171
#define RTE_TRACE_POINT(tp, args,...)
struct rte_eth_rxmode rxmode
Definition: rte_ethdev.h:1178
uint64_t offloads
Definition: rte_ethdev.h:409
enum rte_eth_rx_mq_mode mq_mode
Definition: rte_ethdev.h:399
uint64_t offloads
Definition: rte_ethdev.h:925
#define rte_trace_point_emit_u8(val)
#define rte_trace_point_emit_u16(val)
#define rte_trace_point_emit_ptr(val)
struct rte_eth_txmode txmode
Definition: rte_ethdev.h:1179
#define rte_trace_point_emit_u64(val)