summaryrefslogtreecommitdiff
path: root/drivers/infiniband/sw/rdmavt/trace_tx.h
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2017-07-24 08:33:43 -0400
committerDoug Ledford <dledford@redhat.com>2017-07-24 08:33:43 -0400
commit03da084ed8804ddc5918883be84245b53393b8fb (patch)
tree564a4860cb9c5de3f504fd6156110d95b1c9f26b /drivers/infiniband/sw/rdmavt/trace_tx.h
parent520eccdfe187591a51ea9ab4c1a024ae4d0f68d9 (diff)
parentbc5214ee29220251e5507882696ded5ca183b169 (diff)
downloadlinux-rt-03da084ed8804ddc5918883be84245b53393b8fb.tar.gz
Merge branch 'hfi1' into k.o/for-4.14
Diffstat (limited to 'drivers/infiniband/sw/rdmavt/trace_tx.h')
-rw-r--r--drivers/infiniband/sw/rdmavt/trace_tx.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/infiniband/sw/rdmavt/trace_tx.h b/drivers/infiniband/sw/rdmavt/trace_tx.h
index a613a2223751..0ef25fc49f25 100644
--- a/drivers/infiniband/sw/rdmavt/trace_tx.h
+++ b/drivers/infiniband/sw/rdmavt/trace_tx.h
@@ -84,12 +84,12 @@ __print_symbolic(opcode, \
wr_opcode_name(RESERVED10))
#define POS_PRN \
-"[%s] wqe %p wr_id %llx send_flags %x qpn %x qpt %u psn %x lpsn %x ssn %x length %u opcode 0x%.2x,%s size %u avail %u head %u last %u pid %u num_sge %u"
+"[%s] wqe %p wr_id %llx send_flags %x qpn %x qpt %u psn %x lpsn %x ssn %x length %u opcode 0x%.2x,%s size %u avail %u head %u last %u pid %u num_sge %u wr_num_sge %u"
TRACE_EVENT(
rvt_post_one_wr,
- TP_PROTO(struct rvt_qp *qp, struct rvt_swqe *wqe),
- TP_ARGS(qp, wqe),
+ TP_PROTO(struct rvt_qp *qp, struct rvt_swqe *wqe, int wr_num_sge),
+ TP_ARGS(qp, wqe, wr_num_sge),
TP_STRUCT__entry(
RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device))
__field(u64, wr_id)
@@ -108,6 +108,7 @@ TRACE_EVENT(
__field(int, send_flags)
__field(pid_t, pid)
__field(int, num_sge)
+ __field(int, wr_num_sge)
),
TP_fast_assign(
RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device))
@@ -127,6 +128,7 @@ TRACE_EVENT(
__entry->ssn = wqe->ssn;
__entry->send_flags = wqe->wr.send_flags;
__entry->num_sge = wqe->wr.num_sge;
+ __entry->wr_num_sge = wr_num_sge;
),
TP_printk(
POS_PRN,
@@ -146,7 +148,8 @@ TRACE_EVENT(
__entry->head,
__entry->last,
__entry->pid,
- __entry->num_sge
+ __entry->num_sge,
+ __entry->wr_num_sge
)
);