Home
last modified time | relevance | path

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

1234567891011

/openbmc/linux/tools/power/cpupower/bench/
H A 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 …]
/openbmc/qemu/
H A Dqemu-edid.c60 outfile = fopen(optarg, "w"); in main()
62 fprintf(stderr, "open %s: %s\n", optarg, strerror(errno)); in main()
67 if (qemu_strtoui(optarg, NULL, 10, &info.prefx) < 0) { in main()
68 fprintf(stderr, "not a number: %s\n", optarg); in main()
73 if (qemu_strtoui(optarg, NULL, 10, &info.prefy) < 0) { in main()
74 fprintf(stderr, "not a number: %s\n", optarg); in main()
79 if (qemu_strtoui(optarg, NULL, 10, &info.maxx) < 0) { in main()
80 fprintf(stderr, "not a number: %s\n", optarg); in main()
85 if (qemu_strtoui(optarg, NULL, 10, &info.maxy) < 0) { in main()
86 fprintf(stderr, "not a number: %s\n", optarg); in main()
[all …]
H A Dqemu-io.c197 if (bdrv_parse_cache_mode(optarg, &flags, &writethrough) < 0) { in open_f()
198 error_report("Invalid cache option: %s", optarg); in open_f()
204 if (bdrv_parse_discard_flags(optarg, &flags) < 0) { in open_f()
205 error_report("Invalid discard option: %s", optarg); in open_f()
211 if (bdrv_parse_aio(optarg, &flags) < 0) { in open_f()
212 error_report("Invalid aio option: %s", optarg); in open_f()
223 if (!qemu_opts_parse_noisily(&empty_opts, optarg, false)) { in open_f()
557 if (bdrv_parse_discard_flags(optarg, &flags) < 0) { in main()
558 error_report("Invalid discard option: %s", optarg); in main()
563 format = optarg; in main()
[all …]
H A Dqemu-nbd.c638 optarg = (char *) "none"; in main()
646 if (bdrv_parse_cache_mode(optarg, &flags, &writethrough) == -1) { in main()
647 error_report("Invalid cache mode `%s'", optarg); in main()
657 if (bdrv_parse_aio(optarg, &flags) < 0) { in main()
658 error_report("Invalid aio mode '%s'", optarg); in main()
668 if (bdrv_parse_discard_flags(optarg, &flags) == -1) { in main()
669 error_report("Invalid discard mode `%s'", optarg); in main()
676 optarg, in main()
692 bindto = optarg; in main()
695 port = optarg; in main()
[all …]
/openbmc/u-boot/scripts/dtc/
H A Ddtc.c189 inform = optarg; in main()
192 outform = optarg; in main()
195 outname = optarg; in main()
198 outversion = strtol(optarg, NULL, 0); in main()
201 depname = optarg; in main()
204 reservenum = strtol(optarg, NULL, 0); in main()
207 minsize = strtol(optarg, NULL, 0); in main()
210 padsize = strtol(optarg, NULL, 0); in main()
213 alignsize = strtol(optarg, NULL, 0); in main()
225 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main()
[all …]
/openbmc/linux/scripts/dtc/
H A Ddtc.c185 inform = optarg; in main()
188 outform = optarg; in main()
191 outname = optarg; in main()
194 outversion = strtol(optarg, NULL, 0); in main()
197 depname = optarg; in main()
200 reservenum = strtoul(optarg, NULL, 0); in main()
203 minsize = strtol(optarg, NULL, 0); in main()
206 padsize = strtol(optarg, NULL, 0); in main()
209 alignsize = strtol(optarg, NULL, 0); in main()
221 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main()
[all …]
/openbmc/qemu/system/
H A Dvl.c1639 const char *optarg; in lookup_opt() local
1661 optarg = argv[optind++]; in lookup_opt()
1664 optarg = NULL; in lookup_opt()
1667 *poptarg = optarg; in lookup_opt()
2754 const char *optarg; in qemu_init() local
2811 popt = lookup_opt(argc, argv, &optarg, &optind); in qemu_init()
2836 popt = lookup_opt(argc, argv, &optarg, &optind); in qemu_init()
2844 cpu_option = optarg; in qemu_init()
2850 drive_add(IF_DEFAULT, popt->index - QEMU_OPTION_hda, optarg, in qemu_init()
2858 v = qobject_input_visitor_new_str(optarg, "driver", in qemu_init()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A 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 …]
/openbmc/ipmitool/lib/
H A Dipmi_main.c420 intfname = strdup(optarg); in ipmi_main()
450 if (str2int(optarg, &devnum) != 0) { in ipmi_main()
465 if (str2int(optarg, &port) != 0) { in ipmi_main()
478 if (str2int(optarg, &cipher_suite_id) != 0) { in ipmi_main()
501 hostname = strdup(optarg); in ipmi_main()
512 password = ipmi_password_file_read(optarg); in ipmi_main()
515 "from file %s", optarg); in ipmi_main()
541 kgkey = strdup(optarg); in ipmi_main()
567 kgkey = ipmi_parse_hex(optarg); in ipmi_main()
596 if (strlen(optarg) > 16) { in ipmi_main()
[all …]
/openbmc/linux/samples/bpf/
H A Dxdp_tx_iptunnel_user.c119 tmp_min_port = strtol(optarg, &end, 10); in parse_ports()
121 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports()
129 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports()
137 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports()
181 ifindex = if_nametoindex(optarg); in main()
183 ifindex = atoi(optarg); in main()
186 vip.family = parse_ipstr(optarg, vip.daddr.v6); in main()
191 if (parse_ports(optarg, &min_port, &max_port)) in main()
195 vip.protocol = atoi(optarg); in main()
204 family = parse_ipstr(optarg, v6); in main()
[all …]
/openbmc/obmc-ikvm/
H A Dikvm_args.cpp31 frameRate = (int)strtol(optarg, NULL, 0);
36 subsampling = (int)strtol(optarg, NULL, 0);
44 keyboardPath = std::string(optarg);
47 pointerPath = std::string(optarg);
50 udcName = std::string(optarg);
53 videoPath = std::string(optarg);
/openbmc/qemu/tests/bench/
H A Dqht-bench.c454 duration = atoi(optarg); in parse_args()
457 resize_delay = atol(optarg); in parse_args()
460 init_range = pow2ceil(atol(optarg)); in parse_args()
461 lookup_range = pow2ceil(atol(optarg)); in parse_args()
462 update_range = pow2ceil(atol(optarg)); in parse_args()
463 qht_n_elems = atol(optarg); in parse_args()
464 init_size = atol(optarg); in parse_args()
470 init_size = atol(optarg); in parse_args()
473 init_range = pow2ceil(atol(optarg)); in parse_args()
476 lookup_range = pow2ceil(atol(optarg)); in parse_args()
[all …]
/openbmc/linux/tools/testing/selftests/dma/
H A Ddma_map_benchmark.c41 threads = atoi(optarg); in main()
44 seconds = atoi(optarg); in main()
47 node = atoi(optarg); in main()
50 bits = atoi(optarg); in main()
53 dir = atoi(optarg); in main()
56 xdelay = atoi(optarg); in main()
59 granule = atoi(optarg); in main()
/openbmc/u-boot/tools/
H A Dmkimage.c149 params.addr = strtoull(optarg, &ptr, 16); in process_args()
152 params.cmdname, optarg); in process_args()
157 params.arch = genimg_get_arch_id(optarg); in process_args()
164 if (add_content(IH_TYPE_FLATDT, optarg)) { in process_args()
167 params.cmdname, optarg); in process_args()
172 params.comment = optarg; in process_args()
175 params.comp = genimg_get_comp_id(optarg); in process_args()
182 params.datafile = optarg; in process_args()
186 params.dtc = optarg; in process_args()
189 params.ep = strtoull(optarg, &ptr, 16); in process_args()
[all …]
/openbmc/qemu/storage-daemon/
H A Dqemu-storage-daemon.c188 optarg = NULL; in getopt_set_loc()
191 if (optarg) { in getopt_set_loc()
261 trace_opt_parse(optarg); in process_options()
273 v = qobject_input_visitor_new_str(optarg, "driver", in process_options()
287 optarg, true); in process_options()
314 v = qobject_input_visitor_new_str(optarg, "type", &error_fatal); in process_options()
327 v = qobject_input_visitor_new_str(optarg, "chardev", in process_options()
342 v = qobject_input_visitor_new_str(optarg, NULL, &error_fatal); in process_options()
351 user_creatable_process_cmdline(optarg); in process_options()
354 pid_file = optarg; in process_options()
/openbmc/linux/tools/tracing/rtla/src/
H A Dosnoise_top.c400 params->stop_us = get_llong_from_str(optarg); in osnoise_top_parse_args()
410 retval = parse_cpu_set(optarg, &params->monitored_cpus); in osnoise_top_parse_args()
413 params->cpus = optarg; in osnoise_top_parse_args()
417 if (!optarg) { in osnoise_top_parse_args()
420 } else if (*optarg == '=') { in osnoise_top_parse_args()
422 params->cgroup_name = ++optarg; in osnoise_top_parse_args()
429 params->duration = parse_seconds_duration(optarg); in osnoise_top_parse_args()
434 tevent = trace_event_alloc(optarg); in osnoise_top_parse_args()
451 retval = parse_cpu_set(optarg, &params->hk_cpu_set); in osnoise_top_parse_args()
458 params->period = get_llong_from_str(optarg); in osnoise_top_parse_args()
[all …]
H A Dtimerlat_top.c440 auto_thresh = get_llong_from_str(optarg); in timerlat_top_parse_args()
454 auto_thresh = get_llong_from_str(optarg); in timerlat_top_parse_args()
467 retval = parse_cpu_set(optarg, &params->monitored_cpus); in timerlat_top_parse_args()
470 params->cpus = optarg; in timerlat_top_parse_args()
474 if (!optarg) { in timerlat_top_parse_args()
477 } else if (*optarg == '=') { in timerlat_top_parse_args()
479 params->cgroup_name = ++optarg; in timerlat_top_parse_args()
486 params->duration = parse_seconds_duration(optarg); in timerlat_top_parse_args()
491 tevent = trace_event_alloc(optarg); in timerlat_top_parse_args()
507 retval = parse_cpu_set(optarg, &params->hk_cpu_set); in timerlat_top_parse_args()
[all …]
H A Dosnoise_hist.c550 params->stop_us = get_llong_from_str(optarg); in osnoise_hist_parse_args()
560 params->bucket_size = get_llong_from_str(optarg); in osnoise_hist_parse_args()
565 retval = parse_cpu_set(optarg, &params->monitored_cpus); in osnoise_hist_parse_args()
568 params->cpus = optarg; in osnoise_hist_parse_args()
572 if (!optarg) { in osnoise_hist_parse_args()
575 } else if (*optarg == '=') { in osnoise_hist_parse_args()
577 params->cgroup_name = ++optarg; in osnoise_hist_parse_args()
584 params->duration = parse_seconds_duration(optarg); in osnoise_hist_parse_args()
589 tevent = trace_event_alloc(optarg); in osnoise_hist_parse_args()
601 params->entries = get_llong_from_str(optarg); in osnoise_hist_parse_args()
[all …]
/openbmc/linux/drivers/scsi/aic7xxx/aicasm/
H A 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 …]
/openbmc/linux/tools/testing/selftests/net/
H A Dcmsg_sender.c121 opt.size = atoi(optarg); in cs_parse_args()
130 if (*optarg == 'u' || *optarg == 'U') { in cs_parse_args()
132 } else if (*optarg == 'i' || *optarg == 'I') { in cs_parse_args()
134 } else if (*optarg == 'r') { in cs_parse_args()
137 printf("Error: unknown protocol: %s\n", optarg); in cs_parse_args()
144 opt.mark.val = atoi(optarg); in cs_parse_args()
147 opt.sockopt.mark = atoi(optarg); in cs_parse_args()
151 opt.txtime.delay = atoi(optarg); in cs_parse_args()
158 opt.v6.dontfrag.val = atoi(optarg); in cs_parse_args()
161 opt.sockopt.dontfrag = atoi(optarg); in cs_parse_args()
[all …]
/openbmc/linux/tools/testing/selftests/ptp/
H A Dtestptp.c205 device = optarg; in main()
208 extts = atoi(optarg); in main()
211 adjfreq = atoi(optarg); in main()
217 perout_phase = atoll(optarg); in main()
220 index = atoi(optarg); in main()
224 n_samples = atoi(optarg); in main()
230 cnt = sscanf(optarg, "%d,%d", &pin_index, &pin_func); in main()
237 adjns = atoi(optarg); in main()
240 adjphase = atoi(optarg); in main()
243 perout = atoll(optarg); in main()
[all …]
/openbmc/phosphor-ipmi-flash/tools/
H A Dmain.cpp128 command = std::string{optarg}; in main()
137 interface = std::string{optarg}; in main()
145 imagePath = std::string{optarg}; in main()
148 signaturePath = std::string{optarg}; in main()
151 address = std::strtol(&optarg[0], &valueEnd, 0); in main()
166 length = std::strtol(&optarg[0], &valueEnd, 0); in main()
181 type = std::string{optarg}; in main()
187 host = std::string{optarg}; in main()
190 port = std::string{optarg}; in main()
/openbmc/linux/arch/x86/tools/
H A Dinsn_sanity.c177 if (strcmp("-", optarg) == 0) in parse_args()
180 input_file = fopen(optarg, "r"); in parse_args()
185 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args()
187 optarg = tmp + 1; in parse_args()
188 iter_start = strtoul(optarg, &tmp, 0); in parse_args()
190 if (*tmp != '\0' || tmp == optarg) in parse_args()
195 iter_end = strtoul(optarg, &tmp, 0); in parse_args()
196 if (*tmp != '\0' || tmp == optarg) in parse_args()
/openbmc/linux/tools/power/cpupower/utils/
H A Dcpuidle-set.c27 extern char *optarg; in cmd_idle_set()
51 strtol(optarg, &endptr, 10); in cmd_idle_set()
53 printf(_("Bad value: %s, Integer expected\n"), optarg); in cmd_idle_set()
56 idlestate = atoi(optarg); in cmd_idle_set()
66 latency = strtoull(optarg, &endptr, 10); in cmd_idle_set()
68 printf(_("Bad latency value: %s\n"), optarg); in cmd_idle_set()
/openbmc/linux/tools/testing/selftests/kvm/
H A Ddirty_log_perf_test.c367 guest_percpu_mem_size = parse_size(optarg); in main()
370 pcpu_list = optarg; in main()
383 p.iterations = atoi_positive("Number of iterations", optarg); in main()
386 guest_modes_cmdline(optarg); in main()
395 p.phys_offset = strtoull(optarg, NULL, 0); in main()
398 p.random_seed = atoi_positive("Random seed", optarg); in main()
401 p.backing_src = parse_backing_src_type(optarg); in main()
404 nr_vcpus = atoi_positive("Number of vCPUs", optarg); in main()
409 p.write_percent = atoi_non_negative("Write percentage", optarg); in main()
414 p.slots = atoi_positive("Number of slots", optarg); in main()

1234567891011