crypto/mlx5: add maximum segments configuration
[dpdk.git] / lib / eventdev / rte_eventdev_trace_fp.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2020 Marvell International Ltd.
3  */
4
5 #ifndef _RTE_EVENTDEV_TRACE_FP_H_
6 #define _RTE_EVENTDEV_TRACE_FP_H_
7
8 /**
9  * @file
10  *
11  * API for ethdev trace support
12  */
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #include <rte_trace_point.h>
19
20 RTE_TRACE_POINT_FP(
21         rte_eventdev_trace_deq_burst,
22         RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, void *ev_table,
23                 uint16_t nb_events),
24         rte_trace_point_emit_u8(dev_id);
25         rte_trace_point_emit_u8(port_id);
26         rte_trace_point_emit_ptr(ev_table);
27         rte_trace_point_emit_u16(nb_events);
28 )
29
30 RTE_TRACE_POINT_FP(
31         rte_eventdev_trace_enq_burst,
32         RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id,
33                 const void *ev_table, uint16_t nb_events, void *enq_mode_cb),
34         rte_trace_point_emit_u8(dev_id);
35         rte_trace_point_emit_u8(port_id);
36         rte_trace_point_emit_ptr(ev_table);
37         rte_trace_point_emit_u16(nb_events);
38         rte_trace_point_emit_ptr(enq_mode_cb);
39 )
40
41 RTE_TRACE_POINT_FP(
42         rte_eventdev_trace_eth_tx_adapter_enqueue,
43         RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, void *ev_table,
44                 uint16_t nb_events, const uint8_t flags),
45         rte_trace_point_emit_u8(dev_id);
46         rte_trace_point_emit_u8(port_id);
47         rte_trace_point_emit_ptr(ev_table);
48         rte_trace_point_emit_u16(nb_events);
49         rte_trace_point_emit_u8(flags);
50 )
51
52 RTE_TRACE_POINT_FP(
53         rte_eventdev_trace_crypto_adapter_enqueue,
54         RTE_TRACE_POINT_ARGS(uint8_t dev_id, uint8_t port_id, void *ev_table,
55                 uint16_t nb_events),
56         rte_trace_point_emit_u8(dev_id);
57         rte_trace_point_emit_u8(port_id);
58         rte_trace_point_emit_ptr(ev_table);
59         rte_trace_point_emit_u16(nb_events);
60 )
61
62 RTE_TRACE_POINT_FP(
63         rte_eventdev_trace_timer_arm_burst,
64         RTE_TRACE_POINT_ARGS(const void *adapter, void **evtims_table,
65                 uint16_t nb_evtims),
66         rte_trace_point_emit_ptr(adapter);
67         rte_trace_point_emit_ptr(evtims_table);
68         rte_trace_point_emit_u16(nb_evtims);
69 )
70
71 RTE_TRACE_POINT_FP(
72         rte_eventdev_trace_timer_arm_tmo_tick_burst,
73         RTE_TRACE_POINT_ARGS(const void *adapter, const uint64_t timeout_ticks,
74                 void **evtims_table, const uint16_t nb_evtims),
75         rte_trace_point_emit_ptr(adapter);
76         rte_trace_point_emit_u64(timeout_ticks);
77         rte_trace_point_emit_ptr(evtims_table);
78         rte_trace_point_emit_u16(nb_evtims);
79 )
80
81 RTE_TRACE_POINT_FP(
82         rte_eventdev_trace_timer_cancel_burst,
83         RTE_TRACE_POINT_ARGS(const void *adapter, void **evtims_table,
84                 uint16_t nb_evtims),
85         rte_trace_point_emit_ptr(adapter);
86         rte_trace_point_emit_ptr(evtims_table);
87         rte_trace_point_emit_u16(nb_evtims);
88 )
89
90 #ifdef __cplusplus
91 }
92 #endif
93
94 #endif /* _RTE_EVENTDEV_TRACE_FP_H_ */