DPDK  24.07.0
rte_dmadev_trace.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2023 HiSilicon Limited
3  */
4 
5 #ifndef RTE_DMADEV_TRACE_H
6 #define RTE_DMADEV_TRACE_H
7 
14 #include <rte_trace_point.h>
15 
16 #include "rte_dmadev.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
23  rte_dma_trace_info_get,
24  RTE_TRACE_POINT_ARGS(int16_t dev_id, struct rte_dma_info *dev_info),
25 #ifdef _RTE_TRACE_POINT_REGISTER_H_
26  struct rte_dma_info __dev_info = {0};
27  dev_info = &__dev_info;
28 #endif /* _RTE_TRACE_POINT_REGISTER_H_ */
38 )
39 
41  rte_dma_trace_configure,
42  RTE_TRACE_POINT_ARGS(int16_t dev_id, const struct rte_dma_conf *dev_conf,
43  int ret),
44 #ifdef _RTE_TRACE_POINT_REGISTER_H_
45  const struct rte_dma_conf __dev_conf = {0};
46  dev_conf = &__dev_conf;
47 #endif /* _RTE_TRACE_POINT_REGISTER_H_ */
48  int enable_silent = (int)dev_conf->enable_silent;
50  rte_trace_point_emit_u16(dev_conf->nb_vchans);
51  rte_trace_point_emit_int(enable_silent);
53 )
54 
56  rte_dma_trace_start,
57  RTE_TRACE_POINT_ARGS(int16_t dev_id, int ret),
60 )
61 
63  rte_dma_trace_stop,
64  RTE_TRACE_POINT_ARGS(int16_t dev_id, int ret),
67 )
68 
70  rte_dma_trace_close,
71  RTE_TRACE_POINT_ARGS(int16_t dev_id, int ret),
74 )
75 
77  rte_dma_trace_vchan_setup,
78  RTE_TRACE_POINT_ARGS(int16_t dev_id, uint16_t vchan,
79  const struct rte_dma_vchan_conf *conf, int ret),
80 #ifdef _RTE_TRACE_POINT_REGISTER_H_
81  const struct rte_dma_vchan_conf __conf = {0};
82  conf = &__conf;
83 #endif /* _RTE_TRACE_POINT_REGISTER_H_ */
84  int src_port_type = conf->src_port.port_type;
85  int dst_port_type = conf->dst_port.port_type;
86  int direction = conf->direction;
87  uint64_t src_pcie_cfg;
88  uint64_t dst_pcie_cfg;
91  rte_trace_point_emit_int(direction);
92  rte_trace_point_emit_u16(conf->nb_desc);
93  rte_trace_point_emit_int(src_port_type);
94  memcpy(&src_pcie_cfg, &conf->src_port.pcie, sizeof(uint64_t));
95  rte_trace_point_emit_u64(src_pcie_cfg);
96  memcpy(&dst_pcie_cfg, &conf->dst_port.pcie, sizeof(uint64_t));
97  rte_trace_point_emit_int(dst_port_type);
98  rte_trace_point_emit_u64(dst_pcie_cfg);
99  rte_trace_point_emit_ptr(conf->auto_free.m2d.pool);
101 )
102 
104  rte_dma_trace_stats_reset,
105  RTE_TRACE_POINT_ARGS(int16_t dev_id, uint16_t vchan, int ret),
106  rte_trace_point_emit_i16(dev_id);
109 )
110 
112  rte_dma_trace_dump,
113  RTE_TRACE_POINT_ARGS(int16_t dev_id, FILE *f, int ret),
114  rte_trace_point_emit_i16(dev_id);
117 )
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* RTE_DMADEV_TRACE_H */
uint16_t max_desc
Definition: rte_dmadev.h:285
#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,...)
uint64_t dev_capa
Definition: rte_dmadev.h:281
bool enable_silent
Definition: rte_dmadev.h:334
#define rte_trace_point_emit_i16(val)
uint16_t max_sges
Definition: rte_dmadev.h:295
const char * dev_name
Definition: rte_dmadev.h:279
#define rte_trace_point_emit_u16(val)
int16_t numa_node
Definition: rte_dmadev.h:297
uint16_t min_desc
Definition: rte_dmadev.h:287
#define rte_trace_point_emit_ptr(val)
uint16_t max_vchans
Definition: rte_dmadev.h:283
enum rte_dma_direction direction
Definition: rte_dmadev.h:555
uint16_t nb_vchans
Definition: rte_dmadev.h:299
#define rte_trace_point_emit_u64(val)