Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/readv.cfa

    r1bcdeff r038be32  
    1818
    1919extern bool traceHeapOn();
    20 extern ssize_t async_preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags);
     20extern ssize_t cfa_preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags);
    2121
    2222int fd;
     
    3434
    3535        while(__atomic_load_n(&run, __ATOMIC_RELAXED)) {
    36                 async_preadv2(fd, &iov, 1, 0, 0);
     36                cfa_preadv2(fd, &iov, 1, 0, 0);
    3737                __atomic_fetch_add( &count, 1, __ATOMIC_SEQ_CST );
    3838        }
     
    4040
    4141int main(int argc, char * argv[]) {
     42        #if !defined(__CFA_NO_STATISTICS__)
     43                print_stats_at_exit( *active_cluster() );
     44        #endif
     45
    4246        double duration   = 5.0;
    4347        unsigned long int nthreads = 2;
     
    4650        printf("Setting local\n");
    4751        setlocale(LC_NUMERIC, "");
    48 
    4952
    5053        arg_loop:
Note: See TracChangeset for help on using the changeset viewer.