Home
last modified time | relevance | path

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

1234

/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/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.c194 extern char *optarg; in cmd_freq_set()
227 new_pol.min = string_to_frequency(optarg); in cmd_freq_set()
237 new_pol.max = string_to_frequency(optarg); in cmd_freq_set()
246 freq = string_to_frequency(optarg); in cmd_freq_set()
256 if ((strlen(optarg) < 3) || (strlen(optarg) > 18)) { in cmd_freq_set()
260 if ((sscanf(optarg, "%19s", gov)) != 1) { in cmd_freq_set()
Dcpupower-set.c31 extern char *optarg; in cmd_set()
55 perf_bias = atoi(optarg); in cmd_set()
/tools/testing/selftests/vm/
Dgup_benchmark.c43 size = atoi(optarg) * MB; in main()
46 repeats = atoi(optarg); in main()
49 nr_pages = atoi(optarg); in main()
67 file = optarg; in main()
/tools/pci/
Dpcitest.c159 test->device = optarg; in main()
162 test->barnum = atoi(optarg); in main()
170 test->msinum = atoi(optarg); in main()
175 test->msixnum = atoi(optarg); in main()
180 test->irqtype = atoi(optarg); in main()
198 test->size = strtoul(optarg, NULL, 0); in main()
/tools/testing/selftests/ptp/
Dtestptp.c189 device = optarg; in main()
192 extts = atoi(optarg); in main()
195 adjfreq = atoi(optarg); in main()
201 index = atoi(optarg); in main()
205 n_samples = atoi(optarg); in main()
211 cnt = sscanf(optarg, "%d,%d", &pin_index, &pin_func); in main()
218 perout = atoi(optarg); in main()
221 pps = atoi(optarg); in main()
230 adjtime = atoi(optarg); in main()
234 seconds = 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/spi/
Dspidev_test.c225 device = optarg; in parse_opts()
228 speed = atoi(optarg); in parse_opts()
231 delay = atoi(optarg); in parse_opts()
234 bits = atoi(optarg); in parse_opts()
237 input_file = optarg; in parse_opts()
240 output_file = optarg; in parse_opts()
270 input_tx = optarg; in parse_opts()
279 transfer_size = atoi(optarg); in parse_opts()
282 iterations = atoi(optarg); in parse_opts()
/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.c1111 static void parse_addr_range(const char *optarg) in parse_addr_range() argument
1117 p = strchr(optarg, ','); in parse_addr_range()
1119 p = strchr(optarg, '+'); in parse_addr_range()
1121 if (p == optarg) { in parse_addr_range()
1125 offset = parse_number(optarg); in parse_addr_range()
1138 offset = parse_number(optarg); in parse_addr_range()
1194 static void parse_bits_mask(const char *optarg) in parse_bits_mask() argument
1200 p = strchr(optarg, '='); in parse_bits_mask()
1201 if (p == optarg) { in parse_bits_mask()
1205 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()
Dtcp_mmap.c323 cfg_port = atoi(optarg); in main()
326 host = optarg; in main()
332 rcvbuf = atoi(optarg); in main()
335 sndbuf = atoi(optarg); in main()
341 mss = atoi(optarg); in main()
350 max_pacing_rate = atoi(optarg) ; in main()
Dso_txtime.c296 static int parse_io(const char *optarg, struct timed_send *array) in parse_io() argument
301 arg = strdup(optarg); in parse_io()
339 if (!strcmp(optarg, "tai")) in parse_opts()
341 else if (!strcmp(optarg, "monotonic") || in parse_opts()
342 !strcmp(optarg, "mono")) in parse_opts()
345 error(1, 0, "unknown clock id %s", optarg); in parse_opts()
/tools/testing/selftests/futex/functional/
Dfutex_wait_timeout.c56 timeout_ns = atoi(optarg); in main()
59 log_verbosity(atoi(optarg)); in main()
/tools/gpio/
Dgpio-event-mon.c154 loops = strtoul(optarg, NULL, 10); in main()
157 device_name = optarg; in main()
160 line = strtoul(optarg, NULL, 10); in main()
Dgpio-hammer.c132 loops = strtoul(optarg, NULL, 10); in main()
135 device_name = optarg; in main()
144 lines[i] = strtoul(optarg, NULL, 10); in main()
/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/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()
/tools/power/x86/intel-speed-select/
Disst-config.c1340 void parse_cpu_command(char *optarg) in parse_cpu_command() argument
1345 next = optarg; in parse_cpu_command()
1400 fprintf(stderr, "\"--cpu %s\" malformed\n", optarg); in parse_cpu_command()
1433 fact_bucket = atoi(optarg); in parse_cmd_args()
1439 tdp_level = atoi(optarg); in parse_cmd_args()
1445 sscanf(optarg, "0x%llx", &fact_trl); in parse_cmd_args()
1448 if (!strncmp(optarg, "sse", 3)) { in parse_cmd_args()
1450 } else if (!strncmp(optarg, "avx2", 4)) { in parse_cmd_args()
1452 } else if (!strncmp(optarg, "avx512", 4)) { in parse_cmd_args()
1461 current_clos = atoi(optarg); in parse_cmd_args()
[all …]
/tools/testing/selftests/android/ion/
Dionapp_export.c54 heapid = atoi(optarg); in main()
68 heap_size = atoi(optarg); in main()
/tools/thermal/tmon/
Dtmon.c239 strncpy(ctrl_cdev, optarg, CDEV_NAME_SIZE); in main()
246 ticktime = strtod(optarg, NULL); in main()
251 temp = strtod(optarg, NULL); in main()
272 target_thermal_zone = strtod(optarg, NULL); in main()
/tools/iio/
Diio_generic_buffer.c378 num_loops = strtoll(optarg, &dummy, 10); in main()
393 buf_len = strtoul(optarg, &dummy, 10); in main()
401 device_name = strdup(optarg); in main()
405 dev_num = strtoul(optarg, &dummy, 10); in main()
412 trigger_name = strdup(optarg); in main()
416 trig_num = strtoul(optarg, &dummy, 10); in main()
422 timedelay = strtoul(optarg, &dummy, 10); in main()

1234