hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/infiniband/sw/rdmavt/trace_cq.h
....@@ -105,7 +105,7 @@
105105 TP_ARGS(cq, attr));
106106
107107 #define CQ_PRN \
108
-"[%s] idx %u wr_id %llx status %u opcode %u,%s length %u qpn %x"
108
+"[%s] idx %u wr_id %llx status %u opcode %u,%s length %u qpn %x flags %x imm %x"
109109
110110 DECLARE_EVENT_CLASS(
111111 rvt_cq_entry_template,
....@@ -119,6 +119,8 @@
119119 __field(u32, qpn)
120120 __field(u32, length)
121121 __field(u32, idx)
122
+ __field(u32, flags)
123
+ __field(u32, imm)
122124 ),
123125 TP_fast_assign(
124126 RDI_DEV_ASSIGN(cq->rdi)
....@@ -128,6 +130,8 @@
128130 __entry->length = wc->byte_len;
129131 __entry->qpn = wc->qp->qp_num;
130132 __entry->idx = idx;
133
+ __entry->flags = wc->wc_flags;
134
+ __entry->imm = be32_to_cpu(wc->ex.imm_data);
131135 ),
132136 TP_printk(
133137 CQ_PRN,
....@@ -137,7 +141,9 @@
137141 __entry->status,
138142 __entry->opcode, show_wc_opcode(__entry->opcode),
139143 __entry->length,
140
- __entry->qpn
144
+ __entry->qpn,
145
+ __entry->flags,
146
+ __entry->imm
141147 )
142148 );
143149