IB/hfi1: Add unique trace point for pio and sdma send
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 7 Mar 2016 19:35:19 +0000 (11:35 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Mar 2016 19:55:19 +0000 (15:55 -0400)
This allows for separately enabling pio and sdma
tracepoints to cut the volume of trace information.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/rc.c
drivers/staging/rdma/hfi1/trace.h
drivers/staging/rdma/hfi1/verbs.c

index 351f136..0d7e101 100644 (file)
@@ -881,7 +881,7 @@ void hfi1_send_rc_ack(struct hfi1_ctxtdata *rcd, struct rvt_qp *qp,
                goto queue_ack;
        }
 
-       trace_output_ibhdr(dd_from_ibdev(qp->ibqp.device), &hdr);
+       trace_ack_output_ibhdr(dd_from_ibdev(qp->ibqp.device), &hdr);
 
        /* write the pbc and data */
        ppd->dd->pio_inline_send(ppd->dd, pbuf, pbc, &hdr, hwords);
index b8b4416..4d91c18 100644 (file)
@@ -530,7 +530,15 @@ DEFINE_EVENT(hfi1_ibhdr_template, input_ibhdr,
             TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ib_header *hdr),
             TP_ARGS(dd, hdr));
 
-DEFINE_EVENT(hfi1_ibhdr_template, output_ibhdr,
+DEFINE_EVENT(hfi1_ibhdr_template, pio_output_ibhdr,
+            TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ib_header *hdr),
+            TP_ARGS(dd, hdr));
+
+DEFINE_EVENT(hfi1_ibhdr_template, ack_output_ibhdr,
+            TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ib_header *hdr),
+            TP_ARGS(dd, hdr));
+
+DEFINE_EVENT(hfi1_ibhdr_template, sdma_output_ibhdr,
             TP_PROTO(struct hfi1_devdata *dd, struct hfi1_ib_header *hdr),
             TP_ARGS(dd, hdr));
 
index 8209757..e605e09 100644 (file)
@@ -891,8 +891,8 @@ int hfi1_verbs_send_dma(struct rvt_qp *qp, struct hfi1_pkt_state *ps,
                if (unlikely(ret))
                        goto bail_build;
        }
-       trace_output_ibhdr(dd_from_ibdev(qp->ibqp.device),
-                          &ps->s_txreq->phdr.hdr);
+       trace_sdma_output_ibhdr(dd_from_ibdev(qp->ibqp.device),
+                               &ps->s_txreq->phdr.hdr);
        ret =  sdma_send_txreq(tx->sde, &priv->s_iowait, &tx->txreq);
        if (unlikely(ret == -ECOMM))
                goto bail_ecomm;
@@ -1067,8 +1067,8 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps,
                }
        }
 
-       trace_output_ibhdr(dd_from_ibdev(qp->ibqp.device),
-                          &ps->s_txreq->phdr.hdr);
+       trace_pio_output_ibhdr(dd_from_ibdev(qp->ibqp.device),
+                              &ps->s_txreq->phdr.hdr);
 
 pio_bail:
        if (qp->s_wqe) {