IB/hfi1: Add 16B rcvhdr trace support
authorDon Hiatt <don.hiatt@intel.com>
Thu, 1 Feb 2018 20:38:48 +0000 (12:38 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 1 Feb 2018 22:43:32 +0000 (15:43 -0700)
Add trace_hfi1_rcvhdr support for bypass packets.
While here, remove the etype argument as it is available
in struct hfi1_packet.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/driver.c
drivers/infiniband/hw/hfi1/trace_rx.h

index c7e6b670e809e1461f3fa2cbad24e26bb9d943b4..addc68e83606fe92552b09a7cf43b768ffc9a327 100644 (file)
@@ -1559,7 +1559,7 @@ int process_receive_ib(struct hfi1_packet *packet)
        if (hfi1_setup_9B_packet(packet))
                return RHF_RCV_CONTINUE;
 
-       trace_hfi1_rcvhdr(packet, RHF_RCV_TYPE_IB);
+       trace_hfi1_rcvhdr(packet);
 
        if (unlikely(rhf_err_flags(packet->rhf))) {
                handle_eflags(packet);
@@ -1595,6 +1595,8 @@ int process_receive_bypass(struct hfi1_packet *packet)
        if (hfi1_setup_bypass_packet(packet))
                return RHF_RCV_CONTINUE;
 
+       trace_hfi1_rcvhdr(packet);
+
        if (unlikely(rhf_err_flags(packet->rhf))) {
                handle_eflags(packet);
                return RHF_RCV_CONTINUE;
index f76841595e08e63451de15284e0596908f56c845..7eceb57e041539038834dbe40e501610045f32de 100644 (file)
@@ -63,8 +63,8 @@ __print_symbolic(type,                       \
 #define TRACE_SYSTEM hfi1_rx
 
 TRACE_EVENT(hfi1_rcvhdr,
-           TP_PROTO(struct hfi1_packet *packet, u32 etype),
-           TP_ARGS(packet, etype),
+           TP_PROTO(struct hfi1_packet *packet),
+           TP_ARGS(packet),
            TP_STRUCT__entry(DD_DEV_ENTRY(packet->rcd->dd)
                             __field(u64, eflags)
                             __field(u32, ctxt)
@@ -77,7 +77,7 @@ TRACE_EVENT(hfi1_rcvhdr,
             TP_fast_assign(DD_DEV_ASSIGN(packet->rcd->dd);
                            __entry->eflags = rhf_err_flags(packet->rhf);
                            __entry->ctxt = packet->rcd->ctxt;
-                           __entry->etype = etype;
+                           __entry->etype = packet->etype;
                            __entry->hlen = packet->hlen;
                            __entry->tlen = packet->tlen;
                            __entry->updegr = packet->updegr;