From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Hi, This short series provides an accumulative number of ucontexts through rdmatool. [leonro@server ~]$ rdma res 1: mlx5_0: pd 3 cq 5 qp 4 cm_id 0 mr 0 ctx 0 [leonro@server ~]$ ibv_rc_pingpong & [leonro@server ~]$ rdma res 1: mlx5_0: pd 4 cq 6 qp 5 cm_id 0 mr 1 ctx 1 Thanks Leon Romanovsky (3): RDMA/restrack: Track ucontext RDMA/uverbs: Annotate alloc/deallloc paths with context tracking RDMA/nldev: Export to user space number of contexts drivers/infiniband/core/nldev.c | 1 + drivers/infiniband/core/rdma_core.c | 2 ++ drivers/infiniband/core/restrack.c | 5 +++++ drivers/infiniband/core/uverbs_cmd.c | 3 +++ include/rdma/ib_verbs.h | 4 ++++ include/rdma/restrack.h | 4 ++++ 6 files changed, 19 insertions(+) -- 2.19.1