DPDK  24.11.0-rc3
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_ */
39 )
40 
42  rte_dma_trace_configure,
43  RTE_TRACE_POINT_ARGS(int16_t dev_id, const struct rte_dma_conf *dev_conf,
44  int ret),
45 #ifdef _RTE_TRACE_POINT_REGISTER_H_
46  const struct rte_dma_conf __dev_conf = {0};
47  dev_conf = &__dev_conf;
48 #endif /* _RTE_TRACE_POINT_REGISTER_H_ */
49  int enable_silent = (int)dev_conf->enable_silent;
51  rte_trace_point_emit_u16(dev_conf->nb_vchans);
52  rte_trace_point_emit_u16(dev_conf->priority);
53  rte_trace_point_emit_int(enable_silent);
55 )
56 
58  rte_dma_trace_start,
59  RTE_TRACE_POINT_ARGS(int16_t dev_id, int ret),
62 )
63 
65  rte_dma_trace_stop,
66  RTE_TRACE_POINT_ARGS(int16_t dev_id, int ret),
69 )
70 
72  rte_dma_trace_close,
73  RTE_TRACE_POINT_ARGS(int16_t dev_id, int ret),
76 )
77 
79  rte_dma_trace_vchan_setup,
80  RTE_TRACE_POINT_ARGS(int16_t dev_id, uint16_t vchan,
81  const struct rte_dma_vchan_conf *conf, int ret),
82 #ifdef _RTE_TRACE_POINT_REGISTER_H_
83  const struct rte_dma_vchan_conf __conf = {0};
84  conf = &__conf;
85 #endif /* _RTE_TRACE_POINT_REGISTER_H_ */
86  int src_port_type = conf->src_port.port_type;
87  int dst_port_type = conf->dst_port.port_type;
88  int direction = conf->direction;
89  uint64_t src_pcie_cfg;
90  uint64_t dst_pcie_cfg;
93  rte_trace_point_emit_int(direction);
94  rte_trace_point_emit_u16(conf->nb_desc);
95  rte_trace_point_emit_int(src_port_type);
96  memcpy(&src_pcie_cfg, &conf->src_port.pcie, sizeof(uint64_t));
97  rte_trace_point_emit_u64(src_pcie_cfg);
98  memcpy(&dst_pcie_cfg, &conf->dst_port.pcie, sizeof(uint64_t));
99  rte_trace_point_emit_int(dst_port_type);
100  rte_trace_point_emit_u64(dst_pcie_cfg);
101  rte_trace_point_emit_ptr(conf->auto_free.m2d.pool);
103 )
104 
106  rte_dma_trace_stats_reset,
107  RTE_TRACE_POINT_ARGS(int16_t dev_id, uint16_t vchan, int ret),
108  rte_trace_point_emit_i16(dev_id);
111 )
112 
114  rte_dma_trace_dump,
115  RTE_TRACE_POINT_ARGS(int16_t dev_id, FILE *f, int ret),
116  rte_trace_point_emit_i16(dev_id);
119 )
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
125 #endif /* RTE_DMADEV_TRACE_H */
uint16_t max_desc
Definition: rte_dmadev.h:292
#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:288
bool enable_silent
Definition: rte_dmadev.h:345
#define rte_trace_point_emit_i16(val)
uint16_t max_sges
Definition: rte_dmadev.h:302
const char * dev_name
Definition: rte_dmadev.h:286
#define rte_trace_point_emit_u16(val)
int16_t numa_node
Definition: rte_dmadev.h:304
uint16_t min_desc
Definition: rte_dmadev.h:294
#define rte_trace_point_emit_ptr(val)
uint16_t max_vchans
Definition: rte_dmadev.h:290
enum rte_dma_direction direction
Definition: rte_dmadev.h:574
uint16_t nb_vchans
Definition: rte_dmadev.h:306
#define rte_trace_point_emit_u64(val)
uint16_t nb_priorities
Definition: rte_dmadev.h:310