Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/io.cfa

    r185efe6 r9a7c88f  
    3636
    3737        static void * __io_poller( void * arg );
    38 
    39        // Weirdly, some systems that do support io_uring don't actually define these
    40        #ifdef __alpha__
    41        /*
    42        * alpha is the only exception, all other architectures
    43        * have common numbers for new system calls.
    44        */
    45        # ifndef __NR_io_uring_setup
    46        #  define __NR_io_uring_setup           535
    47        # endif
    48        # ifndef __NR_io_uring_enter
    49        #  define __NR_io_uring_enter           536
    50        # endif
    51        # ifndef __NR_io_uring_register
    52        #  define __NR_io_uring_register        537
    53        # endif
    54        #else /* !__alpha__ */
    55        # ifndef __NR_io_uring_setup
    56        #  define __NR_io_uring_setup           425
    57        # endif
    58        # ifndef __NR_io_uring_enter
    59        #  define __NR_io_uring_enter           426
    60        # endif
    61        # ifndef __NR_io_uring_register
    62        #  define __NR_io_uring_register        427
    63        # endif
    64        #endif
    65 
    6638
    6739//=============================================================================================
     
    216188
    217189                struct io_user_data * data = (struct io_user_data *)cqe.user_data;
    218                 // __cfaabi_bits_print_safe( STDERR_FILENO, "Performed reading io cqe %p, result %d for %p\n", data, cqe.res, data->thrd );
     190                __cfaabi_bits_print_safe( STDERR_FILENO, "Performed reading io cqe %p, result %d for %p\n", data, cqe.res, data->thrd );
    219191
    220192                data->result = cqe.res;
     
    324296        // Submit however, many entries need to be submitted
    325297        int ret = syscall( __NR_io_uring_enter, ring.fd, 1, 0, 0, 0p, 0);
    326         // __cfaabi_bits_print_safe( STDERR_FILENO, "Performed io_submit, returned %d\n", ret );
     298        __cfaabi_bits_print_safe( STDERR_FILENO, "Performed io_submit, returned %d\n", ret );
    327299        if( ret < 0 ) {
    328300                switch((int)errno) {
     
    380352        #define __submit_wait \
    381353                io_user_data data = { 0, active_thread() }; \
    382                 /*__cfaabi_bits_print_safe( STDERR_FILENO, "Preparing user data %p for %p\n", &data, data.thrd );*/ \
     354                __cfaabi_bits_print_safe( STDERR_FILENO, "Preparing user data %p for %p\n", &data, data.thrd ); \
    383355                sqe->user_data = (uint64_t)&data; \
    384356                __submit( ring, idx ); \
Note: See TracChangeset for help on using the changeset viewer.