Home
last modified time | relevance | path

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

12345

/Linux-v5.4/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 …]
/Linux-v5.4/scripts/dtc/
Ddtc.c183 inform = optarg; in main()
186 outform = optarg; in main()
189 outname = optarg; in main()
192 outversion = strtol(optarg, NULL, 0); in main()
195 depname = optarg; in main()
198 reservenum = strtol(optarg, NULL, 0); in main()
201 minsize = strtol(optarg, NULL, 0); in main()
204 padsize = strtol(optarg, NULL, 0); in main()
207 alignsize = strtol(optarg, NULL, 0); in main()
219 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/samples/bpf/
Dxdp_tx_iptunnel_user.c120 tmp_min_port = strtol(optarg, &end, 10); in parse_ports()
122 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports()
130 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports()
138 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports()
185 ifindex = if_nametoindex(optarg); in main()
187 ifindex = atoi(optarg); in main()
190 vip.family = parse_ipstr(optarg, vip.daddr.v6); in main()
195 if (parse_ports(optarg, &min_port, &max_port)) in main()
199 vip.protocol = atoi(optarg); in main()
208 family = parse_ipstr(optarg, v6); in main()
[all …]
Dtest_cgrp2_array_pin.c39 pinned_file = optarg; in main()
42 pinned_file = optarg; in main()
46 cg2 = optarg; in main()
Dfds_example.c148 file = optarg; in main()
161 key = strtoul(optarg, NULL, 0); in main()
165 value = strtoul(optarg, NULL, 0); in main()
173 object = optarg; in main()
/Linux-v5.4/drivers/scsi/aic7xxx/aicasm/
Daicasm.c119 extern char *optarg; in main()
150 if (strcmp(optarg, "s") == 0) { in main()
153 } else if (strcmp(optarg, "p") == 0) { in main()
167 stock_include_file = optarg; in main()
171 if ((listfile = fopen(optarg, "w")) == NULL) { in main()
172 perror(optarg); in main()
175 listfilename = optarg; in main()
179 if (strcmp(optarg, "ostdinc")) { in main()
181 appname, ch, optarg); in main()
187 if ((ofile = fopen(optarg, "w")) == NULL) { in main()
[all …]
/Linux-v5.4/arch/x86/tools/
Dinsn_sanity.c181 if (strcmp("-", optarg) == 0) in parse_args()
184 input_file = fopen(optarg, "r"); in parse_args()
189 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args()
191 optarg = tmp + 1; in parse_args()
192 iter_start = strtoul(optarg, &tmp, 0); in parse_args()
194 if (*tmp != '\0' || tmp == optarg) in parse_args()
199 iter_end = strtoul(optarg, &tmp, 0); in parse_args()
200 if (*tmp != '\0' || tmp == optarg) in parse_args()
/Linux-v5.4/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()
/Linux-v5.4/tools/power/cpupower/utils/
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()
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()
/Linux-v5.4/tools/pci/
Dpcitest.c158 test->device = optarg; in main()
161 test->barnum = atoi(optarg); in main()
169 test->msinum = atoi(optarg); in main()
174 test->msixnum = atoi(optarg); in main()
179 test->irqtype = atoi(optarg); in main()
197 test->size = strtoul(optarg, NULL, 0); in main()
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/tools/testing/selftests/net/
Dudpgso_bench_rx.c305 setup_sockaddr(cfg_family, optarg, &cfg_bind_addr); in parse_opts()
308 cfg_connect_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
314 cfg_expected_pkt_len = strtoul(optarg, NULL, 0); in parse_opts()
317 cfg_expected_pkt_nr = strtoul(optarg, NULL, 0); in parse_opts()
320 cfg_port = strtoul(optarg, NULL, 0); in parse_opts()
326 cfg_rcv_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts()
329 cfg_expected_gso_size = strtol(optarg, NULL, 0); in parse_opts()
Dso_txtime.c207 static int parse_io(const char *optarg, struct timed_send *array) in parse_io() argument
212 arg = strdup(optarg); in parse_io()
250 if (!strcmp(optarg, "tai")) in parse_opts()
252 else if (!strcmp(optarg, "monotonic") || in parse_opts()
253 !strcmp(optarg, "mono")) in parse_opts()
256 error(1, 0, "unknown clock id %s", optarg); 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()
/Linux-v5.4/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()
/Linux-v5.4/tools/usb/
Dtestusb.c396 device = optarg; in main()
399 usb_dir = optarg; in main()
406 if (parse_num(&param.iterations, optarg)) in main()
410 if (parse_num(&param.sglen, optarg)) in main()
420 if (parse_num(&param.length, optarg)) in main()
424 test = atoi (optarg); in main()
429 if (parse_num(&param.vary, optarg)) in main()
/Linux-v5.4/tools/power/x86/intel-speed-select/
Disst-config.c1337 void parse_cpu_command(char *optarg) in parse_cpu_command() argument
1342 next = optarg; in parse_cpu_command()
1397 fprintf(stderr, "\"--cpu %s\" malformed\n", optarg); in parse_cpu_command()
1430 fact_bucket = atoi(optarg); in parse_cmd_args()
1436 tdp_level = atoi(optarg); in parse_cmd_args()
1442 sscanf(optarg, "0x%llx", &fact_trl); in parse_cmd_args()
1445 if (!strncmp(optarg, "sse", 3)) { in parse_cmd_args()
1447 } else if (!strncmp(optarg, "avx2", 4)) { in parse_cmd_args()
1449 } else if (!strncmp(optarg, "avx512", 4)) { in parse_cmd_args()
1458 current_clos = atoi(optarg); in parse_cmd_args()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/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()
138 lines[i] = strtoul(optarg, NULL, 10); in main()

12345