aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-02-04 13:52:00 +0000
committerJens Axboe <[email protected]>2021-02-04 08:05:46 -0700
commit1a2cc0ce8d18c9e5592733cb6381e9ff5c23d916 (patch)
tree4a02c915a616874e182bf7c27b89ae7188664f90 /tools/perf/scripts/python/export-to-postgresql.py
parent6713e7a6145a4b5a61e33a37f0b4d06ca6d2c6d8 (diff)
io_uring: further simplify do_read error parsing
First, instead of checking iov_iter_count(iter) for 0 to find out that all needed bytes were read, just compare returned code against io_size. It's more reliable and arguably cleaner. Also, place the half-read case into an else branch and delete an extra label. Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions