Home
last modified time | relevance | path

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

1234567

/tools/power/cpupower/bench/
A Dmain.c93 sscanf(optarg, "%li", &config->sleep); in main()
97 sscanf(optarg, "%li", &config->load); 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()
110 config->prio = string_to_prio(optarg); in main()
111 dprintf("user prio -> %s\n", optarg); in main()
122 sscanf(optarg, "%u", &config->cycles); in main()
123 dprintf("user cycles -> %s\n", optarg); in main()
126 sscanf(optarg, "%u", &config->rounds); in main()
[all …]
/tools/testing/rbtree/
A Dinterval_tree_test.c38 nnodes = strtoul(optarg, NULL, 0); in main()
40 perf_loops = strtoul(optarg, NULL, 0); in main()
42 nsearches = strtoul(optarg, NULL, 0); in main()
44 search_loops = strtoul(optarg, NULL, 0); in main()
48 max_endpoint = strtoul(optarg, NULL, 0); in main()
50 seed = strtoul(optarg, NULL, 0); in main()
A Drbtree_test.c35 nnodes = strtoul(optarg, NULL, 0); in main()
37 perf_loops = strtoul(optarg, NULL, 0); in main()
39 check_loops = strtoul(optarg, NULL, 0); in main()
41 seed = strtoul(optarg, NULL, 0); in main()
/tools/testing/selftests/dma/
A Ddma_map_benchmark.c40 threads = atoi(optarg); in main()
43 seconds = atoi(optarg); in main()
46 node = atoi(optarg); in main()
49 bits = atoi(optarg); in main()
52 dir = atoi(optarg); in main()
55 xdelay = atoi(optarg); in main()
58 granule = atoi(optarg); in main()
/tools/sched_ext/
A Dscx_qmap.c72 skel->rodata->slice_ns = strtoull(optarg, NULL, 0) * 1000; in main()
75 skel->bss->test_error_cnt = strtoul(optarg, NULL, 0); in main()
78 skel->rodata->stall_user_nth = strtoul(optarg, NULL, 0); in main()
81 skel->rodata->stall_kernel_nth = strtoul(optarg, NULL, 0); in main()
84 skel->rodata->dsp_inf_loop_after = strtoul(optarg, NULL, 0); in main()
87 skel->rodata->dsp_batch = strtoul(optarg, NULL, 0); in main()
96 skel->rodata->disallow_tgid = strtol(optarg, NULL, 0); in main()
101 skel->struct_ops.qmap_ops->exit_dump_len = strtoul(optarg, NULL, 0); in main()
/tools/tracing/rtla/src/
A Dosnoise_top.c393 params->cpus = optarg; in osnoise_top_parse_args()
397 if (!optarg) { in osnoise_top_parse_args()
400 } else if (*optarg == '=') { in osnoise_top_parse_args()
402 params->cgroup_name = ++optarg; in osnoise_top_parse_args()
414 tevent = trace_event_alloc(optarg); in osnoise_top_parse_args()
438 params->period = get_llong_from_str(optarg); in osnoise_top_parse_args()
463 if (optarg) { in osnoise_top_parse_args()
464 if (optarg[0] == '=') in osnoise_top_parse_args()
465 params->trace_output = &optarg[1]; in osnoise_top_parse_args()
467 params->trace_output = &optarg[0]; in osnoise_top_parse_args()
[all …]
A Dosnoise_hist.c558 params->cpus = optarg; in osnoise_hist_parse_args()
562 if (!optarg) { in osnoise_hist_parse_args()
565 } else if (*optarg == '=') { in osnoise_hist_parse_args()
567 params->cgroup_name = ++optarg; in osnoise_hist_parse_args()
579 tevent = trace_event_alloc(optarg); in osnoise_hist_parse_args()
608 params->period = get_llong_from_str(optarg); in osnoise_hist_parse_args()
633 if (optarg) { in osnoise_hist_parse_args()
634 if (optarg[0] == '=') in osnoise_hist_parse_args()
635 params->trace_output = &optarg[1]; in osnoise_hist_parse_args()
637 params->trace_output = &optarg[0]; in osnoise_hist_parse_args()
[all …]
A Dtimerlat_top.c649 params->cpus = optarg; in timerlat_top_parse_args()
653 if (!optarg) { in timerlat_top_parse_args()
656 } else if (*optarg == '=') { in timerlat_top_parse_args()
658 params->cgroup_name = ++optarg; in timerlat_top_parse_args()
670 tevent = trace_event_alloc(optarg); in timerlat_top_parse_args()
722 if (optarg) { in timerlat_top_parse_args()
723 if (optarg[0] == '=') in timerlat_top_parse_args()
724 trace_output = &optarg[1]; in timerlat_top_parse_args()
726 trace_output = &optarg[0]; in timerlat_top_parse_args()
785 err_msg("Invalid action %s\n", optarg); in timerlat_top_parse_args()
[all …]
A Dtimerlat_hist.c884 params->cpus = optarg; in timerlat_hist_parse_args()
888 if (!optarg) { in timerlat_hist_parse_args()
891 } else if (*optarg == '=') { in timerlat_hist_parse_args()
893 params->cgroup_name = ++optarg; in timerlat_hist_parse_args()
910 tevent = trace_event_alloc(optarg); in timerlat_hist_parse_args()
965 if (optarg) { in timerlat_hist_parse_args()
966 if (optarg[0] == '=') in timerlat_hist_parse_args()
967 trace_output = &optarg[1]; in timerlat_hist_parse_args()
969 trace_output = &optarg[0]; in timerlat_hist_parse_args()
1046 err_msg("Invalid action %s\n", optarg); in timerlat_hist_parse_args()
[all …]
/tools/testing/selftests/ptp/
A Dtestptp.c213 device = optarg; in main()
216 extts = atoi(optarg); in main()
219 edge = atoi(optarg); in main()
224 adjfreq = atoi(optarg); in main()
227 channel = atoi(optarg); in main()
236 index = atoi(optarg); in main()
253 adjns = atoi(optarg); in main()
259 perout = atoll(optarg); in main()
262 pps = atoi(optarg); in main()
274 adjtime = atoi(optarg); in main()
[all …]
/tools/include/nolibc/
A Dgetopt.h19 char *optarg; variable
42 optarg = argv[optind++]; in getopt()
81 optarg = 0; in getopt()
83 optarg = argv[optind++]; in getopt()
85 optarg += __optpos; in getopt()
/tools/power/cpupower/utils/
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()
A Dcpupower-set.c35 extern char *optarg; in cmd_set()
71 perf_bias = atoi(optarg); in cmd_set()
82 if (sscanf(optarg, "%29s", epp) != 1) { in cmd_set()
93 if (sscanf(optarg, "%19s", mode) != 1) { in cmd_set()
102 turbo_boost = atoi(optarg); in cmd_set()
A 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/net/
A Dcmsg_sender.c130 opt.size = atoi(optarg); in cs_parse_args()
139 if (*optarg == 'u') { in cs_parse_args()
141 } else if (*optarg == 'U') { in cs_parse_args()
144 } else if (*optarg == 'i' || *optarg == 'I') { in cs_parse_args()
146 } else if (*optarg == 'r') { in cs_parse_args()
158 opt.mark.val = atoi(optarg); in cs_parse_args()
162 opt.priority.val = atoi(optarg); in cs_parse_args()
165 opt.sockopt.mark = atoi(optarg); in cs_parse_args()
168 opt.num_pkt = atoi(optarg); in cs_parse_args()
172 opt.txtime.delay = atoi(optarg); in cs_parse_args()
[all …]
A Dio_uring_zerocopy_tx.c257 daddr = optarg; in parse_opts()
260 cfg_port = strtoul(optarg, NULL, 0); in parse_opts()
263 cfg_payload_len = strtoul(optarg, NULL, 0); in parse_opts()
266 cfg_runtime_ms = 200 + strtoul(optarg, NULL, 10) * 1000; in parse_opts()
269 cfg_nr_reqs = strtoul(optarg, NULL, 0); in parse_opts()
272 cfg_cork = strtol(optarg, NULL, 0); in parse_opts()
275 cfg_mode = strtol(optarg, NULL, 0); in parse_opts()
/tools/testing/selftests/kvm/
A Dmemslot_modification_stress_test.c152 guest_modes_cmdline(optarg); in main()
155 p.delay = atoi_non_negative("Delay", optarg); in main()
158 guest_percpu_mem_size = parse_size(optarg); in main()
161 nr_vcpus = atoi_positive("Number of vCPUs", optarg); in main()
170 p.nr_iterations = atoi_positive("Number of iterations", optarg); in main()
A Ddemand_paging_test.c287 guest_modes_cmdline(optarg); in main()
290 if (!strcmp("MISSING", optarg)) in main()
292 else if (!strcmp("MINOR", optarg)) in main()
300 p.uffd_delay = strtoul(optarg, NULL, 0); in main()
304 guest_percpu_mem_size = parse_size(optarg); in main()
307 p.src_type = parse_backing_src_type(optarg); in main()
310 nr_vcpus = atoi_positive("Number of vCPUs", optarg); in main()
315 cpulist = optarg; in main()
322 p.readers_per_uffd = atoi(optarg); in main()
A Ddirty_log_perf_test.c364 guest_percpu_mem_size = parse_size(optarg); in main()
367 pcpu_list = optarg; in main()
380 p.iterations = atoi_positive("Number of iterations", optarg); in main()
383 guest_modes_cmdline(optarg); in main()
392 p.phys_offset = strtoull(optarg, NULL, 0); in main()
395 guest_random_seed = atoi_positive("Random seed", optarg); in main()
398 p.backing_src = parse_backing_src_type(optarg); in main()
401 nr_vcpus = atoi_positive("Number of vCPUs", optarg); in main()
406 p.write_percent = atoi_non_negative("Write percentage", optarg); in main()
411 p.slots = atoi_positive("Number of slots", optarg); in main()
A Darch_timer.c201 test_args.nr_vcpus = atoi_positive("Number of vCPUs", optarg); in parse_args()
209 test_args.nr_iter = atoi_positive("Number of iterations", optarg); in parse_args()
212 test_args.timer_period_ms = atoi_positive("Periodicity", optarg); in parse_args()
215 test_args.migration_freq_ms = atoi_non_negative("Frequency", optarg); in parse_args()
218 test_args.timer_err_margin_us = atoi_non_negative("Error Margin", optarg); in parse_args()
221 test_args.counter_offset = strtol(optarg, NULL, 0); in parse_args()
/tools/spi/
A Dspidev_test.c252 device = optarg; in parse_opts()
255 speed = atoi(optarg); in parse_opts()
258 delay = atoi(optarg); in parse_opts()
261 word_delay = atoi(optarg); in parse_opts()
264 bits = atoi(optarg); in parse_opts()
267 input_file = optarg; in parse_opts()
270 output_file = optarg; in parse_opts()
309 input_tx = optarg; in parse_opts()
321 transfer_size = atoi(optarg); in parse_opts()
324 iterations = atoi(optarg); in parse_opts()
/tools/testing/selftests/mm/
A Dgup_test.c129 gup.gup_flags = strtol(optarg, 0, 0); in main()
132 nthreads = atoi(optarg); in main()
135 size = atoi(optarg) * MB; in main()
138 repeats = atoi(optarg); in main()
141 nr_pages = atoi(optarg); in main()
162 file = optarg; in main()
/tools/virtio/ringtest/
A 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/testing/selftests/futex/functional/
A Dfutex_numa.c171 contenders = atoi(optarg); in main()
174 threads = atoi(optarg); in main()
177 sleeps = atoi(optarg); in main()
180 nanos = atoi(optarg); in main()
184 if (optarg) in main()
185 fnode = atoi(optarg); in main()
/tools/power/acpi/tools/ec/
A 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()

Completed in 32 milliseconds

1234567