/linux-6.3-rc2/tools/power/cpupower/bench/ |
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.3-rc2/scripts/dtc/ |
A D | dtc.c | 185 inform = optarg; in main() 188 outform = optarg; in main() 191 outname = optarg; in main() 197 depname = optarg; in main() 203 minsize = strtol(optarg, NULL, 0); in main() 206 padsize = strtol(optarg, NULL, 0); in main() 224 srcfile_add_search_path(optarg); in main() 229 if (streq(optarg, "legacy")) in main() 231 else if (streq(optarg, "epapr")) in main() 233 else if (streq(optarg, "both")) in main() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_flow_dissector.c | 614 if (!strcmp(optarg, "4")) in parse_protocol_family() 616 if (!strcmp(optarg, "6")) in parse_protocol_family() 640 parse_addr4(&in_daddr4, optarg); in parse_opts() 642 parse_addr6(&in_daddr6, optarg); in parse_opts() 645 if (!strcmp(optarg, "gre")) in parse_opts() 647 else if (!strcmp(optarg, "gue")) in parse_opts() 649 else if (!strcmp(optarg, "bare")) in parse_opts() 651 else if (!strcmp(optarg, "none")) in parse_opts() 666 if (!strcmp(optarg, "4")) in parse_opts() 668 else if (!strcmp(optarg, "6")) in parse_opts() [all …]
|
/linux-6.3-rc2/samples/bpf/ |
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 …]
|
A D | xdp_redirect_cpu_user.c | 389 if (strlen(optarg) >= IF_NAMESIZE) { in main() 394 ifindex = if_nametoindex(optarg); in main() 396 ifindex = strtoul(optarg, NULL, 0); in main() 408 interval = strtoul(optarg, NULL, 0); in main() 418 prog_name = optarg; in main() 431 mprog_filename = optarg; in main() 434 mprog_name = optarg; in main() 437 redir_interface = optarg; in main() 441 redir_map = optarg; in main() 445 add_cpu = strtoul(optarg, NULL, 0); in main() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/dma/ |
A D | dma_map_benchmark.c | 41 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()
|
/linux-6.3-rc2/drivers/scsi/aic7xxx/aicasm/ |
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.3-rc2/tools/testing/selftests/net/ |
A D | cmsg_sender.c | 121 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() 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() 165 opt.v6.tclass.val = atoi(optarg); in cs_parse_args() 168 opt.sockopt.tclass = atoi(optarg); in cs_parse_args() 172 opt.v6.hlimit.val = atoi(optarg); in cs_parse_args() [all …]
|
A D | so_txtime.c | 388 static int parse_io(const char *optarg, struct timed_send *array) in parse_io() argument 393 arg = strdup(optarg); in parse_io() 460 if (!strcmp(optarg, "tai")) in parse_opts() 462 else if (!strcmp(optarg, "monotonic") || in parse_opts() 463 !strcmp(optarg, "mono")) in parse_opts() 466 error(1, 0, "unknown clock id %s", optarg); in parse_opts() 469 saddr = optarg; in parse_opts() 472 daddr = optarg; in parse_opts() 478 cfg_start_time_ns = strtoll(optarg, NULL, 0); in parse_opts() 481 cfg_mark = strtol(optarg, NULL, 0); in parse_opts()
|
/linux-6.3-rc2/tools/testing/selftests/ptp/ |
A D | testptp.c | 197 device = optarg; in main() 200 extts = atoi(optarg); in main() 203 adjfreq = atoi(optarg); in main() 212 index = atoi(optarg); in main() 216 n_samples = atoi(optarg); in main() 229 adjns = atoi(optarg); in main() 232 perout = atoll(optarg); in main() 235 pps = atoi(optarg); in main() 244 adjtime = atoi(optarg); in main() 248 seconds = atoi(optarg); in main() [all …]
|
/linux-6.3-rc2/tools/tracing/rtla/src/ |
A D | timerlat_top.c | 380 auto_thresh = get_llong_from_str(optarg); in timerlat_top_parse_args() 396 params->cpus = optarg; in timerlat_top_parse_args() 402 params->duration = parse_seconds_duration(optarg); in timerlat_top_parse_args() 407 tevent = trace_event_alloc(optarg); in timerlat_top_parse_args() 422 params->stop_us = get_llong_from_str(optarg); in timerlat_top_parse_args() 442 params->print_stack = get_llong_from_str(optarg); in timerlat_top_parse_args() 448 if (optarg) in timerlat_top_parse_args() 450 params->trace_output = &optarg[1]; in timerlat_top_parse_args() 459 err_msg("Error adding trigger %s\n", optarg); in timerlat_top_parse_args() 470 err_msg("Error adding filter %s\n", optarg); in timerlat_top_parse_args() [all …]
|
A D | osnoise_top.c | 380 params->stop_us = get_llong_from_str(optarg); in osnoise_top_parse_args() 393 params->cpus = optarg; in osnoise_top_parse_args() 404 tevent = trace_event_alloc(optarg); in osnoise_top_parse_args() 420 params->period = get_llong_from_str(optarg); in osnoise_top_parse_args() 434 params->runtime = get_llong_from_str(optarg); in osnoise_top_parse_args() 439 params->stop_us = get_llong_from_str(optarg); in osnoise_top_parse_args() 445 if (optarg) in osnoise_top_parse_args() 447 params->trace_output = &optarg[1]; in osnoise_top_parse_args() 452 params->threshold = get_llong_from_str(optarg); in osnoise_top_parse_args() 458 err_msg("Error adding trigger %s\n", optarg); in osnoise_top_parse_args() [all …]
|
A D | osnoise_hist.c | 537 params->stop_us = get_llong_from_str(optarg); in osnoise_hist_parse_args() 555 params->cpus = optarg; in osnoise_hist_parse_args() 566 tevent = trace_event_alloc(optarg); in osnoise_hist_parse_args() 578 params->entries = get_llong_from_str(optarg); in osnoise_hist_parse_args() 587 params->period = get_llong_from_str(optarg); in osnoise_hist_parse_args() 598 params->runtime = get_llong_from_str(optarg); in osnoise_hist_parse_args() 603 params->stop_us = get_llong_from_str(optarg); in osnoise_hist_parse_args() 609 params->threshold = get_llong_from_str(optarg); in osnoise_hist_parse_args() 612 if (optarg) in osnoise_hist_parse_args() 614 params->trace_output = &optarg[1]; in osnoise_hist_parse_args() [all …]
|
A D | timerlat_hist.c | 546 auto_thresh = get_llong_from_str(optarg); in timerlat_hist_parse_args() 562 params->cpus = optarg; in timerlat_hist_parse_args() 565 params->bucket_size = get_llong_from_str(optarg); in timerlat_hist_parse_args() 578 tevent = trace_event_alloc(optarg); in timerlat_hist_parse_args() 590 params->entries = get_llong_from_str(optarg); in timerlat_hist_parse_args() 599 params->stop_us = get_llong_from_str(optarg); in timerlat_hist_parse_args() 616 params->print_stack = get_llong_from_str(optarg); in timerlat_hist_parse_args() 622 if (optarg) in timerlat_hist_parse_args() 624 params->trace_output = &optarg[1]; in timerlat_hist_parse_args() 650 err_msg("Error adding trigger %s\n", optarg); in timerlat_hist_parse_args() [all …]
|
/linux-6.3-rc2/arch/x86/tools/ |
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.3-rc2/tools/testing/selftests/kvm/ |
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()
|
A D | demand_paging_test.c | 242 guest_modes_cmdline(optarg); in main() 245 if (!strcmp("MISSING", optarg)) in main() 247 else if (!strcmp("MINOR", optarg)) in main() 252 p.uffd_delay = strtoul(optarg, NULL, 0); in main() 256 guest_percpu_mem_size = parse_size(optarg); in main() 259 p.src_type = parse_backing_src_type(optarg); in main() 262 nr_vcpus = atoi_positive("Number of vCPUs", optarg); in main()
|
A D | dirty_log_perf_test.c | 447 guest_percpu_mem_size = parse_size(optarg); in main() 450 pcpu_list = optarg; in main() 463 p.iterations = atoi_positive("Number of iterations", optarg); in main() 466 guest_modes_cmdline(optarg); in main() 475 p.phys_offset = strtoull(optarg, NULL, 0); in main() 478 p.random_seed = atoi_positive("Random seed", optarg); in main() 481 p.backing_src = parse_backing_src_type(optarg); in main() 484 nr_vcpus = atoi_positive("Number of vCPUs", optarg); in main() 489 p.write_percent = atoi_non_negative("Write percentage", optarg); in main() 494 p.slots = atoi_positive("Number of slots", optarg); in main()
|
/linux-6.3-rc2/tools/power/cpupower/utils/ |
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()
|
A D | cpuidle-set.c | 27 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-6.3-rc2/tools/mm/ |
A D | page-types.c | 1136 p = strchr(optarg, ','); in parse_addr_range() 1138 p = strchr(optarg, '+'); in parse_addr_range() 1140 if (p == optarg) { in parse_addr_range() 1219 p = strchr(optarg, '='); in parse_bits_mask() 1220 if (p == optarg) { in parse_bits_mask() 1287 parse_pid(optarg); in main() 1290 parse_file(optarg); in main() 1293 parse_addr_range(optarg); in main() 1296 parse_bits_mask(optarg); in main() 1299 parse_cgroup(optarg); in main() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | gup_test.c | 127 gup.gup_flags = strtol(optarg, 0, 0); in main() 130 nthreads = atoi(optarg); in main() 133 size = atoi(optarg) * MB; in main() 136 repeats = atoi(optarg); in main() 139 nr_pages = atoi(optarg); in main() 160 file = optarg; in main()
|
/linux-6.3-rc2/tools/spi/ |
A D | spidev_test.c | 236 device = optarg; in parse_opts() 239 speed = atoi(optarg); in parse_opts() 242 delay = atoi(optarg); in parse_opts() 245 bits = atoi(optarg); in parse_opts() 248 input_file = optarg; in parse_opts() 251 output_file = optarg; in parse_opts() 281 input_tx = optarg; in parse_opts() 293 transfer_size = atoi(optarg); in parse_opts() 296 iterations = atoi(optarg); in parse_opts()
|
/linux-6.3-rc2/tools/virtio/ringtest/ |
A D | main.c | 316 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-6.3-rc2/tools/pci/ |
A D | pcitest.c | 180 test->device = optarg; in main() 183 test->barnum = atoi(optarg); in main() 191 test->msinum = atoi(optarg); in main() 196 test->msixnum = atoi(optarg); in main() 201 test->irqtype = atoi(optarg); in main() 222 test->size = strtoul(optarg, NULL, 0); in main()
|