summaryrefslogtreecommitdiff
path: root/tools/include/io_uring
AgeCommit message (Collapse)Author
5 daysselftests/io_uring: cast optval through uintptr_t in mini_liburing.hSasha Levin
io_uring_prep_cmd() puts the optval pointer into the 64-bit optval field of the SQE with a plain cast, which warns on 32-bit architectures: mini_liburing.h:272:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Cast through uintptr_t, and include <stdint.h> for it. Reviewed-by: Breno Leitao <leitao@debian.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Link: https://patch.msgid.link/20261104144623.3803717-1-sashal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-01-21selftests/io_uring: support NO_SQARRAY in miniliburingPavel Begunkov
Add support for IORING_SETUP_NO_SQARRAY in miniliburing. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-01-21selftests/io_uring: add io_uring_queue_init_paramsPavel Begunkov
Add a ring init variant taking struct io_uring_params, which mimicks liburing API. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-10-19selftests/net: Extract uring helpers to be reusableBreno Leitao
Instead of defining basic io_uring functions in the test case, move them to a common directory, so, other tests can use them. This simplify the test code and reuse the common liburing infrastructure. This is basically a copy of what we have in io_uring_zerocopy_tx with some minor improvements to make checkpatch happy. A follow-up test will use the same helpers in a BPF sockopt test. Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://lore.kernel.org/r/20231016134750.1381153-8-leitao@debian.org Signed-off-by: Jens Axboe <axboe@kernel.dk>