Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/readv.cfa

    r69237cd rcb85603  
    5858                static struct option options[] = {
    5959                        BENCH_OPT_LONG
    60                         {"bufsize",       required_argument, 0, 'b'},
    61                         {"userthread",    no_argument      , 0, 'u'},
    62                         {"submitthread",  no_argument      , 0, 's'},
    63                         {"eagersubmit",   no_argument      , 0, 'e'},
    64                         {"kpollsubmit",   no_argument      , 0, 'k'},
    65                         {"kpollcomplete", no_argument      , 0, 'i'},
    66                         {"submitlength",  required_argument, 0, 'l'},
     60                        {"bufsize",      required_argument, 0, 'b'},
     61                        {"userthread",   no_argument      , 0, 'u'},
     62                        {"submitthread", no_argument      , 0, 's'},
     63                        {"submitlength", required_argument, 0, 'l'},
    6764                        {0, 0, 0, 0}
    6865                };
    6966
    7067                int idx = 0;
    71                 int opt = getopt_long(argc, argv, BENCH_OPT_SHORT "b:usekil:", options, &idx);
     68                int opt = getopt_long(argc, argv, BENCH_OPT_SHORT "b:usl:", options, &idx);
    7269
    7370                const char * arg = optarg ? optarg : "";
     
    9188                                flags |= CFA_CLUSTER_IO_POLLER_THREAD_SUBMITS;
    9289                                break;
    93                         case 'e':
    94                                 flags |= CFA_CLUSTER_IO_EAGER_SUBMITS;
    95                                 break;
    96                         case 'k':
    97                                 flags |= CFA_CLUSTER_IO_KERNEL_POLL_SUBMITS;
    98                                 break;
    99                         case 'i':
    100                                 flags |= CFA_CLUSTER_IO_KERNEL_POLL_COMPLETES;
    101                                 break;
    10290                        case 'l':
    10391                                sublen = strtoul(arg, &end, 10);
     
    115103                                fprintf( stderr, "  -u, --userthread         If set, cluster uses user-thread to poll I/O\n" );
    116104                                fprintf( stderr, "  -s, --submitthread       If set, cluster uses polling thread to submit I/O\n" );
    117                                 fprintf( stderr, "  -e, --eagersubmit        If set, cluster submits I/O eagerly but still aggregates submits\n" );
    118                                 fprintf( stderr, "  -k, --kpollsubmit        If set, cluster uses IORING_SETUP_SQPOLL\n" );
    119                                 fprintf( stderr, "  -i, --kpollcomplete      If set, cluster uses IORING_SETUP_IOPOLL\n" );
    120                                 fprintf( stderr, "  -l, --submitlength=LEN   Max number of submitions that can be submitted together\n" );
    121105                                exit(EXIT_FAILURE);
    122106                }
Note: See TracChangeset for help on using the changeset viewer.