summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-04-17 01:48:26 +0300
committerJens Axboe <axboe@kernel.dk>2025-04-17 20:59:12 +0300
commitb419bed4f0a62c65a57dd495185821dd56bc435c (patch)
tree5990977344f44446681900c2b1b6e9d0a1ef748a /tools/perf/scripts/python/mem-phys-addr.py
parent80c7378f94cf193cb3bd2101bbcd5aea78d0e211 (diff)
downloadlinux-b419bed4f0a62c65a57dd495185821dd56bc435c.tar.xz
io_uring/rsrc: ensure segments counts are correct on kbuf buffers
kbuf imports have the front offset adjusted and segments removed, but the tail segments are still included in the segment count that gets passed in the iov_iter. As the segments aren't necessarily all the same size, move importing to a separate helper and iterate the mapped length to get an exact count. Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions