1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM sunvnet
5 #if !defined(_TRACE_SUNVNET_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_SUNVNET_H
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(vnet_rx_one
,
12 TP_PROTO(int lsid
, int rsid
, int index
, int needs_ack
),
14 TP_ARGS(lsid
, rsid
, index
, needs_ack
),
20 __field(int, needs_ack
)
26 __entry
->index
= index
;
27 __entry
->needs_ack
= needs_ack
;
30 TP_printk("(%x:%x) walk_rx_one index %d; needs_ack %d",
31 __entry
->lsid
, __entry
->rsid
,
32 __entry
->index
, __entry
->needs_ack
)
35 DECLARE_EVENT_CLASS(vnet_tx_stopped_ack_template
,
37 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
39 TP_ARGS(lsid
, rsid
, ack_end
, npkts
),
51 __entry
->ack_end
= ack_end
;
52 __entry
->npkts
= npkts
;
55 TP_printk("(%x:%x) stopped ack for %d; npkts %d",
56 __entry
->lsid
, __entry
->rsid
,
57 __entry
->ack_end
, __entry
->npkts
)
59 DEFINE_EVENT(vnet_tx_stopped_ack_template
, vnet_tx_send_stopped_ack
,
60 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
61 TP_ARGS(lsid
, rsid
, ack_end
, npkts
));
62 DEFINE_EVENT(vnet_tx_stopped_ack_template
, vnet_tx_defer_stopped_ack
,
63 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
64 TP_ARGS(lsid
, rsid
, ack_end
, npkts
));
65 DEFINE_EVENT(vnet_tx_stopped_ack_template
, vnet_tx_pending_stopped_ack
,
66 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
67 TP_ARGS(lsid
, rsid
, ack_end
, npkts
));
69 TRACE_EVENT(vnet_rx_stopped_ack
,
71 TP_PROTO(int lsid
, int rsid
, int end
),
73 TP_ARGS(lsid
, rsid
, end
),
87 TP_printk("(%x:%x) stopped ack for index %d",
88 __entry
->lsid
, __entry
->rsid
, __entry
->end
)
91 TRACE_EVENT(vnet_tx_trigger
,
93 TP_PROTO(int lsid
, int rsid
, int start
, int err
),
95 TP_ARGS(lsid
, rsid
, start
, err
),
105 __entry
->lsid
= lsid
;
106 __entry
->rsid
= rsid
;
107 __entry
->start
= start
;
111 TP_printk("(%x:%x) Tx trigger for %d sent with err %d %s",
112 __entry
->lsid
, __entry
->rsid
, __entry
->start
,
113 __entry
->err
, __entry
->err
> 0 ? "(ok)" : " ")
116 TRACE_EVENT(vnet_skip_tx_trigger
,
118 TP_PROTO(int lsid
, int rsid
, int last
),
120 TP_ARGS(lsid
, rsid
, last
),
129 __entry
->lsid
= lsid
;
130 __entry
->rsid
= rsid
;
131 __entry
->last
= last
;
134 TP_printk("(%x:%x) Skip Tx trigger. Last trigger sent was %d",
135 __entry
->lsid
, __entry
->rsid
, __entry
->last
)
137 #endif /* _TRACE_SOCK_H */
139 /* This part must be outside protection */
140 #include <trace/define_trace.h>