aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAnand Khoje <[email protected]>2021-07-12 17:56:25 +0530
committerJason Gunthorpe <[email protected]>2021-07-16 10:57:28 -0300
commit21bfee9c0c7754408b1f311bffe304caf3e62250 (patch)
treedb088266ac160eb8e9f922b9e5ff2dbdc034669a /tools/perf/scripts/python/stackcollapse.py
parent36721a6d4cf2a39f411e3ac04d5771d1ffef9d23 (diff)
IB/core: Read subnet_prefix in ib_query_port via cache.
ib_query_port() calls device->ops.query_port() to get the port attributes. The method of querying is device driver specific. The same function calls device->ops.query_gid() to get the GID and extract the subnet_prefix (gid_prefix). The GID and subnet_prefix are stored in a cache. But they do not get read from the cache if the device is an Infiniband device. The following change takes advantage of the cached subnet_prefix. Testing with RDBMS has shown a significant improvement in performance with this change. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anand Khoje <[email protected]> Signed-off-by: Haakon Bugge <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions