aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-03-28 14:21:06 -0600
committerJens Axboe <axboe@kernel.dk>2023-03-30 08:12:29 -0600
commit747b1f65d39ae729b7914075899b0c82d7f667db (patch)
treeb5d46fc0d7d9804008356a0c01630287a1b588a4 /tools/perf/scripts/python/export-to-postgresql.py
parentiov_iter: set nr_segs = 1 for ITER_UBUF (diff)
downloadwireguard-linux-747b1f65d39ae729b7914075899b0c82d7f667db.tar.xz
wireguard-linux-747b1f65d39ae729b7914075899b0c82d7f667db.zip
iov_iter: overlay struct iovec and ubuf/len
Add an internal struct iovec that we can return as a pointer, with the fields of the iovec overlapping with the ITER_UBUF ubuf and length fields. Then we can have iter_iov() check for the appropriate type, and return &iter->__ubuf_iovec for ITER_UBUF and iter->__iov for ITER_IOVEC and things will magically work out for a single segment request regardless of either type. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions