| /tools/lib/subcmd/ |
| D | parse-options.c | 20 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument 23 fprintf(stderr, " Error: switch `%c' %s", opt->short_name, reason); in opterror() 25 fprintf(stderr, " Error: option `no-%s' %s", opt->long_name, reason); in opterror() 27 fprintf(stderr, " Error: option `%s' %s", opt->long_name, reason); in opterror() 38 static void optwarning(const struct option *opt, const char *reason, int flags) in optwarning() argument 41 fprintf(stderr, " Warning: switch `%c' %s", opt->short_name, reason); in optwarning() 43 fprintf(stderr, " Warning: option `no-%s' %s", opt->long_name, reason); in optwarning() 45 fprintf(stderr, " Warning: option `%s' %s", opt->long_name, reason); in optwarning() 48 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument 53 if (p->opt) { in get_arg() [all …]
|
| /tools/testing/selftests/net/ |
| D | cmsg_sender.c | 75 } opt = { variable 121 opt.silent_send = true; in cs_parse_args() 124 opt.size = atoi(optarg); in cs_parse_args() 127 opt.sock.family = AF_INET; in cs_parse_args() 130 opt.sock.family = AF_INET6; in cs_parse_args() 134 opt.sock.proto = IPPROTO_UDP; in cs_parse_args() 136 opt.sock.proto = IPPROTO_ICMP; in cs_parse_args() 138 opt.sock.type = SOCK_RAW; in cs_parse_args() 145 opt.sockopt.priority = atoi(optarg); in cs_parse_args() 148 opt.mark.ena = true; in cs_parse_args() [all …]
|
| D | reuseport_bpf.c | 155 int i, opt; in build_recv_group() local 162 opt = 1; in build_recv_group() 163 if (setsockopt(fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_recv_group() 164 sizeof(opt))) in build_recv_group() 174 opt = 4; in build_recv_group() 175 if (setsockopt(fd[i], SOL_TCP, TCP_FASTOPEN, &opt, in build_recv_group() 176 sizeof(opt))) in build_recv_group() 309 int fd1, fd2, opt; in test_extra_filter() local 319 opt = 1; in test_extra_filter() 320 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| D | setget_sockopt.c | 25 int opt; member 38 { .opt = SO_REUSEADDR, .flip = 1, }, 39 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, }, 40 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, }, 41 { .opt = SO_KEEPALIVE, .flip = 1, }, 42 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, }, 43 { .opt = SO_REUSEPORT, .flip = 1, }, 44 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, }, 45 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, }, 46 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, }, [all …]
|
| D | test_tcp_hdr_options.c | 117 static int parse_test_option(struct bpf_test_option *opt, const __u8 *start) in parse_test_option() argument 119 opt->flags = *start++; in parse_test_option() 121 if (TEST_OPTION_FLAGS(opt->flags, OPTION_MAX_DELACK_MS)) in parse_test_option() 122 opt->max_delack_ms = *start++; in parse_test_option() 124 if (TEST_OPTION_FLAGS(opt->flags, OPTION_RAND)) in parse_test_option() 125 opt->rand = *start++; in parse_test_option() 191 struct bpf_test_option opt; in write_synack_opt() local 199 opt = passive_synack_out; in write_synack_opt() 201 SET_OPTION_FLAGS(opt.flags, OPTION_RESEND); in write_synack_opt() 203 return store_option(skops, &opt); in write_synack_opt() [all …]
|
| /tools/perf/tests/shell/base_probe/ |
| D | test_invalid_options.sh | 29 for opt in '-a' '-d' '-L' '-V'; do 30 ! $CMD_PERF probe $opt 2> $LOGS_DIR/invalid_options_missing_argument$opt.err 33 …s_found.pl "Error: switch .* requires a value" < $LOGS_DIR/invalid_options_missing_argument$opt.err 36 print_results $PERF_EXIT_CODE $CHECK_EXIT_CODE "missing argument for $opt" 44 for opt in '-F' '-l'; do 45 $CMD_PERF probe -F > /dev/null 2> $LOGS_DIR/invalid_options_unnecessary_argument$opt.err 48 test ! -s $LOGS_DIR/invalid_options_unnecessary_argument$opt.err 51 print_results $PERF_EXIT_CODE $CHECK_EXIT_CODE "unnecessary argument for $opt" 60 for opt in '-a xxx -d xxx' '-a xxx -L foo' '-a xxx -V foo' '-a xxx -l' '-a xxx -F' \ 63 ! $CMD_PERF probe $opt > /dev/null 2> $LOGS_DIR/aux.log [all …]
|
| /tools/testing/selftests/bpf/ |
| D | test_sockmap.c | 160 void (*tester)(int cg_fd, struct sockmap_options *opt); 423 struct sockmap_options *opt) in msg_loop_sendpage() argument 425 bool drop = opt->drop_expected; in msg_loop_sendpage() 631 struct sockmap_options *opt) in msg_loop() argument 635 bool drop = opt->drop_expected; in msg_loop() 636 bool data = opt->data_test; in msg_loop() 639 if (!tx && opt->check_recved_len) in msg_loop() 660 if (opt->tx_wait_mem && errno == EACCES) { in msg_loop() 700 if (!opt->sendpage) in msg_loop() 737 if (opt->verbose) in msg_loop() [all …]
|
| /tools/testing/selftests/powerpc/dexcr/ |
| D | chdexcr.c | 41 printf(" --%-6s / --no-%-6s : %s\n", aspect->opt, aspect->opt, aspect->desc); in help() 45 static const struct dexcr_aspect *opt_to_aspect(const char *opt) in opt_to_aspect() argument 48 if (aspects[i].prctl != -1 && !strcmp(aspects[i].opt, opt)) in opt_to_aspect() 57 const char *opt = NULL; in apply_option() local 70 opt = &option[strlen(clear_prefix)]; in apply_option() 73 opt = &option[strlen(set_prefix)]; in apply_option() 77 if (!opt || !*opt) in apply_option() 80 aspect = opt_to_aspect(opt); in apply_option()
|
| D | dexcr.h | 32 const char *opt; /* Option name for chdexcr */ member 41 .opt = "sbhe", 48 .opt = "ibrtpd", 55 .opt = "srapd", 62 .opt = "nphie", 69 .opt = "phie",
|
| /tools/testing/ktest/ |
| D | compare-ktest-sample.pl | 10 $opt{$1} = 1; 23 foreach $opt (keys %opt) { 24 if (!defined($samp{$opt})) { 25 print "opt = $opt\n"; 30 if (!defined($opt{$samp})) {
|
| D | ktest.pl | 20 my %opt; 583 if (defined($opt{"LOG_FILE"})) { 589 if (defined($opt{"LOG_FILE"})) { 654 return if (defined($opt{$config})); 774 my $rtype = $opt{"REBOOT_TYPE"}; 777 if (!defined($opt{"GRUB_MENU"})) { 872 if (defined($opt{$lvalue})) { 883 $opt{$lvalue} = $prvalue; 949 defined($opt{$2}); 1261 $opt{"NUM_TESTS"} = $test_num; [all …]
|
| /tools/power/cpupower/bench/ |
| D | parse.c | 162 char opt[16], val[32], *line = NULL; in prepare_config() local 182 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config() 185 dprintf("parsing: %s -> %s\n", opt, val); in prepare_config() 187 if (strcmp("sleep", opt) == 0) in prepare_config() 190 else if (strcmp("load", opt) == 0) in prepare_config() 193 else if (strcmp("load_step", opt) == 0) in prepare_config() 196 else if (strcmp("sleep_step", opt) == 0) in prepare_config() 199 else if (strcmp("cycles", opt) == 0) in prepare_config() 202 else if (strcmp("rounds", opt) == 0) in prepare_config() 205 else if (strcmp("verbose", opt) == 0) in prepare_config() [all …]
|
| /tools/perf/util/ |
| D | parse-sublevel-options.c | 12 struct sublevel_option *opt = opts; in parse_one_sublevel_option() local 25 while (opt->name) { in parse_one_sublevel_option() 26 if (!strcmp(s, opt->name)) in parse_one_sublevel_option() 28 opt++; in parse_one_sublevel_option() 31 if (!opt->name) { in parse_one_sublevel_option() 40 *opt->value_ptr = v; in parse_one_sublevel_option()
|
| D | parse-regs-options.c | 13 __parse_regs(const struct option *opt, const char *str, int unset, bool intr) in __parse_regs() argument 15 uint64_t *mode = (uint64_t *)opt->value; in __parse_regs() 86 parse_user_regs(const struct option *opt, const char *str, int unset) in parse_user_regs() argument 88 return __parse_regs(opt, str, unset, false); in parse_user_regs() 92 parse_intr_regs(const struct option *opt, const char *str, int unset) in parse_intr_regs() argument 94 return __parse_regs(opt, str, unset, true); in parse_intr_regs()
|
| D | parse-regs-options.h | 5 int parse_user_regs(const struct option *opt, const char *str, int unset); 6 int parse_intr_regs(const struct option *opt, const char *str, int unset);
|
| D | pfm.h | 14 int parse_libpfm_events_option(const struct option *opt, const char *str, 23 const struct option *opt __maybe_unused, in parse_libpfm_events_option()
|
| /tools/perf/Documentation/ |
| D | perf-daemon.txt | 118 base=/opt/perfdata 135 [603349:daemon] base: /opt/perfdata 145 [603349:daemon] base: /opt/perfdata 146 output: /opt/perfdata/output 147 lock: /opt/perfdata/lock 150 base: /opt/perfdata/session-cycles 151 output: /opt/perfdata/session-cycles/output 152 control: /opt/perfdata/session-cycles/control 153 ack: /opt/perfdata/session-cycles/ack 156 base: /opt/perfdata/session-sched [all …]
|
| /tools/perf/tests/ |
| D | pfm.c | 30 struct option opt; in test__pfm_events() local 71 opt.value = evlist; in test__pfm_events() 72 parse_libpfm_events_option(&opt, in test__pfm_events() 91 struct option opt; in test__pfm_group() local 156 opt.value = evlist; in test__pfm_group() 157 parse_libpfm_events_option(&opt, in test__pfm_group()
|
| /tools/testing/selftests/media_tests/ |
| D | media_device_open.c | 41 int opt; in main() local 54 while ((opt = getopt(argc, argv, "d:")) != -1) { in main() 55 switch (opt) { in main()
|
| D | media_device_test.c | 46 int opt; in main() local 59 while ((opt = getopt(argc, argv, "d:")) != -1) { in main() 60 switch (opt) { in main()
|
| /tools/testing/selftests/powerpc/signal/ |
| D | sigfuz.c | 290 int opt; in main() local 292 while ((opt = getopt(argc, argv, "bamxt:fi:h")) != -1) { in main() 293 if (opt == 'b') { in main() 296 } else if (opt == 'a') { in main() 299 } else if (opt == 'm') { in main() 302 } else if (opt == 'x') { in main() 305 } else if (opt == 't') { in main() 308 } else if (opt == 'f') { in main() 312 } else if (opt == 'i') { in main() 315 } else if (opt == 'h') { in main()
|
| /tools/usb/usbip/src/ |
| D | usbip_detach.c | 103 int opt; in usbip_detach() local 107 opt = getopt_long(argc, argv, "p:", opts, NULL); in usbip_detach() 109 if (opt == -1) in usbip_detach() 112 switch (opt) { in usbip_detach()
|
| D | usbip_unbind.c | 107 int opt; in usbip_unbind() local 111 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_unbind() 113 if (opt == -1) in usbip_unbind() 116 switch (opt) { in usbip_unbind()
|
| /tools/sched_ext/ |
| D | scx_simple.c | 65 __u32 opt; in main() local 74 while ((opt = getopt(argc, argv, "fvh")) != -1) { in main() 75 switch (opt) { in main() 84 return opt != 'h'; in main()
|
| /tools/perf/scripts/python/ |
| D | compaction-times.py | 274 for i, opt in enumerate(sys.argv[1:]): 275 if opt[0] == "-": 276 if opt == "-h": 279 elif opt == "-p": 281 elif opt == "-pv": 283 elif opt == '-u': 285 elif opt == "-t": 287 elif opt == "-m": 289 elif opt == "-fs": 291 elif opt == "-ms": [all …]
|