forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/infiniband/hw/hfi1/trace_ctxts.h
....@@ -1,5 +1,5 @@
11 /*
2
-* Copyright(c) 2015, 2016 Intel Corporation.
2
+* Copyright(c) 2015 - 2020 Intel Corporation.
33 *
44 * This file is provided under a dual BSD/GPLv2 license. When using or
55 * redistributing this file, you may do so under either license.
....@@ -80,7 +80,7 @@
8080 __entry->credits = uctxt->sc->credits;
8181 __entry->hw_free = le64_to_cpu(*uctxt->sc->hw_free);
8282 __entry->piobase = uctxt->sc->base_addr;
83
- __entry->rcvhdrq_cnt = uctxt->rcvhdrq_cnt;
83
+ __entry->rcvhdrq_cnt = get_hdrq_cnt(uctxt);
8484 __entry->rcvhdrq_dma = uctxt->rcvhdrq_dma;
8585 __entry->eager_cnt = uctxt->egrbufs.alloced;
8686 __entry->rcvegr_dma = uctxt->egrbufs.rcvtids[0].dma;
....@@ -138,6 +138,15 @@
138138 )
139139 );
140140
141
+const char *hfi1_trace_print_rsm_hist(struct trace_seq *p, unsigned int ctxt);
142
+TRACE_EVENT(ctxt_rsm_hist,
143
+ TP_PROTO(unsigned int ctxt),
144
+ TP_ARGS(ctxt),
145
+ TP_STRUCT__entry(__field(unsigned int, ctxt)),
146
+ TP_fast_assign(__entry->ctxt = ctxt;),
147
+ TP_printk("%s", hfi1_trace_print_rsm_hist(p, __entry->ctxt))
148
+);
149
+
141150 #endif /* __HFI1_TRACE_CTXTS_H */
142151
143152 #undef TRACE_INCLUDE_PATH