mbox series

[liburing,0/4] Tests for absolute timeouts and clockids

Message ID cover.1724007045.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series Tests for absolute timeouts and clockids | expand

Message

Pavel Begunkov Aug. 18, 2024, 6:55 p.m. UTC
Add definitions, tests and documentation for IORING_ENTER_ABS_TIMER
and IORING_REGISTER_CLOCK.

It also adds helpers for registering clocks but not for absolute
timeouts. Currently, liburing does't provide a way to pass custom
enter flags.

Pavel Begunkov (4):
  Sync kernel headers
  src/register: add clock id registration helper
  test: test clockids and abs timeouts
  man: document clock id and IORING_ENTER_ABS_TIMER

 man/io_uring_enter.2            |  12 ++
 man/io_uring_register.2         |  20 +++
 src/include/liburing.h          |   3 +
 src/include/liburing/io_uring.h |  67 +++++---
 src/liburing-ffi.map            |   2 +
 src/liburing.map                |   2 +
 src/register.c                  |   6 +
 test/Makefile                   |   1 +
 test/wait-timeout.c             | 283 ++++++++++++++++++++++++++++++++
 9 files changed, 369 insertions(+), 27 deletions(-)
 create mode 100644 test/wait-timeout.c

Comments

Jens Axboe Aug. 18, 2024, 7:39 p.m. UTC | #1
On Sun, 18 Aug 2024 19:55:40 +0100, Pavel Begunkov wrote:
> Add definitions, tests and documentation for IORING_ENTER_ABS_TIMER
> and IORING_REGISTER_CLOCK.
> 
> It also adds helpers for registering clocks but not for absolute
> timeouts. Currently, liburing does't provide a way to pass custom
> enter flags.
> 
> [...]

Applied, thanks!

[1/4] Sync kernel headers
      commit: 2fce7b7067a2443dcba8c94254efc3b1c6f84235
[2/4] src/register: add clock id registration helper
      commit: eed5cab0138531ff308c975825d01654644f0b42
[3/4] test: test clockids and abs timeouts
      commit: 050dd942acd02362299bde09ba794681052e1ebe
[4/4] man: document clock id and IORING_ENTER_ABS_TIMER
      commit: fa347092fac1b28bd9100e617974708af379ac44

Best regards,
Jens Axboe Aug. 18, 2024, 7:40 p.m. UTC | #2
On 8/18/24 12:55 PM, Pavel Begunkov wrote:
> Add definitions, tests and documentation for IORING_ENTER_ABS_TIMER
> and IORING_REGISTER_CLOCK.
> 
> It also adds helpers for registering clocks but not for absolute
> timeouts. Currently, liburing does't provide a way to pass custom
> enter flags.

Applied, and then I wrote a quick io_uring_register_clock.3 man page
for it as well. Please double check it...