Changeset 22ddade


Ignore:
Timestamp:
Jul 30, 2020, 2:56:16 PM (15 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
e0f93e0
Parents:
7288c00
Message:

Added configure logic for io_uring flags

Location:
libcfa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/configure.ac

    r7288c00 r22ddade  
    129129#io_uring 5.6 and later uses probes
    130130define(ioring_ops, [IORING_OP_NOP,IORING_OP_READV,IORING_OP_WRITEV,IORING_OP_FSYNC,IORING_OP_READ_FIXED,IORING_OP_WRITE_FIXED,IORING_OP_POLL_ADD,IORING_OP_POLL_REMOVE,IORING_OP_SYNC_FILE_RANGE,IORING_OP_SENDMSG,IORING_OP_RECVMSG,IORING_OP_TIMEOUT,IORING_OP_TIMEOUT_REMOVE,IORING_OP_ACCEPT,IORING_OP_ASYNC_CANCEL,IORING_OP_LINK_TIMEOUT,IORING_OP_CONNECT,IORING_OP_FALLOCATE,IORING_OP_OPENAT,IORING_OP_CLOSE,IORING_OP_FILES_UPDATE,IORING_OP_STATX,IORING_OP_READ,IORING_OP_WRITE,IORING_OP_FADVISE,IORING_OP_MADVISE,IORING_OP_SEND,IORING_OP_RECV,IORING_OP_OPENAT2,IORING_OP_EPOLL_CTL,IORING_OP_SPLICE,IORING_OP_PROVIDE_BUFFERS,IORING_OP_REMOVE_BUFFER])
     131define(ioring_flags, [IOSQE_FIXED_FILE,IOSQE_IO_DRAIN,IOSQE_ASYNC,IOSQE_IO_LINK,IOSQE_IO_HARDLINK,SPLICE_F_FD_IN_FIXED])
    131132
    132133define(ioring_from_decls, [
     
    166167                ioring_from_decls
    167168        ])
     169
     170        # check support for various io_uring flags
     171        m4_foreach([op], [ioring_flags], [
     172                AC_CHECK_DECL(op, [AC_DEFINE([CFA_HAVE_]op)], [], [[#include <linux/io_uring.h>]])
     173        ])
    168174])
    169175AC_CHECK_FUNCS([preadv2 pwritev2])
  • libcfa/prelude/defines.hfa.in

    r7288c00 r22ddade  
    5050#undef CFA_HAVE_IORING_OP_REMOVE_BUFFER
    5151
     52#undef CFA_HAVE_IOSQE_FIXED_FILE
     53#undef CFA_HAVE_IOSQE_IO_DRAIN
     54#undef CFA_HAVE_IOSQE_ASYNC
     55#undef CFA_HAVE_IOSQE_IO_LINK
     56#undef CFA_HAVE_IOSQE_IO_HARDLINK
     57#undef CFA_HAVE_SPLICE_F_FD_IN_FIXED
     58
    5259#undef HAVE_PREADV2
    5360#undef HAVE_PWRITEV2
Note: See TracChangeset for help on using the changeset viewer.