io_uring-writev: open output file through io_uring
PATCH 1/1 io_uring-writev: open output file through io_uring
From: Dmitry Sakhonchik <[email protected]>
The existing test creates the output file with open(), which ends up using openat() and is therefore intercepted by pseudo before the actual io_uring write operation happens.
Use IORING_OP_OPENAT to create the output file through io_uring as well. This makes the test successfully bypass pseudo
io-uring-writev.bb: wrynose doesn't support "S = ${WORKDIR}" anymore, fix it
[YOCTO #15244]
--- .../recipes-test/io-uring/io-uring-writev.bb | 2 +- .../io-uring-writev/io-uring-writev.c | 98 ++++++++++++++++--- 2 files changed, 88 insertions(+), 12 deletions(-)
meta-selftest/recipes-test/io-uring/io-uring-writev.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda SRC_URI = "file://io-uring-writev.c" -S = "${WORKDIR}" +S = "${UNPACKDIR}" do_compile() { ${BUILD_CC} io-uring-writev.c -o io-uring-writev
meta-selftest/recipes-test/io-uring/io-uring-writev/io-uring-writev.c +87 -11
161 lines not on this page · raw message
Quoted 9 lines · Dmitry Sakhonchik via lists.openembedded.org
From: Dmitry Sakhonchik <[email protected]>
The existing test creates the output file with
open(), which ends up usingopenat()and is therefore intercepted by pseudo before the actualio_uringwrite operation happens.Use
IORING_OP_OPENATto create the output file throughio_uringas well. This makes the test successfully bypass pseudo
Quoted 6 lines
io-uring-writev.bb: wrynose doesn't support "S = ${WORKDIR}" anymore, fix it
[YOCTO #15244]
Signed-off-by Dmitry Sakhonchik <[email protected]>---
Hi Dmitry,
I suspect this was targeting Martin's branch and not master? Otherwise we are missing the commits adding the io-uring-writev recipes.
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi.
Yes, it’s for Martin’s branch, he’s already merged it. I just couldn’t figure out how to specify a branch I am applying to.
Вт, 1 сент. 2026 г. в 08:35, Mathieu Dubois-Briand < [email protected]>:
Quoted 33 lines
Quoted 10 lines · Dmitry Sakhonchik via lists.openembedded.org
From: Dmitry Sakhonchik <[email protected]>
The existing test creates the output file with
open(), which ends up usingopenat()and is therefore intercepted by pseudo before the actualio_uringwrite operation happens.Use
IORING_OP_OPENATto create the output file throughio_uringas well. This makes the test successfully bypass pseudoio-uring-writev.bb: wrynose doesn't support "S = ${WORKDIR}" anymore,
fix it
Quoted 5 lines
[YOCTO #15244]
Signed-off-by Dmitry Sakhonchik <[email protected]>---
Hi Dmitry,
I suspect this was targeting Martin's branch and not master? Otherwise we are missing the commits adding the io-uring-writev recipes.
Thanks,
Mathieu--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com