diff options
author | Michael J. Ruhl <michael.j.ruhl@intel.com> | 2017-08-28 20:23:27 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-08-29 01:12:27 +0200 |
commit | 34ab4de77fe512ba3aeabdcdc97504bd19791511 (patch) | |
tree | 52e9fbbbc4b35c8ef2282a8447e22beb17378a1e /drivers/infiniband/hw/hfi1/trace.h | |
parent | IB/hfi1: Acquire QSFP cable information on loopback (diff) | |
download | linux-34ab4de77fe512ba3aeabdcdc97504bd19791511.tar.xz linux-34ab4de77fe512ba3aeabdcdc97504bd19791511.zip |
IB/hif1: Remove static tracing from SDMA hot path
The hfi1_cdbg() macro can be instantiated in the hot path even when it
is not in use. This shows up on perf profiles.
Rework the macros (for SDMA and MMU), to use the trace interface directly
to eliminate this performance hit.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/trace.h')
-rw-r--r-- | drivers/infiniband/hw/hfi1/trace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/trace.h b/drivers/infiniband/hw/hfi1/trace.h index 92dc88f013c9..af50c0793450 100644 --- a/drivers/infiniband/hw/hfi1/trace.h +++ b/drivers/infiniband/hw/hfi1/trace.h @@ -1,5 +1,5 @@ /* - * Copyright(c) 2015, 2016 Intel Corporation. + * Copyright(c) 2015 - 2017 Intel Corporation. * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. @@ -51,3 +51,4 @@ #include "trace_rc.h" #include "trace_rx.h" #include "trace_tx.h" +#include "trace_mmu.h" |