Skip to contentSkip to conversation

io_uring-writev: open output file through io_uring

PATCH In review [email protected] 2 participants 3 messages Aug 31 – Sep 1

lore
Share & tools
lore
#0 lore raw

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
index 8b2ca6005b..f5de317429 100644
@@ -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

#1 lore raw
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 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

Quoted 6 lines

io-uring-writev.bb: wrynose doesn't support "S = ${WORKDIR}" anymore, fix it

[YOCTO #15244]

---

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
#2 lore raw

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 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

Quoted 5 lines

[YOCTO #15244]

---

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