21 Sep, 2020

1 commit

  • It would seem none of the kernel continuous integration does this:
    $ cd tools/io_uring
    $ make

    Otherwise it may have noticed:
    cc -Wall -Wextra -g -D_GNU_SOURCE -c -o io_uring-bench.o
    io_uring-bench.c
    io_uring-bench.c:133:12: error: static declaration of ‘gettid’
    follows non-static declaration
    133 | static int gettid(void)
    | ^~~~~~
    In file included from /usr/include/unistd.h:1170,
    from io_uring-bench.c:27:
    /usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note:
    previous declaration of ‘gettid’ was here
    34 | extern __pid_t gettid (void) __THROW;
    | ^~~~~~
    make: *** [: io_uring-bench.o] Error 1

    The problem on Ubuntu 20.04 (with lk 5.9.0-rc5) is that unistd.h
    already defines gettid(). So prefix the local definition with
    "lk_".

    Signed-off-by: Douglas Gilbert
    Signed-off-by: Jens Axboe

    Douglas Gilbert
     

09 Apr, 2019

1 commit


07 Mar, 2019

1 commit

  • This adds two test programs in tools/io_uring/ that demonstrate both
    the raw io_uring API (and all features) through a small benchmark
    app, io_uring-bench, and the liburing exposed API in a simplified
    cp(1) implementation through io_uring-cp.

    Signed-off-by: Jens Axboe

    Jens Axboe