diff options
author | Steve Wise <swise@opengridcomputing.com> | 2018-02-14 18:43:36 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-16 10:18:11 -0700 |
commit | 2f08ee363fe097bc6dc01aac53e1798b16c00986 (patch) | |
tree | 204e7fec71004dbca9041601d93f8b770bb3d576 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 2188558621ed475cef55fa94ce535499452f0091 (diff) |
RDMA/restrack: don't use uaccess_kernel()
uaccess_kernel() isn't sufficient to determine if an rdma resource is
user-mode or not. For example, resources allocated in the add_one()
function of an ib_client get falsely labeled as user mode, when they
are kernel mode allocations. EG: mad qps.
The result is that these qps are skipped over during a nldev query
because of an erroneous namespace mismatch.
So now we determine if the resource is user-mode by looking at the object
struct's uobject or similar pointer to know if it was allocated for user
mode applications.
Fixes: 02d8883f520e ("RDMA/restrack: Add general infrastructure to track RDMA resources")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions