Branch data Line data Source code
1 : : /* SPDX-License-Identifier: BSD-3-Clause 2 : : * Copyright (c) 2023 NVIDIA Corporation & Affiliates 3 : : */ 4 : : 5 : : #ifndef RTE_PMD_MLX5_TRACE_H_ 6 : : #define RTE_PMD_MLX5_TRACE_H_ 7 : : 8 : : /** 9 : : * @file 10 : : * 11 : : * API for mlx5 PMD trace support 12 : : */ 13 : : 14 : : #ifdef __cplusplus 15 : : extern "C" { 16 : : #endif 17 : : 18 : : #include <mlx5_prm.h> 19 : : #include <rte_mbuf.h> 20 : : #include <rte_trace_point.h> 21 : : 22 : : /* TX burst subroutines trace points. */ 23 : 238 : RTE_TRACE_POINT_FP( 24 : : rte_pmd_mlx5_trace_tx_entry, 25 : : RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id), 26 : : rte_trace_point_emit_u16(port_id); 27 : : rte_trace_point_emit_u16(queue_id); 28 : : ) 29 : : 30 : 238 : RTE_TRACE_POINT_FP( 31 : : rte_pmd_mlx5_trace_tx_exit, 32 : : RTE_TRACE_POINT_ARGS(uint16_t nb_sent, uint16_t nb_req), 33 : : rte_trace_point_emit_u16(nb_sent); 34 : : rte_trace_point_emit_u16(nb_req); 35 : : ) 36 : : 37 : 238 : RTE_TRACE_POINT_FP( 38 : : rte_pmd_mlx5_trace_tx_wqe, 39 : : RTE_TRACE_POINT_ARGS(uint32_t opcode), 40 : : rte_trace_point_emit_u32(opcode); 41 : : ) 42 : : 43 : 238 : RTE_TRACE_POINT_FP( 44 : : rte_pmd_mlx5_trace_tx_wait, 45 : : RTE_TRACE_POINT_ARGS(uint64_t ts), 46 : : rte_trace_point_emit_u64(ts); 47 : : ) 48 : : 49 : : 50 : 238 : RTE_TRACE_POINT_FP( 51 : : rte_pmd_mlx5_trace_tx_push, 52 : : RTE_TRACE_POINT_ARGS(const struct rte_mbuf *mbuf, uint16_t wqe_id), 53 : : rte_trace_point_emit_ptr(mbuf); 54 : : rte_trace_point_emit_u32(mbuf->pkt_len); 55 : : rte_trace_point_emit_u16(mbuf->nb_segs); 56 : : rte_trace_point_emit_u16(wqe_id); 57 : : ) 58 : : 59 : 238 : RTE_TRACE_POINT_FP( 60 : : rte_pmd_mlx5_trace_tx_complete, 61 : : RTE_TRACE_POINT_ARGS(uint16_t port_id, uint16_t queue_id, 62 : : uint16_t wqe_id, uint64_t ts), 63 : : rte_trace_point_emit_u16(port_id); 64 : : rte_trace_point_emit_u16(queue_id); 65 : : rte_trace_point_emit_u64(ts); 66 : : rte_trace_point_emit_u16(wqe_id); 67 : : ) 68 : : 69 : : #ifdef __cplusplus 70 : : } 71 : : #endif 72 : : 73 : : #endif /* RTE_PMD_MLX5_TRACE_H_ */