RDMA/core: Save kernel caller name when creating PD and CQ objects
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 28 Jan 2018 09:17:19 +0000 (11:17 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 29 Jan 2018 21:01:44 +0000 (14:01 -0700)
commitf66c8ba4c9fa193481fdb8030504287bf5ad4d69
treea737729b1bc43b5730741eb15fe6d29dff733d2b
parente449644741af523fa345f41494e19a0914709a69
RDMA/core: Save kernel caller name when creating PD and CQ objects

The KBUILD_MODNAME variable contains the module name and it is known for
kernel users during compilation, so let's reuse it to track the owners.

Followup patches will store this for resource tracking.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cq.c
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h