Changeset 2fab24e3 for libcfa/src
- Timestamp:
- Jan 21, 2021, 1:45:27 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a6b587f
- Parents:
- f3e87af
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified libcfa/src/concurrency/io.cfa ¶
rf3e87af r2fab24e3 41 41 #include "io/types.hfa" 42 42 43 static const char * opcodes[] = {43 __attribute__((unused)) static const char * opcodes[] = { 44 44 "OP_NOP", 45 45 "OP_READV", … … 173 173 __cfadbg_print_safe(io_core, "Kernel I/O : IO_URING enter %d %u %u\n", ring.fd, to_submit, flags); 174 174 ret = syscall( __NR_io_uring_enter, ring.fd, to_submit, 0, flags, (sigset_t *)0p, _NSIG / 8); 175 __cfadbg_print_safe(io_core, "Kernel I/O : IO_URING %d returned %d\n", ring.fd, ret); 176 175 177 if( ret < 0 ) { 176 178 switch((int)errno) { 177 179 case EAGAIN: 178 180 case EINTR: 181 case EBUSY: 179 182 ret = -1; 180 183 break; … … 465 468 sqe->flags, 466 469 sqe->ioprio, 467 sqe->off,468 sqe->addr,470 (void*)sqe->off, 471 (void*)sqe->addr, 469 472 sqe->len, 470 473 sqe->accept_flags, … … 491 494 } 492 495 else if( ring.eager_submits ) { 493 __ u32 picked = __submit_to_ready_array( ring, idx, mask );496 __attribute__((unused)) __u32 picked = __submit_to_ready_array( ring, idx, mask ); 494 497 495 498 #if defined(LEADER_LOCK) … … 629 632 sqe->flags, 630 633 sqe->ioprio, 631 sqe->off,632 sqe->addr,634 (void*)sqe->off, 635 (void*)sqe->addr, 633 636 sqe->len, 634 637 sqe->accept_flags, … … 642 645 __atomic_thread_fence( __ATOMIC_SEQ_CST ); 643 646 // Release the consumed SQEs 647 644 648 __release_consumed_submission( ring ); 645 649 // ring.submit_q.sqes[idx].user_data = 3ul64; -
TabularUnified libcfa/src/concurrency/io/setup.cfa ¶
rf3e87af r2fab24e3 549 549 int ret = syscall( __NR_io_uring_register, ctx.thrd.ring->fd, IORING_REGISTER_FILES, files, count ); 550 550 if( ret < 0 ) { 551 abort( "KERNEL ERROR: IO_URING SYSCALL- (%d) %s\n", (int)errno, strerror(errno) );551 abort( "KERNEL ERROR: IO_URING REGISTER - (%d) %s\n", (int)errno, strerror(errno) ); 552 552 } 553 553
Note: See TracChangeset
for help on using the changeset viewer.