summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-02Add test for sharing uring across forkAndres Freund
Signed-off-by: Andres Freund <andres@anarazel.de>
2020-02-01man/io_uring_enter.2: clarify how/when IOSQE_IO_LINK are terminatedJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-01test/read-write: skip eventfd read if we know we don't have READJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-01Merge branch 'eventfd_test' of https://github.com/cor3ntin/liburingJens Axboe
* 'eventfd_test' of https://github.com/cor3ntin/liburing: Add a test for reading from eventfd
2020-02-01Use stderr consistently in test/ casesJens Axboe
This is a start, still some to go. The goal here is to ensure that we use stderr consistently for errors, and include the error value as well. Right now folks copy/paste test cases (which they should), but that also means they should be doing the right thing so we don't keep adding test cases that just use stdout for errors, or don't include the error value. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-01test/send_recv: use stderr for errorsJens Axboe
And include error value. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-01Merge branch 'dev' of https://github.com/CarterLi/liburingJens Axboe
* 'dev' of https://github.com/CarterLi/liburing: test: add test for send_recv
2020-02-02test: add test for send_recvCarter Li
Also ensure that `test/send_recvmsg.c` the recv thread finishs before the process exits Signed-off-by: Carter Li <carter.li@eoitek.com>
2020-01-31Add eventfd test caseJens Axboe
Tests both the completion side, but also the recursion bug that was fixed in commit 50167d5bc585 in mainline. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-31add another helper for probing existing opcodesGlauber Costa
There are situations where one does not have a ring initialized yet, and yet they may want to know which opcodes are supported before doing so. We have recently introduced io_uring_get_probe(io_uring*) to do a similar task when the ring already exists. Because this was committed recently and this hasn't seen a release, I thought I would just go ahead and change that to io_uring_get_probe_ring(io_uring*), because I suck at finding another meaningful name for this case (io_uring_get_probe_noring sounded way too ugly to me) A minimal ring is initialized and torn down inside the function. Signed-off-by: Glauber Costa <glauber@scylladb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30man/io_uring_enter.2: add IOSQE_ASYNCJens Axboe
Also include kernel version availability for all the other flags. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30man/io_uring_enter.2: add credentials personality fieldJens Axboe
Add an explanation of it, and link to how to register/unregister personalities. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30man/io_uring_register.2: add missing registration opcodesJens Axboe
Also mention availability of all of them in terms of kernel version for mainline. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30man/io_uring_enter.2: add fadvise/madviseJens Axboe
Also fix a few typos. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30test/probe: add test csae for io_uring_get_probe()Jens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30test/probe: split verification into helperJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30add helper functions to verify io_uring supported opcodesGlauber Costa
It is common for an application using an ever-evolving interface to want to inquire about the presence of certain functionality it plans to use. Information about opcodes is stored in a io_uring_probe structure. There is usually some boilerplate involved in initializing one, and then using it to check if it is enabled. This patch adds two new helper functions: one that returns a pointer to a io_uring_probe (or NULL if probe is not available), and another one that given a probe checks if the opcode is supported. Signed-off-by: Glauber Costa <glauber@scylladb.com> CC: Avi Kivity <avi@scylladb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30Update README to mention regressions testsJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-30Sync io_uring.h with 5.6-rcJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-29io_uring.h: remove dead IOSQE_PERSONALITY flagJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-29test/personality: update to modified APIJens Axboe
Also include a LINK test, so we can verify that switching credentials works fine for deferred requests too. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-29man/io_uring_enter.2: add IORING_OP_{SEND,RECV}Jens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-29man/io_uring_enter.2: add notes on kernel version availabilityJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-29Add test/personality to .gitignoreJens Axboe
It was missed in the previous patch. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-29.gitignore: add missing tests to ignoreStefano Garzarella
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28test/shared-wq: remove debug sleepJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28test/personality: test invalid unregister IDJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28test/personality: test invalid personalityJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28Add personality test caseJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28Add sqe personality member/flagJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28Add io_uring_{register,unregister}_personality() helpersJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28Remove EPOLL_CTL for nowJens Axboe
I don't want to keep it reserved, we'll add it properly when the mainline patches are in. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28test/shared-wq: use normal initJens Axboe
We don't need the params anymore. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-28test/read-write: fixed output, and added 'nonvec', when VERBOSESimon A. F. Lund
Signed-off-by: Simon A. F. Lund <simon.lund@samsung.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-27Update shared workqueue support and test caseJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-27Merge branch 'fix-man' of https://github.com/quininer/liburingJens Axboe
* 'fix-man' of https://github.com/quininer/liburing: Fix IORING_OP_CONNECT document
2020-01-27Fix IORING_OP_CONNECT documentquininer
2020-01-26Add a test for reading from eventfdCorentin Jabot
2020-01-26test/read-write: skip non-vectored read/write if not supportedJens Axboe
Use the IORING_REGISTER_PROBE op to test for it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-26test/madvise: don't fail on "suspicious timings"Jens Axboe
The rest isn't very reliable in terms of the timing. Just run the test and let it pass regardless, dump the bad/good timing runs. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-25Rename io_uring_params 'id' to 'wq_id'Jens Axboe
Matches the kernel change. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-24test/read-write: add non-vectored read/write testingJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-24Add test case for IORING_SETUP_ATTACH_WQJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-24IORING_SETUP_SHARED got renamed to IORING_SETUP_ATTACH_WQJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-23Add probe test caseJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-23Add io_uring_register_probe()Jens Axboe
Helper to return a struct of supported op codes. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-23Update io_uring.hJens Axboe
Move bits from the pending 5.6 changes in. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-21Include MIT notice in rpm spec and debian package fileJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-21Merge branch 'mit'Jens Axboe
Dual license liburing LGPL/MIT. * mit: Add MIT license
2020-01-20Add MIT licenseJens Axboe
liburing is hence forth dual licensed LGPL/MIT. Signed-off-by: Jens Axboe <axboe@kernel.dk>