DPDK  22.07.0
rte_cryptodev_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_CRYPTODEV_TRACE_H_
6 #define _RTE_CRYPTODEV_TRACE_H_
7 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include <rte_trace_point.h>
19 
20 #include "rte_cryptodev.h"
21 
23  rte_cryptodev_trace_configure,
24  RTE_TRACE_POINT_ARGS(uint8_t dev_id,
25  struct rte_cryptodev_config *conf),
29 )
30 
32  rte_cryptodev_trace_start,
33  RTE_TRACE_POINT_ARGS(uint8_t dev_id, int rc),
36 )
37 
39  rte_cryptodev_trace_stop,
40  RTE_TRACE_POINT_ARGS(uint8_t dev_id),
42 )
43 
45  rte_cryptodev_trace_close,
46  RTE_TRACE_POINT_ARGS(uint8_t dev_id, int rc),
49 )
50 
52  rte_cryptodev_trace_queue_pair_setup,
53  RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t queue_pair_id,
54  const struct rte_cryptodev_qp_conf *conf),
56  rte_trace_point_emit_u16(queue_pair_id);
57  rte_trace_point_emit_u32(conf->nb_descriptors);
58  rte_trace_point_emit_ptr(conf->mp_session);
59  rte_trace_point_emit_ptr(conf->mp_session_private);
60 )
61 
63  rte_cryptodev_trace_sym_session_pool_create,
64  RTE_TRACE_POINT_ARGS(const char *name, uint32_t nb_elts,
65  uint32_t elt_size, uint32_t cache_size,
66  uint16_t user_data_size, void *mempool),
68  rte_trace_point_emit_u32(nb_elts);
69  rte_trace_point_emit_u32(elt_size);
70  rte_trace_point_emit_u32(cache_size);
71  rte_trace_point_emit_u16(user_data_size);
72  rte_trace_point_emit_ptr(mempool);
73 )
74 
76  rte_cryptodev_trace_sym_session_create,
77  RTE_TRACE_POINT_ARGS(void *mempool,
78  struct rte_cryptodev_sym_session *sess),
79  rte_trace_point_emit_ptr(mempool);
81  rte_trace_point_emit_u64(sess->opaque_data);
82  rte_trace_point_emit_u16(sess->nb_drivers);
83  rte_trace_point_emit_u16(sess->user_data_sz);
84 )
85 
87  rte_cryptodev_trace_asym_session_pool_create,
88  RTE_TRACE_POINT_ARGS(const char *name, uint32_t nb_elts,
89  uint16_t user_data_size, uint32_t cache_size, void *mempool),
91  rte_trace_point_emit_u32(nb_elts);
92  rte_trace_point_emit_u16(user_data_size);
93  rte_trace_point_emit_u32(cache_size);
94  rte_trace_point_emit_ptr(mempool);
95 )
96 
98  rte_cryptodev_trace_asym_session_create,
99  RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *xforms, void *mempool,
100  void *sess),
101  rte_trace_point_emit_u8(dev_id);
102  rte_trace_point_emit_ptr(xforms);
103  rte_trace_point_emit_ptr(mempool);
105 )
106 
108  rte_cryptodev_trace_sym_session_free,
111 )
112 
114  rte_cryptodev_trace_asym_session_free,
115  RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *sess),
116  rte_trace_point_emit_u8(dev_id);
118 )
119 
121  rte_cryptodev_trace_sym_session_init,
122  RTE_TRACE_POINT_ARGS(uint8_t dev_id,
123  struct rte_cryptodev_sym_session *sess, void *xforms,
124  void *mempool),
125  rte_trace_point_emit_u8(dev_id);
127  rte_trace_point_emit_u64(sess->opaque_data);
128  rte_trace_point_emit_u16(sess->nb_drivers);
129  rte_trace_point_emit_u16(sess->user_data_sz);
130  rte_trace_point_emit_ptr(xforms);
131  rte_trace_point_emit_ptr(mempool);
132 )
133 
135  rte_cryptodev_trace_sym_session_clear,
136  RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *sess),
137  rte_trace_point_emit_u8(dev_id);
139 )
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 
145 #endif /* _RTE_CRYPTODEV_TRACE_H_ */
#define rte_trace_point_emit_u32(val)
#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,...)
#define rte_trace_point_emit_u8(val)
#define rte_trace_point_emit_u16(val)
#define rte_trace_point_emit_i64(val)
#define rte_trace_point_emit_ptr(val)
#define rte_trace_point_emit_u64(val)