summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2022-08-07 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2022-08-07 08:00:00 +0000
commitd752780ca8d088cbc1e87ac99bd8fcc42cb1aa77 (patch)
treecdcdb52c1042a3c6144b96872346001c474e7bc6
parent2589be2c34c61db06d7ac2bbb72ca09dac8a8d89 (diff)
downloadstrace-d752780ca8d088cbc1e87ac99bd8fcc42cb1aa77.tar.gz
xlat: update IORING_SETUP_* constants
* src/xlat/uring_setup_flags.in (IORING_SETUP_COOP_TASKRUN): New constant introduced by Linux kernel commit v5.19-rc1~251^2~43. (IORING_SETUP_TASKRUN_FLAG): New constant introduced by Linux kernel commit v5.19-rc1~251^2~42. (IORING_SETUP_SQE128): New constant introduced by Linux kernel commit v5.19-rc1~247^2~21. (IORING_SETUP_CQE32): New constant introduced by Linux kernel commit v5.19-rc1~247^2~20. * tests/io_uring_setup.c (main): Update expected output. * NEWS: Mention this change.
-rw-r--r--NEWS4
-rw-r--r--src/xlat/uring_setup_flags.in4
-rw-r--r--tests/io_uring_setup.c6
3 files changed, 10 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 5e4b08004..f8caebff2 100644
--- a/NEWS
+++ b/NEWS
@@ -16,8 +16,8 @@ Noteworthy changes in release ?.?? (????-??-??)
INET_DIAG_SK_BPF_STORAGES, INET_DIAG_SOCKOPT, and INET_DIAG_ULP_INFO
NETLINK_SOCK_DIAG netlink attributes.
* Updated decoding of struct rtnl_link_stats64.
- * Updated lists of DEVCONF_*, FAN_MARK_*, GPIO_V2_LINE_FLAG_*, KEXEC_*,
- NET_IPV4_CONF_*, NT_*, and UFFD_FEATURE_* constants.
+ * Updated lists of DEVCONF_*, FAN_MARK_*, GPIO_V2_LINE_FLAG_*, IORING_*,
+ KEXEC_*, NET_IPV4_CONF_*, NT_*, and UFFD_FEATURE_* constants.
* Updated lists of ioctl commands from Linux 5.19.
* Bug fixes
diff --git a/src/xlat/uring_setup_flags.in b/src/xlat/uring_setup_flags.in
index 784bfec51..7bab7f397 100644
--- a/src/xlat/uring_setup_flags.in
+++ b/src/xlat/uring_setup_flags.in
@@ -7,3 +7,7 @@ IORING_SETUP_CLAMP
IORING_SETUP_ATTACH_WQ
IORING_SETUP_R_DISABLED
IORING_SETUP_SUBMIT_ALL
+IORING_SETUP_COOP_TASKRUN
+IORING_SETUP_TASKRUN_FLAG
+IORING_SETUP_SQE128
+IORING_SETUP_CQE32
diff --git a/tests/io_uring_setup.c b/tests/io_uring_setup.c
index 024293f36..68ef2f7f5 100644
--- a/tests/io_uring_setup.c
+++ b/tests/io_uring_setup.c
@@ -68,9 +68,11 @@ main(void)
printf("io_uring_setup(%u, {flags=IORING_SETUP_IOPOLL"
"|IORING_SETUP_SQPOLL|IORING_SETUP_SQ_AFF|IORING_SETUP_CQSIZE"
"|IORING_SETUP_CLAMP|IORING_SETUP_ATTACH_WQ"
- "|IORING_SETUP_R_DISABLED|IORING_SETUP_SUBMIT_ALL|%#x"
+ "|IORING_SETUP_R_DISABLED|IORING_SETUP_SUBMIT_ALL"
+ "|IORING_SETUP_COOP_TASKRUN|IORING_SETUP_TASKRUN_FLAG"
+ "|IORING_SETUP_SQE128|IORING_SETUP_CQE32|%#x"
", sq_thread_cpu=%#x, sq_thread_idle=%u, wq_fd=%d, resv=[",
- 1, -1U - 255, params->sq_thread_cpu, params->sq_thread_idle,
+ 1, -1U - 0xfff, params->sq_thread_cpu, params->sq_thread_idle,
params->wq_fd);
for (unsigned int i = 0; i < ARRAY_SIZE(params->resv); ++i)
printf("%s%#x", i != 0 ? ", " : "", params->resv[i]);