Home
last modified time | relevance | path

Searched refs:optarg (Results 1 – 25 of 108) sorted by relevance

12345

/tools/power/cpupower/bench/
Dmain.c85 config->output = prepare_output(optarg); in main()
90 dprintf("user output path -> %s\n", optarg); in main()
93 sscanf(optarg, "%li", &config->sleep); in main()
94 dprintf("user sleep time -> %s\n", optarg); in main()
97 sscanf(optarg, "%li", &config->load); in main()
98 dprintf("user load time -> %s\n", optarg); in main()
101 sscanf(optarg, "%u", &config->cpu); in main()
102 dprintf("user cpu -> %s\n", optarg); in main()
105 strncpy(config->governor, optarg, 14); in main()
106 dprintf("user governor -> %s\n", optarg); in main()
[all …]
/tools/testing/selftests/bpf/
Dtest_flow_dissector.c591 static void parse_addr(int family, void *addr, const char *optarg) in parse_addr() argument
595 ret = inet_pton(family, optarg, addr); in parse_addr()
602 static void parse_addr4(struct sockaddr_in *addr, const char *optarg) in parse_addr4() argument
604 parse_addr(AF_INET, &addr->sin_addr, optarg); in parse_addr4()
607 static void parse_addr6(struct sockaddr_in6 *addr, const char *optarg) in parse_addr6() argument
609 parse_addr(AF_INET6, &addr->sin6_addr, optarg); in parse_addr6()
612 static int parse_protocol_family(const char *filepath, const char *optarg) in parse_protocol_family() argument
614 if (!strcmp(optarg, "4")) in parse_protocol_family()
616 if (!strcmp(optarg, "6")) in parse_protocol_family()
632 parse_addr4(&out_daddr4, optarg); in parse_opts()
[all …]
Dflow_dissector_load.c80 cfg_path_name = optarg; in parse_opts()
86 cfg_section_name = optarg; in parse_opts()
/tools/testing/selftests/dma/
Ddma_map_benchmark.c64 threads = atoi(optarg); in main()
67 seconds = atoi(optarg); in main()
70 node = atoi(optarg); in main()
73 bits = atoi(optarg); in main()
76 dir = atoi(optarg); in main()
79 xdelay = atoi(optarg); in main()
82 granule = atoi(optarg); in main()
/tools/testing/selftests/ptp/
Dtestptp.c195 device = optarg; in main()
198 extts = atoi(optarg); in main()
201 adjfreq = atoi(optarg); in main()
207 perout_phase = atoll(optarg); in main()
210 index = atoi(optarg); in main()
214 n_samples = atoi(optarg); in main()
220 cnt = sscanf(optarg, "%d,%d", &pin_index, &pin_func); in main()
227 perout = atoll(optarg); in main()
230 pps = atoi(optarg); in main()
239 adjtime = atoi(optarg); in main()
[all …]
/tools/power/cpupower/utils/
Dcpuidle-set.c27 extern char *optarg; in cmd_idle_set()
50 idlestate = atoi(optarg); in cmd_idle_set()
59 idlestate = atoi(optarg); in cmd_idle_set()
68 latency = strtoull(optarg, &endptr, 10); in cmd_idle_set()
70 printf(_("Bad latency value: %s\n"), optarg); in cmd_idle_set()
Dcpufreq-set.c198 extern char *optarg; in cmd_freq_set()
231 new_pol.min = string_to_frequency(optarg); in cmd_freq_set()
241 new_pol.max = string_to_frequency(optarg); in cmd_freq_set()
250 freq = string_to_frequency(optarg); in cmd_freq_set()
260 if ((strlen(optarg) < 3) || (strlen(optarg) > 18)) { in cmd_freq_set()
264 if ((sscanf(optarg, "%19s", gov)) != 1) { in cmd_freq_set()
/tools/testing/selftests/vm/
Dgup_test.c121 gup.gup_flags = strtol(optarg, 0, 0); in main()
124 nthreads = atoi(optarg); in main()
127 size = atoi(optarg) * MB; in main()
130 repeats = atoi(optarg); in main()
133 nr_pages = atoi(optarg); in main()
154 file = optarg; in main()
Dwrite_to_hugetlbfs.c87 size = atoi(optarg); in main()
90 strncpy(path, optarg, sizeof(path)); in main()
93 if (atoi(optarg) >= MAX_METHOD) { in main()
98 method = atoi(optarg); in main()
/tools/testing/selftests/kvm/
Dmemslot_modification_stress_test.c183 guest_modes_cmdline(optarg); in main()
186 p.memslot_modification_delay = strtoul(optarg, NULL, 0); in main()
191 guest_percpu_mem_size = parse_size(optarg); in main()
194 nr_vcpus = atoi(optarg); in main()
203 p.nr_memslot_modifications = atoi(optarg); in main()
Ddirty_log_perf_test.c364 p.iterations = atoi(optarg); in main()
367 p.phys_offset = strtoull(optarg, NULL, 0); in main()
370 guest_modes_cmdline(optarg); in main()
373 guest_percpu_mem_size = parse_size(optarg); in main()
376 p.wr_fract = atoi(optarg); in main()
381 nr_vcpus = atoi(optarg); in main()
389 p.backing_src = parse_backing_src_type(optarg); in main()
392 p.slots = atoi(optarg); in main()
/tools/virtio/ringtest/
Dmain.c316 host_arg = optarg; in main()
319 guest_arg = optarg; in main()
322 ring_size = strtol(optarg, &endptr, 0); in main()
327 c = strtol(optarg, &endptr, 0); in main()
333 c = strtol(optarg, &endptr, 0); in main()
339 c = strtol(optarg, &endptr, 0); in main()
345 c = strtol(optarg, &endptr, 0); in main()
/tools/pci/
Dpcitest.c180 test->device = optarg; in main()
183 test->barnum = atoi(optarg); in main()
191 test->msinum = atoi(optarg); in main()
196 test->msixnum = atoi(optarg); in main()
201 test->irqtype = atoi(optarg); in main()
222 test->size = strtoul(optarg, NULL, 0); in main()
/tools/spi/
Dspidev_test.c236 device = optarg; in parse_opts()
239 speed = atoi(optarg); in parse_opts()
242 delay = atoi(optarg); in parse_opts()
245 bits = atoi(optarg); in parse_opts()
248 input_file = optarg; in parse_opts()
251 output_file = optarg; in parse_opts()
281 input_tx = optarg; in parse_opts()
293 transfer_size = atoi(optarg); in parse_opts()
296 iterations = atoi(optarg); in parse_opts()
/tools/testing/selftests/gpio/
Dgpio-mockup-cdev.c136 if (strcmp("pull-up", optarg) == 0) { in main()
139 } else if (strcmp("pull-down", optarg) == 0) { in main()
142 } else if (strcmp("disabled", optarg) == 0) { in main()
148 val = atoi(optarg); in main()
155 abiv = atoi(optarg); in main()
/tools/power/acpi/tools/ec/
Dec_access.c69 sleep_time = atoi(optarg); in parse_opts()
73 printf("Bad sleep time: %s\n", optarg); in parse_opts()
80 read_byte_offset = strtoul(optarg, NULL, 16); in parse_opts()
86 write_byte_offset = strtoul(optarg, NULL, 16); in parse_opts()
89 write_value = strtoul(optarg, NULL, 16); in parse_opts()
/tools/vm/
Dpage-types.c1113 static void parse_addr_range(const char *optarg) in parse_addr_range() argument
1119 p = strchr(optarg, ','); in parse_addr_range()
1121 p = strchr(optarg, '+'); in parse_addr_range()
1123 if (p == optarg) { in parse_addr_range()
1127 offset = parse_number(optarg); in parse_addr_range()
1140 offset = parse_number(optarg); in parse_addr_range()
1196 static void parse_bits_mask(const char *optarg) in parse_bits_mask() argument
1202 p = strchr(optarg, '='); in parse_bits_mask()
1203 if (p == optarg) { in parse_bits_mask()
1207 mask = parse_flag_names(optarg, 0); in parse_bits_mask()
[all …]
/tools/testing/selftests/net/
Dudpgso_bench_rx.c304 bind_addr = optarg; in parse_opts()
307 cfg_connect_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
313 cfg_expected_pkt_len = strtoul(optarg, NULL, 0); in parse_opts()
316 cfg_expected_pkt_nr = strtoul(optarg, NULL, 0); in parse_opts()
319 cfg_port = strtoul(optarg, NULL, 0); in parse_opts()
325 cfg_rcv_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
328 cfg_expected_gso_size = strtol(optarg, NULL, 0); in parse_opts()
Dso_txtime.c388 static int parse_io(const char *optarg, struct timed_send *array) in parse_io() argument
393 arg = strdup(optarg); in parse_io()
460 if (!strcmp(optarg, "tai")) in parse_opts()
462 else if (!strcmp(optarg, "monotonic") || in parse_opts()
463 !strcmp(optarg, "mono")) in parse_opts()
466 error(1, 0, "unknown clock id %s", optarg); in parse_opts()
469 saddr = optarg; in parse_opts()
472 daddr = optarg; in parse_opts()
478 cfg_start_time_ns = strtoll(optarg, NULL, 0); in parse_opts()
481 cfg_mark = strtol(optarg, NULL, 0); in parse_opts()
Dtcp_mmap.c393 cfg_port = atoi(optarg); in main()
396 host = optarg; in main()
402 rcvbuf = atoi(optarg); in main()
405 sndbuf = atoi(optarg); in main()
411 mss = atoi(optarg); in main()
420 max_pacing_rate = atoi(optarg) ; in main()
423 chunk_size = atol(optarg); in main()
426 map_align = atol(optarg); in main()
/tools/testing/selftests/filesystems/incfs/
Dincfs_stress.c69 options->test_dir = optarg; in parse_options()
73 options->rng_seed = strtol(optarg, NULL, 10); in parse_options()
77 options->num_reads = strtol(optarg, NULL, 10); in parse_options()
81 options->readers = strtol(optarg, NULL, 10); in parse_options()
85 options->size = strtol(optarg, NULL, 10); in parse_options()
89 options->timeout = strtol(optarg, NULL, 10); in parse_options()
/tools/usb/
Dtestusb.c398 device = optarg; in main()
401 usb_dir = optarg; in main()
408 if (parse_num(&param.iterations, optarg)) in main()
412 if (parse_num(&param.sglen, optarg)) in main()
422 if (parse_num(&param.length, optarg)) in main()
426 test = atoi (optarg); in main()
431 if (parse_num(&param.vary, optarg)) in main()
/tools/gpio/
Dgpio-event-mon.c181 loops = strtoul(optarg, NULL, 10); in main()
184 device_name = optarg; in main()
191 lines[num_lines] = strtoul(optarg, NULL, 10); in main()
195 debounce_period_us = strtoul(optarg, NULL, 10); in main()
Dgpio-hammer.c140 loops = strtoul(optarg, NULL, 10); in main()
143 device_name = optarg; in main()
152 lines[i] = strtoul(optarg, NULL, 10); in main()
/tools/testing/selftests/watchdog/
Dwatchdog-test.c108 file = optarg; in main()
169 ping_rate = strtoul(optarg, NULL, 0); in main()
175 flags = strtoul(optarg, NULL, 0); in main()
193 flags = strtoul(optarg, NULL, 0); in main()

12345