2 #define TRACE_SYSTEM sunvnet
4 #if !defined(_TRACE_SUNVNET_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_SUNVNET_H
7 #include <linux/tracepoint.h>
9 TRACE_EVENT(vnet_rx_one
,
11 TP_PROTO(int lsid
, int rsid
, int index
, int needs_ack
),
13 TP_ARGS(lsid
, rsid
, index
, needs_ack
),
19 __field(int, needs_ack
)
25 __entry
->index
= index
;
26 __entry
->needs_ack
= needs_ack
;
29 TP_printk("(%x:%x) walk_rx_one index %d; needs_ack %d",
30 __entry
->lsid
, __entry
->rsid
,
31 __entry
->index
, __entry
->needs_ack
)
34 DECLARE_EVENT_CLASS(vnet_tx_stopped_ack_template
,
36 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
38 TP_ARGS(lsid
, rsid
, ack_end
, npkts
),
50 __entry
->ack_end
= ack_end
;
51 __entry
->npkts
= npkts
;
54 TP_printk("(%x:%x) stopped ack for %d; npkts %d",
55 __entry
->lsid
, __entry
->rsid
,
56 __entry
->ack_end
, __entry
->npkts
)
58 DEFINE_EVENT(vnet_tx_stopped_ack_template
, vnet_tx_send_stopped_ack
,
59 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
60 TP_ARGS(lsid
, rsid
, ack_end
, npkts
));
61 DEFINE_EVENT(vnet_tx_stopped_ack_template
, vnet_tx_defer_stopped_ack
,
62 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
63 TP_ARGS(lsid
, rsid
, ack_end
, npkts
));
64 DEFINE_EVENT(vnet_tx_stopped_ack_template
, vnet_tx_pending_stopped_ack
,
65 TP_PROTO(int lsid
, int rsid
, int ack_end
, int npkts
),
66 TP_ARGS(lsid
, rsid
, ack_end
, npkts
));
68 TRACE_EVENT(vnet_rx_stopped_ack
,
70 TP_PROTO(int lsid
, int rsid
, int end
),
72 TP_ARGS(lsid
, rsid
, end
),
86 TP_printk("(%x:%x) stopped ack for index %d",
87 __entry
->lsid
, __entry
->rsid
, __entry
->end
)
90 TRACE_EVENT(vnet_tx_trigger
,
92 TP_PROTO(int lsid
, int rsid
, int start
, int err
),
94 TP_ARGS(lsid
, rsid
, start
, err
),
104 __entry
->lsid
= lsid
;
105 __entry
->rsid
= rsid
;
106 __entry
->start
= start
;
110 TP_printk("(%x:%x) Tx trigger for %d sent with err %d %s",
111 __entry
->lsid
, __entry
->rsid
, __entry
->start
,
112 __entry
->err
, __entry
->err
> 0 ? "(ok)" : " ")
115 TRACE_EVENT(vnet_skip_tx_trigger
,
117 TP_PROTO(int lsid
, int rsid
, int last
),
119 TP_ARGS(lsid
, rsid
, last
),
128 __entry
->lsid
= lsid
;
129 __entry
->rsid
= rsid
;
130 __entry
->last
= last
;
133 TP_printk("(%x:%x) Skip Tx trigger. Last trigger sent was %d",
134 __entry
->lsid
, __entry
->rsid
, __entry
->last
)
136 #endif /* _TRACE_SOCK_H */
138 /* This part must be outside protection */
139 #include <trace/define_trace.h>