diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-09-11 06:40:37 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-21 13:15:02 -0600 |
commit | 3b8fdd1dc35e395d19efbc8391a809a5b954ecf4 (patch) | |
tree | 1e5462cdb4f7e69ed224b07642cb6cbe939a8f85 /io_uring/opdef.h | |
parent | 4f731705cc1f1591e15e1c3133de8ae3843c68ff (diff) | |
download | linux-stable-3b8fdd1dc35e395d19efbc8391a809a5b954ecf4.tar.gz linux-stable-3b8fdd1dc35e395d19efbc8391a809a5b954ecf4.tar.bz2 linux-stable-3b8fdd1dc35e395d19efbc8391a809a5b954ecf4.zip |
io_uring/fdinfo: fix sqe dumping for IORING_SETUP_SQE128
If we have doubly sized SQEs, then we need to shift the sq index by 1
to account for using two entries for a single request. The CQE dumping
gets this right, but the SQE one does not.
Improve the SQE dumping in general, the information dumped is pretty
sparse and doesn't even cover the whole basic part of the SQE. Include
information on the extended part of the SQE, if doubly sized SQEs are
in use. A typical dump now looks like the following:
[...]
SQEs: 32
32: opcode:URING_CMD, fd:0, flags:1, off:3225964160, addr:0x0, rw_flags:0x0, buf_index:0 user_data:2721, e0:0x0, e1:0xffffb8041000, e2:0x100000000000, e3:0x5500, e4:0x7, e5:0x0, e6:0x0, e7:0x0
33: opcode:URING_CMD, fd:0, flags:1, off:3225964160, addr:0x0, rw_flags:0x0, buf_index:0 user_data:2722, e0:0x0, e1:0xffffb8043000, e2:0x100000000000, e3:0x5508, e4:0x7, e5:0x0, e6:0x0, e7:0x0
34: opcode:URING_CMD, fd:0, flags:1, off:3225964160, addr:0x0, rw_flags:0x0, buf_index:0 user_data:2723, e0:0x0, e1:0xffffb8045000, e2:0x100000000000, e3:0x5510, e4:0x7, e5:0x0, e6:0x0, e7:0x0
[...]
Fixes: ebdeb7c01d02 ("io_uring: add support for 128-byte SQEs")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.h')
0 files changed, 0 insertions, 0 deletions