.. | .. |
---|
1 | 1 | /* |
---|
2 | | -* Copyright(c) 2015, 2016 Intel Corporation. |
---|
| 2 | +* Copyright(c) 2015 - 2020 Intel Corporation. |
---|
3 | 3 | * |
---|
4 | 4 | * This file is provided under a dual BSD/GPLv2 license. When using or |
---|
5 | 5 | * redistributing this file, you may do so under either license. |
---|
.. | .. |
---|
80 | 80 | __entry->credits = uctxt->sc->credits; |
---|
81 | 81 | __entry->hw_free = le64_to_cpu(*uctxt->sc->hw_free); |
---|
82 | 82 | __entry->piobase = uctxt->sc->base_addr; |
---|
83 | | - __entry->rcvhdrq_cnt = uctxt->rcvhdrq_cnt; |
---|
| 83 | + __entry->rcvhdrq_cnt = get_hdrq_cnt(uctxt); |
---|
84 | 84 | __entry->rcvhdrq_dma = uctxt->rcvhdrq_dma; |
---|
85 | 85 | __entry->eager_cnt = uctxt->egrbufs.alloced; |
---|
86 | 86 | __entry->rcvegr_dma = uctxt->egrbufs.rcvtids[0].dma; |
---|
.. | .. |
---|
138 | 138 | ) |
---|
139 | 139 | ); |
---|
140 | 140 | |
---|
| 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 | + |
---|
141 | 150 | #endif /* __HFI1_TRACE_CTXTS_H */ |
---|
142 | 151 | |
---|
143 | 152 | #undef TRACE_INCLUDE_PATH |
---|