| /linux-6.15/tools/power/cpupower/bench/ |
| H A D | main.c | 93 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 …]
|
| /linux-6.15/scripts/dtc/ |
| H A D | dtc.c | 187 inform = optarg; in main() 190 outform = optarg; in main() 193 outname = optarg; in main() 199 depname = optarg; in main() 205 minsize = strtol(optarg, NULL, 0); in main() 208 padsize = strtol(optarg, NULL, 0); in main() 226 srcfile_add_search_path(optarg); in main() 231 if (streq(optarg, "legacy")) in main() 233 else if (streq(optarg, "epapr")) in main() 235 else if (streq(optarg, "both")) in main() [all …]
|
| /linux-6.15/tools/tracing/rtla/src/ |
| H A D | osnoise_top.c | 393 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 …]
|
| H A D | osnoise_hist.c | 558 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 …]
|
| H A D | timerlat_top.c | 607 auto_thresh = get_llong_from_str(optarg); in timerlat_top_parse_args() 621 auto_thresh = get_llong_from_str(optarg); in timerlat_top_parse_args() 637 params->cpus = optarg; in timerlat_top_parse_args() 641 if (!optarg) { in timerlat_top_parse_args() 644 } else if (*optarg == '=') { in timerlat_top_parse_args() 646 params->cgroup_name = ++optarg; in timerlat_top_parse_args() 658 tevent = trace_event_alloc(optarg); in timerlat_top_parse_args() 710 if (optarg) { in timerlat_top_parse_args() 711 if (optarg[0] == '=') in timerlat_top_parse_args() 712 params->trace_output = &optarg[1]; in timerlat_top_parse_args() [all …]
|
| H A D | timerlat_hist.c | 856 auto_thresh = get_llong_from_str(optarg); in timerlat_hist_parse_args() 873 params->cpus = optarg; in timerlat_hist_parse_args() 877 if (!optarg) { in timerlat_hist_parse_args() 880 } else if (*optarg == '=') { in timerlat_hist_parse_args() 882 params->cgroup_name = ++optarg; in timerlat_hist_parse_args() 899 tevent = trace_event_alloc(optarg); in timerlat_hist_parse_args() 954 if (optarg) { in timerlat_hist_parse_args() 955 if (optarg[0] == '=') in timerlat_hist_parse_args() 956 params->trace_output = &optarg[1]; in timerlat_hist_parse_args() 958 params->trace_output = &optarg[0]; in timerlat_hist_parse_args() [all …]
|
| /linux-6.15/samples/bpf/ |
| H A D | xdp_tx_iptunnel_user.c | 119 tmp_min_port = strtol(optarg, &end, 10); in parse_ports() 121 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() 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() 216 if (!ether_aton_r(optarg, in main() 219 optarg); in main() [all …]
|
| /linux-6.15/tools/testing/rbtree/ |
| H A D | interval_tree_test.c | 38 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()
|
| H A D | rbtree_test.c | 35 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()
|
| /linux-6.15/tools/testing/selftests/ptp/ |
| H A D | testptp.c | 211 device = optarg; in main() 214 extts = atoi(optarg); in main() 217 adjfreq = atoi(optarg); in main() 220 channel = atoi(optarg); in main() 229 index = atoi(optarg); in main() 246 adjns = atoi(optarg); in main() 252 perout = atoll(optarg); in main() 255 pps = atoi(optarg); in main() 267 adjtime = atoi(optarg); in main() 271 seconds = atoi(optarg); in main() [all …]
|
| /linux-6.15/tools/testing/selftests/dma/ |
| H A D | dma_map_benchmark.c | 40 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()
|
| /linux-6.15/tools/sched_ext/ |
| H A D | scx_qmap.c | 72 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()
|
| /linux-6.15/drivers/scsi/aic7xxx/aicasm/ |
| H A D | aicasm.c | 119 extern char *optarg; in main() 172 perror(optarg); in main() 175 listfilename = optarg; in main() 181 appname, ch, optarg); in main() 188 perror(optarg); in main() 191 ofilename = optarg; in main() 196 perror(optarg); in main() 203 perror(optarg); in main() 206 regfilename = optarg; in main() 233 perror(optarg); in main() [all …]
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | cmsg_sender.c | 130 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 …]
|
| /linux-6.15/tools/power/cpupower/utils/ |
| H A D | cpuidle-set.c | 27 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()
|
| H A D | cpupower-set.c | 35 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()
|
| H A D | cpufreq-set.c | 198 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()
|
| /linux-6.15/arch/x86/tools/ |
| H A D | insn_sanity.c | 177 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()
|
| /linux-6.15/tools/testing/selftests/kvm/ |
| H A D | demand_paging_test.c | 287 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()
|
| H A D | dirty_log_perf_test.c | 364 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()
|
| H A D | memslot_modification_stress_test.c | 152 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()
|
| H A D | arch_timer.c | 206 test_args.nr_vcpus = atoi_positive("Number of vCPUs", optarg); in parse_args() 214 test_args.nr_iter = atoi_positive("Number of iterations", optarg); in parse_args() 217 test_args.timer_period_ms = atoi_positive("Periodicity", optarg); in parse_args() 220 test_args.migration_freq_ms = atoi_non_negative("Frequency", optarg); in parse_args() 223 test_args.timer_err_margin_us = atoi_non_negative("Error Margin", optarg); in parse_args() 226 test_args.counter_offset = strtol(optarg, NULL, 0); in parse_args()
|
| /linux-6.15/tools/spi/ |
| H A D | spidev_test.c | 252 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()
|
| /linux-6.15/tools/mm/ |
| H A D | page-types.c | 1132 p = strchr(optarg, ','); in parse_addr_range() 1134 p = strchr(optarg, '+'); in parse_addr_range() 1136 if (p == optarg) { in parse_addr_range() 1215 p = strchr(optarg, '='); in parse_bits_mask() 1216 if (p == optarg) { in parse_bits_mask() 1283 parse_pid(optarg); in main() 1286 parse_file(optarg); in main() 1289 parse_addr_range(optarg); in main() 1292 parse_bits_mask(optarg); in main() 1295 parse_cgroup(optarg); in main() [all …]
|
| /linux-6.15/tools/testing/selftests/mm/ |
| H A D | gup_test.c | 129 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()
|