Skip to content

Proposed trace points for RDMA/core

Chuck Lever linux-rdma 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest3 patches 3 repliesIn review
  2. v93 patches 5 repliesSuperseded
  3. v83 patches 0 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v72 patches1 replySuperseded
v62 patches6 repliesSuperseded
v51 patch2 repliesSuperseded
v41 patch4 repliesSuperseded
v31 patch4 repliesSuperseded
v21 patch1 replySuperseded
v1 RFC1 patch1 replySuperseded

Changes in v10 from the cover letter

- One-line Makefile fix to ensure patch 1/3 compiles

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3RDMA/cma: Add trace points in RDMA Connection Managerdrivers/infiniband/core/Makefile drivers/infiniband/core/cma.c drivers/infiniband/core/cma_trace.c +1 more+475 -230 replies
2/3RDMA/core: Trace points for diagnosing completion queue issuesdrivers/infiniband/core/Makefile drivers/infiniband/core/cq.c drivers/infiniband/core/trace.c +3 more+320 -40 replies
3/3RDMA/core: Add trace points to follow MR allocationdrivers/infiniband/core/verbs.c include/trace/events/rdma_core.h+151 -110 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchParav Pandit
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/3] Proposed trace points for RDMA/core

Hey y'all-

Refresh of the RDMA/core trace point patches.

Changes since v9:
- One-line Makefile fix to ensure patch 1/3 compiles

Changes since v8:
- Merged up to v5.5-rc2
- Added trace points to record lifetime of rdma_cm_id's QP
- Added trace points in the "drain QP" path
- Various other clean-ups

Changes since v7:
- Capture the return value from the ULP's CM event handler
- Record the lifetime of each rdma_cm_id
- Include an example patch for capturing MR lifetime

Changes since v6:
- Move include/trace/events/rmda_cma.h to drivers/infiniband/core/cma_trace.h
- Add sample trace log output to the patch descriptions
- Back to the inlined version of ib_poll_cq()

Changes since v5:
- Add low-overhead trace points in the Connection Manager
- Address #include heartburn found by lkp

Changes since v4:
- Removed __ib_poll_cq, uninlined ib_poll_cq

Changes since v3:
- Reverted unnecessary behavior change in __ib_process_cq
- Clarified what "id" is in trace point output
- Added comment before new fields in struct ib_cq
- New trace point that fires when there is a CQ allocation failure

Changes since v2:
- Removed extraneous changes to include/trace/events/rdma.h

Changes since RFC:
- Display CQ's global resource ID instead of it's pointer address

---

Chuck Lever (3):
RDMA/cma: Add trace points in RDMA Connection Manager RDMA/core: Trace points for diagnosing completion queue issues RDMA/core: Add trace points to follow MR allocation

 drivers/infiniband/core/Makefile    |    6 -
 drivers/infiniband/core/cma.c       |   88 ++++++--
 drivers/infiniband/core/cma_trace.c |   16 +
 drivers/infiniband/core/cma_trace.h |  391 +++++++++++++++++++++++++++++++++++
 drivers/infiniband/core/cq.c        |   27 ++
 drivers/infiniband/core/trace.c     |   14 +
 drivers/infiniband/core/verbs.c     |   43 +++-
 include/rdma/ib_verbs.h             |    5 
 include/trace/events/rdma_core.h    |  394 +++++++++++++++++++++++++++++++++++
 9 files changed, 946 insertions(+), 38 deletions(-)
 create mode 100644 drivers/infiniband/core/cma_trace.c
 create mode 100644 drivers/infiniband/core/cma_trace.h
 create mode 100644 drivers/infiniband/core/trace.c
 create mode 100644 include/trace/events/rdma_core.h

--
Chuck Lever