Changeset 69237cd
- Timestamp:
- Jul 8, 2020, 2:13:32 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 1c49dc5
- Parents:
- 47746a2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified benchmark/io/readv.cfa ¶
r47746a2 r69237cd 58 58 static struct option options[] = { 59 59 BENCH_OPT_LONG 60 {"bufsize", required_argument, 0, 'b'}, 61 {"userthread", no_argument , 0, 'u'}, 62 {"submitthread", no_argument , 0, 's'}, 63 {"submitlength", required_argument, 0, 'l'}, 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'}, 64 67 {0, 0, 0, 0} 65 68 }; 66 69 67 70 int idx = 0; 68 int opt = getopt_long(argc, argv, BENCH_OPT_SHORT "b:us l:", options, &idx);71 int opt = getopt_long(argc, argv, BENCH_OPT_SHORT "b:usekil:", options, &idx); 69 72 70 73 const char * arg = optarg ? optarg : ""; … … 88 91 flags |= CFA_CLUSTER_IO_POLLER_THREAD_SUBMITS; 89 92 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; 90 102 case 'l': 91 103 sublen = strtoul(arg, &end, 10); … … 103 115 fprintf( stderr, " -u, --userthread If set, cluster uses user-thread to poll I/O\n" ); 104 116 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" ); 105 121 exit(EXIT_FAILURE); 106 122 }
Note: See TracChangeset
for help on using the changeset viewer.