DPDK 22.11.5
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
15extern "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)
60
62 rte_cryptodev_trace_sym_session_pool_create,
63 RTE_TRACE_POINT_ARGS(const char *name, uint32_t nb_elts,
64 uint32_t elt_size, uint32_t cache_size,
65 uint16_t user_data_size, void *mempool),
69 rte_trace_point_emit_u32(cache_size);
70 rte_trace_point_emit_u16(user_data_size);
72)
73
75 rte_cryptodev_trace_sym_session_create,
76 RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *sess, void *xforms,
77 void *mempool),
82)
83
85 rte_cryptodev_trace_asym_session_pool_create,
86 RTE_TRACE_POINT_ARGS(const char *name, uint32_t nb_elts,
87 uint16_t user_data_size, uint32_t cache_size, void *mempool),
90 rte_trace_point_emit_u16(user_data_size);
91 rte_trace_point_emit_u32(cache_size);
93)
94
96 rte_cryptodev_trace_asym_session_create,
97 RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *xforms, void *mempool,
98 void *sess),
103)
104
106 rte_cryptodev_trace_sym_session_free,
107 RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *sess),
110)
111
113 rte_cryptodev_trace_asym_session_free,
114 RTE_TRACE_POINT_ARGS(uint8_t dev_id, void *sess),
117)
118
120 rte_cryptodev_trace_callback_register,
121 RTE_TRACE_POINT_ARGS(uint8_t dev_id,
122 enum rte_cryptodev_event_type event, const void *cb_fn),
126)
127
129 rte_cryptodev_trace_callback_unregister,
130 RTE_TRACE_POINT_ARGS(uint8_t dev_id,
131 enum rte_cryptodev_event_type event, const void *cb_fn),
135)
136
138 rte_cryptodev_trace_device_count_by_driver,
139 RTE_TRACE_POINT_ARGS(uint8_t driver_id, uint8_t dev_count),
140 rte_trace_point_emit_u8(driver_id);
141 rte_trace_point_emit_u8(dev_count);
142)
143
145 rte_cryptodev_trace_devices_get,
146 RTE_TRACE_POINT_ARGS(const char *driver_name, uint8_t count),
147 rte_trace_point_emit_string(driver_name);
149)
150
152 rte_cryptodev_trace_driver_id_get,
153 RTE_TRACE_POINT_ARGS(const char *name, int driver_id),
155 rte_trace_point_emit_int(driver_id);
156)
157
159 rte_cryptodev_trace_driver_name_get,
160 RTE_TRACE_POINT_ARGS(uint8_t driver_id, const char *name),
161 rte_trace_point_emit_u8(driver_id);
163)
164
166 rte_cryptodev_trace_get_aead_algo_enum,
167 RTE_TRACE_POINT_ARGS(const char *algo_string,
168 enum rte_crypto_aead_algorithm algo_enum, int ret),
169 rte_trace_point_emit_string(algo_string);
170 rte_trace_point_emit_int(algo_enum);
172)
173
175 rte_cryptodev_trace_get_auth_algo_enum,
176 RTE_TRACE_POINT_ARGS(const char *algo_string,
177 enum rte_crypto_auth_algorithm algo_enum, int ret),
178 rte_trace_point_emit_string(algo_string);
179 rte_trace_point_emit_int(algo_enum);
181)
182
184 rte_cryptodev_trace_get_cipher_algo_enum,
185 RTE_TRACE_POINT_ARGS(const char *algo_string,
186 enum rte_crypto_cipher_algorithm algo_enum, int ret),
187 rte_trace_point_emit_string(algo_string);
188 rte_trace_point_emit_int(algo_enum);
190)
191
193 rte_cryptodev_trace_get_dev_id,
194 RTE_TRACE_POINT_ARGS(const char *name, int ret),
197)
198
200 rte_cryptodev_trace_get_feature_name,
201 RTE_TRACE_POINT_ARGS(uint64_t flag),
203)
204
206 rte_cryptodev_trace_get_sec_ctx,
207 RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *sec_ctx),
210)
211
213 rte_cryptodev_trace_info_get,
214 RTE_TRACE_POINT_ARGS(uint8_t dev_id, const char *driver_name),
216 rte_trace_point_emit_string(driver_name);
217)
218
220 rte_cryptodev_trace_is_valid_dev,
221 RTE_TRACE_POINT_ARGS(uint8_t dev_id, unsigned int ret),
224)
225
227 rte_cryptodev_trace_name_get,
228 RTE_TRACE_POINT_ARGS(uint8_t dev_id, const char *name),
231)
232
234 rte_cryptodev_trace_queue_pair_count,
235 RTE_TRACE_POINT_ARGS(const void *dev, const char *name,
236 uint8_t socket_id, uint8_t dev_id, uint16_t nb_queue_pairs),
239 rte_trace_point_emit_u8(socket_id);
241 rte_trace_point_emit_u16(nb_queue_pairs);
242)
243
245 rte_cryptodev_trace_socket_id,
246 RTE_TRACE_POINT_ARGS(uint8_t dev_id, const char *name, int socket_id),
249 rte_trace_point_emit_int(socket_id);
250)
251
253 rte_cryptodev_trace_stats_get,
254 RTE_TRACE_POINT_ARGS(uint8_t dev_id,
255 const struct rte_cryptodev_stats *stats),
257 rte_trace_point_emit_u64(stats->enqueued_count);
258 rte_trace_point_emit_u64(stats->dequeued_count);
259 rte_trace_point_emit_u64(stats->enqueue_err_count);
260 rte_trace_point_emit_u64(stats->dequeue_err_count);
261)
262
264 rte_cryptodev_trace_stats_reset,
265 RTE_TRACE_POINT_ARGS(uint8_t dev_id),
267)
268
270 rte_cryptodev_trace_sym_capability_check_aead,
272 const struct rte_cryptodev_symmetric_capability *capability,
273 uint16_t key_size, uint16_t digest_size, uint16_t aad_size,
274 uint16_t iv_size, int ret),
275 rte_trace_point_emit_ptr(capability);
276 rte_trace_point_emit_int(capability->xform_type);
277 rte_trace_point_emit_u16(key_size);
278 rte_trace_point_emit_u16(digest_size);
279 rte_trace_point_emit_u16(aad_size);
282)
283
285 rte_cryptodev_trace_sym_capability_check_auth,
287 const struct rte_cryptodev_symmetric_capability *capability,
288 uint16_t key_size, uint16_t digest_size, uint16_t iv_size,
289 int ret),
290 rte_trace_point_emit_ptr(capability);
291 rte_trace_point_emit_int(capability->xform_type);
292 rte_trace_point_emit_u16(key_size);
293 rte_trace_point_emit_u16(digest_size);
296)
297
299 rte_cryptodev_trace_sym_capability_check_cipher,
301 const struct rte_cryptodev_symmetric_capability *capability,
302 uint16_t key_size, uint16_t iv_size, int ret),
303 rte_trace_point_emit_ptr(capability);
304 rte_trace_point_emit_int(capability->xform_type);
305 rte_trace_point_emit_u16(key_size);
308)
309
311 rte_cryptodev_trace_sym_capability_get,
312 RTE_TRACE_POINT_ARGS(uint8_t dev_id, const char *driver_name,
313 uint8_t driver_id, int idx_type, const void *sym_capability),
315 rte_trace_point_emit_string(driver_name);
316 rte_trace_point_emit_u8(driver_id);
317 rte_trace_point_emit_int(idx_type);
318 rte_trace_point_emit_ptr(sym_capability);
319)
320
322 rte_cryptodev_trace_sym_get_private_session_size,
323 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t priv_sess_size),
325 rte_trace_point_emit_u32(priv_sess_size);
326)
327
329 rte_cryptodev_trace_asym_capability_get,
330 RTE_TRACE_POINT_ARGS(const char *driver_name, uint8_t driver_id,
331 int idx_type, const void *asym_cap),
332 rte_trace_point_emit_string(driver_name);
333 rte_trace_point_emit_u8(driver_id);
334 rte_trace_point_emit_int(idx_type);
335 rte_trace_point_emit_ptr(asym_cap);
336)
337
339 rte_cryptodev_trace_asym_get_private_session_size,
340 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint32_t priv_sess_size),
342 rte_trace_point_emit_u32(priv_sess_size);
343)
344
346 rte_cryptodev_trace_asym_get_xform_enum,
347 RTE_TRACE_POINT_ARGS(const char *xform_string,
348 enum rte_crypto_asym_xform_type xform_enum, int ret),
349 rte_trace_point_emit_string(xform_string);
350 rte_trace_point_emit_int(xform_enum);
352)
353
355 rte_cryptodev_trace_asym_xform_capability_check_modlen,
356 RTE_TRACE_POINT_ARGS(const void *capability, uint16_t modlen, int ret),
357 rte_trace_point_emit_ptr(capability);
360)
361
363 rte_cryptodev_trace_sym_cpu_crypto_process,
364 RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *sess),
367)
368
370 rte_cryptodev_trace_sym_session_get_user_data,
371 RTE_TRACE_POINT_ARGS(const void *sess, const void *data),
374)
375
377 rte_cryptodev_trace_sym_session_set_user_data,
378 RTE_TRACE_POINT_ARGS(const void *sess, const void *data, uint16_t size),
382)
383
385 rte_cryptodev_trace_get_qp_status,
386 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t queue_pair_id, int ret),
388 rte_trace_point_emit_u16(queue_pair_id);
390)
391
393 rte_cryptodev_trace_configure_raw_dp_ctx,
394 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t qp_id, int sess_type),
397 rte_trace_point_emit_int(sess_type);
398)
399
401 rte_cryptodev_trace_get_raw_dp_ctx_size,
402 RTE_TRACE_POINT_ARGS(uint8_t dev_id),
404)
405
407 rte_cryptodev_trace_add_deq_callback,
408 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t qp_id, const void *cb_fn),
412)
413
415 rte_cryptodev_trace_add_enq_callback,
416 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t qp_id, const void *cb_fn),
420)
421
423 rte_cryptodev_trace_remove_deq_callback,
424 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t qp_id, const void *fn),
428)
429
431 rte_cryptodev_trace_remove_enq_callback,
432 RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint16_t qp_id, const void *fn),
436)
437
439 rte_cryptodev_trace_asym_session_get_user_data,
440 RTE_TRACE_POINT_ARGS(const void *sess, const void *data),
443)
444
446 rte_cryptodev_trace_asym_session_set_user_data,
447 RTE_TRACE_POINT_ARGS(const void *sess, const void *data, uint16_t size),
451)
452
454 rte_cryptodev_trace_session_event_mdata_set,
455 RTE_TRACE_POINT_ARGS(uint8_t dev_id, const void *sess, int op_type,
456 int sess_type, const void *ev_mdata, uint16_t size),
460 rte_trace_point_emit_int(sess_type);
461 rte_trace_point_emit_ptr(ev_mdata);
463)
464
466 rte_cryptodev_trace_allocate_driver,
467 RTE_TRACE_POINT_ARGS(const char *name),
469)
470
472 rte_cryptodev_trace_op_pool_create,
473 RTE_TRACE_POINT_ARGS(const char *name, int socket_id, int type,
474 uint32_t nb_elts, const void *mp),
476 rte_trace_point_emit_int(socket_id);
480)
481
483 rte_cryptodev_trace_asym_xform_capability_check_optype,
484 RTE_TRACE_POINT_ARGS(uint32_t op_types,
485 enum rte_crypto_asym_op_type op_type, int ret),
486 rte_trace_point_emit_u32(op_types);
489)
490
492 rte_cryptodev_trace_count,
493 RTE_TRACE_POINT_ARGS(uint8_t nb_devs),
495)
496
497#ifdef __cplusplus
498}
499#endif
500
501#endif /* _RTE_CRYPTODEV_TRACE_H_ */
rte_crypto_asym_op_type
rte_crypto_asym_xform_type
rte_crypto_auth_algorithm
rte_crypto_aead_algorithm
rte_crypto_cipher_algorithm
rte_cryptodev_event_type
#define rte_trace_point_emit_u32(val)
#define rte_trace_point_emit_u8(val)
#define rte_trace_point_emit_u16(val)
#define RTE_TRACE_POINT_ARGS
#define rte_trace_point_emit_int(val)
#define rte_trace_point_emit_ptr(val)
#define rte_trace_point_emit_u64(val)
#define rte_trace_point_emit_i64(val)
#define rte_trace_point_emit_string(val)
#define RTE_TRACE_POINT(tp, args,...)