Skip to content
Permalink
Browse files

msg/async/rdma: Debug prints for ibv_*

Setting RDMA_DEBUG to 1, will enable debug prints for every ibv_*
function called.
This makes it easier to debug RDMA issues.

Issue: 995322
Change-Id: I49d327d5d4386b44264f5619d50f2dbc7d76dcae
Signed-off-by: Amir Vadai <amir@vadai.me>
  • Loading branch information...
amirv authored and Adir Lev committed Jan 31, 2017
1 parent 91bb13d commit 7d1475f6274531988854cf62f6056f9cfd13ff29
Showing with 394 additions and 0 deletions.
  1. +7 −0 src/msg/async/rdma/Infiniband.h
  2. +387 −0 src/msg/async/rdma/ib_dbg.h
@@ -18,6 +18,7 @@
#define CEPH_INFINIBAND_H

#include <infiniband/verbs.h>
#include <rdma/rdma_cma.h>

#include <string>
#include <vector>
@@ -30,6 +31,12 @@
#include "msg/async/net_handler.h"
#include "common/Mutex.h"

#define RDMA_DEBUG 0

#if RDMA_DEBUG
#include "ib_dbg.h"
#endif

#define HUGE_PAGE_SIZE (2 * 1024 * 1024)
#define ALIGN_TO_PAGE_SIZE(x) \
(((x) + HUGE_PAGE_SIZE -1) / HUGE_PAGE_SIZE * HUGE_PAGE_SIZE)
Oops, something went wrong.

0 comments on commit 7d1475f

Please sign in to comment.
You can’t perform that action at this time.