summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2021-09-14 10:02:51 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2021-10-12 00:35:06 +0200
commited6812e29f8f7b709c46d66824c59c6601298486 (patch)
tree4896253112e32916f8cc1d8b85688120a8a56ebf
parentf3764544d3be4f25c71eb59dc9c1630049d1020c (diff)
downloadstrace-ed6812e29f8f7b709c46d66824c59c6601298486.tar.gz
xlat: update uring_ops
* src/xlat/uring_ops.in (IORING_OP_MKDIRAT): New constant, introduced by Linux commit v5.15-rc1~184^2~2. (IORING_OP_SYMLINKAT): New constant, introduced by Linux commit v5.15-rc1~184^2~1. (IORING_OP_LINKAT): New constant, introduced by Linux commit v5.15-rc1~184^2. * tests/io_uring_register.c: Update expected output. * NEWS: Mention it.
-rw-r--r--NEWS2
-rw-r--r--src/xlat/uring_ops.in3
-rw-r--r--tests/io_uring_register.c12
3 files changed, 10 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 13456e825..6d7f4fc9a 100644
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,7 @@ Noteworthy changes in release ?.?? (????-??-??)
syscall.
* Implemented decoding of SECCOMP_* ioctl commands.
* Enhanced decoding of times syscall.
- * Updated the list of MPOL_* constants.
+ * Updated lists of IORING_* and MPOL_* constants.
* Bug fixes
* Fixed printing of struct bpf_prog_info.map_ids array.
diff --git a/src/xlat/uring_ops.in b/src/xlat/uring_ops.in
index 04ead010c..c50bdb6b2 100644
--- a/src/xlat/uring_ops.in
+++ b/src/xlat/uring_ops.in
@@ -37,3 +37,6 @@ IORING_OP_TEE
IORING_OP_SHUTDOWN
IORING_OP_RENAMEAT
IORING_OP_UNLINKAT
+IORING_OP_MKDIRAT
+IORING_OP_SYMLINKAT
+IORING_OP_LINKAT
diff --git a/tests/io_uring_register.c b/tests/io_uring_register.c
index 4f20544dc..29201d148 100644
--- a/tests/io_uring_register.c
+++ b/tests/io_uring_register.c
@@ -212,12 +212,12 @@ main(void)
probe->ops[0].flags = 0;
probe->ops[0].resv2 = 0xbeefface;
- probe->ops[1].op = 36;
+ probe->ops[1].op = 39;
probe->ops[1].resv = 0;
probe->ops[1].flags = IO_URING_OP_SUPPORTED;
probe->ops[1].resv2 = 0xdeadc0de;
- probe->ops[2].op = 37;
+ probe->ops[2].op = 40;
probe->ops[2].resv = 0xaf;
probe->ops[2].flags = 0xbeef;
probe->ops[2].resv2 = 0;
@@ -232,22 +232,22 @@ main(void)
", {last_op=IORING_OP_EPOLL_CTL, ops_len=%hhu"
", resv2=[0, %#x, 0], ops=["
"{op=IORING_OP_NOP, resv=0xde, flags=0, resv2=0xbeefface}, "
- "{op=IORING_OP_UNLINKAT, flags=IO_URING_OP_SUPPORTED"
+ "{op=IORING_OP_LINKAT, flags=IO_URING_OP_SUPPORTED"
", resv2=0xdeadc0de}, "
- "{op=37 /* IORING_OP_??? */, resv=0xaf"
+ "{op=40 /* IORING_OP_??? */, resv=0xaf"
", flags=IO_URING_OP_SUPPORTED|0xbeee}, "
"{op=254 /* IORING_OP_??? */"
", flags=0xc0de /* IO_URING_OP_??? */}]}, 4) = %s\n",
fd_null, path_null, probe->ops_len, probe->resv2[1], errstr);
- probe->last_op = 37;
+ probe->last_op = 40;
probe->resv2[1] = 0;
fill_memory_ex(probe->ops, sizeof(probe->ops[0]) * (DEFAULT_STRLEN + 1),
0x40, 0x80);
sys_io_uring_register(fd_null, IORING_REGISTER_PROBE, probe,
DEFAULT_STRLEN + 1);
printf("io_uring_register(%u<%s>, IORING_REGISTER_PROBE"
- ", {last_op=37 /* IORING_OP_??? */, ops_len=%hhu, ops=[",
+ ", {last_op=40 /* IORING_OP_??? */, ops_len=%hhu, ops=[",
fd_null, path_null, probe->ops_len);
for (size_t i = 0; i < DEFAULT_STRLEN; i++) {
printf("%s{op=%u /* IORING_OP_??? */, resv=%#hhx"