/linux-5.19.10/tools/power/cpupower/bench/ |
D | main.c | 85 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-5.19.10/scripts/dtc/ |
D | dtc.c | 185 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 …]
|
/linux-5.19.10/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 591 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-5.19.10/samples/bpf/ |
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() 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 …]
|
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-5.19.10/tools/testing/selftests/dma/ |
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-5.19.10/drivers/scsi/aic7xxx/aicasm/ |
D | aicasm.c | 119 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-5.19.10/tools/testing/selftests/net/ |
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() 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 …]
|
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()
|
D | udpgso_bench_rx.c | 306 bind_addr = optarg; in parse_opts() 309 cfg_connect_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts() 315 cfg_expected_pkt_len = strtoul(optarg, NULL, 0); in parse_opts() 318 cfg_expected_pkt_nr = strtoul(optarg, NULL, 0); in parse_opts() 321 cfg_port = strtoul(optarg, NULL, 0); in parse_opts() 327 cfg_rcv_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts() 330 cfg_expected_gso_size = strtol(optarg, NULL, 0); in parse_opts()
|
/linux-5.19.10/tools/tracing/rtla/src/ |
D | timerlat_top.c | 367 auto_thresh = get_llong_from_str(optarg); in timerlat_top_parse_args() 380 retval = parse_cpu_list(optarg, ¶ms->monitored_cpus); in timerlat_top_parse_args() 383 params->cpus = optarg; in timerlat_top_parse_args() 389 params->duration = parse_seconds_duration(optarg); in timerlat_top_parse_args() 394 tevent = trace_event_alloc(optarg); in timerlat_top_parse_args() 409 params->stop_us = get_llong_from_str(optarg); in timerlat_top_parse_args() 415 params->timerlat_period_us = get_llong_from_str(optarg); in timerlat_top_parse_args() 420 retval = parse_prio(optarg, ¶ms->sched_param); in timerlat_top_parse_args() 429 params->print_stack = get_llong_from_str(optarg); in timerlat_top_parse_args() 432 params->stop_total_us = get_llong_from_str(optarg); in timerlat_top_parse_args() [all …]
|
D | osnoise_top.c | 336 params->stop_us = get_llong_from_str(optarg); in osnoise_top_parse_args() 346 retval = parse_cpu_list(optarg, ¶ms->monitored_cpus); in osnoise_top_parse_args() 349 params->cpus = optarg; in osnoise_top_parse_args() 355 params->duration = parse_seconds_duration(optarg); in osnoise_top_parse_args() 360 tevent = trace_event_alloc(optarg); in osnoise_top_parse_args() 376 params->period = get_llong_from_str(optarg); in osnoise_top_parse_args() 381 retval = parse_prio(optarg, ¶ms->sched_param); in osnoise_top_parse_args() 390 params->runtime = get_llong_from_str(optarg); in osnoise_top_parse_args() 395 params->stop_us = get_llong_from_str(optarg); in osnoise_top_parse_args() 398 params->stop_total_us = get_llong_from_str(optarg); in osnoise_top_parse_args() [all …]
|
D | osnoise_hist.c | 534 params->stop_us = get_llong_from_str(optarg); in osnoise_hist_parse_args() 544 params->bucket_size = get_llong_from_str(optarg); in osnoise_hist_parse_args() 549 retval = parse_cpu_list(optarg, ¶ms->monitored_cpus); in osnoise_hist_parse_args() 552 params->cpus = optarg; in osnoise_hist_parse_args() 558 params->duration = parse_seconds_duration(optarg); in osnoise_hist_parse_args() 563 tevent = trace_event_alloc(optarg); in osnoise_hist_parse_args() 575 params->entries = get_llong_from_str(optarg); in osnoise_hist_parse_args() 584 params->period = get_llong_from_str(optarg); in osnoise_hist_parse_args() 589 retval = parse_prio(optarg, ¶ms->sched_param); in osnoise_hist_parse_args() 595 params->runtime = get_llong_from_str(optarg); in osnoise_hist_parse_args() [all …]
|
D | timerlat_hist.c | 546 auto_thresh = get_llong_from_str(optarg); in timerlat_hist_parse_args() 559 retval = parse_cpu_list(optarg, ¶ms->monitored_cpus); 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() 573 params->duration = parse_seconds_duration(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() 605 params->timerlat_period_us = get_llong_from_str(optarg); in timerlat_hist_parse_args() 610 retval = parse_prio(optarg, ¶ms->sched_param); in timerlat_hist_parse_args() [all …]
|
/linux-5.19.10/tools/testing/selftests/ptp/ |
D | testptp.c | 197 device = optarg; in main() 200 extts = atoi(optarg); in main() 203 adjfreq = atoi(optarg); in main() 209 perout_phase = atoll(optarg); in main() 212 index = atoi(optarg); in main() 216 n_samples = atoi(optarg); in main() 222 cnt = sscanf(optarg, "%d,%d", &pin_index, &pin_func); in main() 229 adjns = atoi(optarg); in main() 232 perout = atoll(optarg); in main() 235 pps = atoi(optarg); in main() [all …]
|
/linux-5.19.10/arch/x86/tools/ |
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-5.19.10/tools/power/cpupower/utils/ |
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()
|
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-5.19.10/tools/testing/selftests/kvm/ |
D | memslot_modification_stress_test.c | 159 guest_modes_cmdline(optarg); in main() 162 p.memslot_modification_delay = strtoul(optarg, NULL, 0); in main() 167 guest_percpu_mem_size = parse_size(optarg); in main() 170 nr_vcpus = atoi(optarg); in main() 179 p.nr_memslot_modifications = atoi(optarg); in main()
|
/linux-5.19.10/tools/vm/ |
D | page-types.c | 1130 static void parse_addr_range(const char *optarg) in parse_addr_range() argument 1136 p = strchr(optarg, ','); in parse_addr_range() 1138 p = strchr(optarg, '+'); in parse_addr_range() 1140 if (p == optarg) { in parse_addr_range() 1144 offset = parse_number(optarg); in parse_addr_range() 1157 offset = parse_number(optarg); in parse_addr_range() 1213 static void parse_bits_mask(const char *optarg) in parse_bits_mask() argument 1219 p = strchr(optarg, '='); in parse_bits_mask() 1220 if (p == optarg) { in parse_bits_mask() 1224 mask = parse_flag_names(optarg, 0); in parse_bits_mask() [all …]
|
/linux-5.19.10/tools/testing/selftests/vm/ |
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-5.19.10/tools/spi/ |
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-5.19.10/tools/virtio/ringtest/ |
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-5.19.10/tools/pci/ |
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()
|
/linux-5.19.10/tools/power/acpi/tools/ec/ |
D | ec_access.c | 69 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()
|