Lines Matching refs:argv
117 void parse_args(int argc, char *argv[]) {
137 const char *progname = argv[0];
138 argc--; argv++;
140 if (0 == strcmp("-verbose", argv[0])) {
142 argc--; argv++;
143 } else if (0 == strcmp("-affinity", argv[0])) {
145 argc--; argv++;
146 } else if (0 == strcmp("-timeshare", argv[0])) {
148 argc--; argv++;
149 } else if (0 == strcmp("-threaded", argv[0])) {
151 argc--; argv++;
152 } else if (0 == strcmp("-oneway", argv[0])) {
154 argc--; argv++;
155 } else if (0 == strcmp("-type", argv[0])) {
158 if (0 == strcmp("trivial", argv[1])) {
160 } else if (0 == strcmp("inline", argv[1])) {
162 } else if (0 == strcmp("complex", argv[1])) {
166 argc -= 2; argv += 2;
167 } else if (0 == strcmp("-numints", argv[0])) {
170 num_ints = strtoul(argv[1], NULL, 0);
171 argc -= 2; argv += 2;
172 } else if (0 == strcmp("-count", argv[0])) {
175 num_msgs = strtoul(argv[1], NULL, 0);
176 argc -= 2; argv += 2;
177 } else if (0 == strcmp("-clients", argv[0])) {
180 num_clients = strtoul(argv[1], NULL, 0);
181 argc -= 2; argv += 2;
182 } else if (0 == strcmp("-servers", argv[0])) {
185 num_servers = strtoul(argv[1], NULL, 0);
186 argc -= 2; argv += 2;
187 } else if (0 == strcmp("-delay", argv[0])) {
190 client_delay = strtoul(argv[1], NULL, 0);
191 argc -= 2; argv += 2;
192 } else if (0 == strcmp("-spin", argv[0])) {
195 client_spin = strtoul(argv[1], NULL, 0);
196 argc -= 2; argv += 2;
197 } else if (0 == strcmp("-pages", argv[0])) {
200 client_pages = strtoul(argv[1], NULL, 0);
201 argc -= 2; argv += 2;
202 } else if (0 == strcmp("-select", argv[0])) {
204 argc--; argv++;
740 int main(int argc, char *argv[])
748 parse_args(argc, argv);