hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/infiniband/hw/hfi1/trace_rc.h
....@@ -109,6 +109,54 @@
109109 TP_ARGS(qp, psn)
110110 );
111111
112
+DEFINE_EVENT(/* event */
113
+ hfi1_rc_template, hfi1_rc_completion,
114
+ TP_PROTO(struct rvt_qp *qp, u32 psn),
115
+ TP_ARGS(qp, psn)
116
+);
117
+
118
+DECLARE_EVENT_CLASS(/* rc_ack */
119
+ hfi1_rc_ack_template,
120
+ TP_PROTO(struct rvt_qp *qp, u32 aeth, u32 psn,
121
+ struct rvt_swqe *wqe),
122
+ TP_ARGS(qp, aeth, psn, wqe),
123
+ TP_STRUCT__entry(/* entry */
124
+ DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device))
125
+ __field(u32, qpn)
126
+ __field(u32, aeth)
127
+ __field(u32, psn)
128
+ __field(u8, opcode)
129
+ __field(u32, spsn)
130
+ __field(u32, lpsn)
131
+ ),
132
+ TP_fast_assign(/* assign */
133
+ DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device))
134
+ __entry->qpn = qp->ibqp.qp_num;
135
+ __entry->aeth = aeth;
136
+ __entry->psn = psn;
137
+ __entry->opcode = wqe->wr.opcode;
138
+ __entry->spsn = wqe->psn;
139
+ __entry->lpsn = wqe->lpsn;
140
+ ),
141
+ TP_printk(/* print */
142
+ "[%s] qpn 0x%x aeth 0x%x psn 0x%x opcode 0x%x spsn 0x%x lpsn 0x%x",
143
+ __get_str(dev),
144
+ __entry->qpn,
145
+ __entry->aeth,
146
+ __entry->psn,
147
+ __entry->opcode,
148
+ __entry->spsn,
149
+ __entry->lpsn
150
+ )
151
+);
152
+
153
+DEFINE_EVENT(/* do_rc_ack */
154
+ hfi1_rc_ack_template, hfi1_rc_ack_do,
155
+ TP_PROTO(struct rvt_qp *qp, u32 aeth, u32 psn,
156
+ struct rvt_swqe *wqe),
157
+ TP_ARGS(qp, aeth, psn, wqe)
158
+);
159
+
112160 #endif /* __HFI1_TRACE_RC_H */
113161
114162 #undef TRACE_INCLUDE_PATH