]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hif1: Remove static tracing from SDMA hot path
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Mon, 28 Aug 2017 18:23:27 +0000 (11:23 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Aug 2017 23:12:27 +0000 (19:12 -0400)
commit56e78a7da854390a04f0efd9df23b48e0ac576c7
tree52e9fbbbc4b35c8ef2282a8447e22beb17378a1e
parentf4be5bcfeacfec56fbd71c9eeb299101eb52b0a2
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>
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/hfi1/mmu_rb.c
drivers/infiniband/hw/hfi1/trace.h
drivers/infiniband/hw/hfi1/trace_mmu.h [new file with mode: 0644]
drivers/infiniband/hw/hfi1/trace_tx.h
drivers/infiniband/hw/hfi1/user_sdma.c
drivers/infiniband/hw/hfi1/user_sdma.h