/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 …]
|
D | run-command.c | 215 int opt) in prepare_run_command_v_opt() argument 219 cmd->no_stdin = opt & RUN_COMMAND_NO_STDIN ? 1 : 0; in prepare_run_command_v_opt() 220 cmd->exec_cmd = opt & RUN_EXEC_CMD ? 1 : 0; in prepare_run_command_v_opt() 221 cmd->stdout_to_stderr = opt & RUN_COMMAND_STDOUT_TO_STDERR ? 1 : 0; in prepare_run_command_v_opt() 224 int run_command_v_opt(const char **argv, int opt) in run_command_v_opt() argument 227 prepare_run_command_v_opt(&cmd, argv, opt); in run_command_v_opt()
|
/tools/testing/selftests/net/ |
D | cmsg_sender.c | 73 } opt = { variable 118 opt.silent_send = true; in cs_parse_args() 121 opt.size = atoi(optarg); in cs_parse_args() 124 opt.sock.family = AF_INET; in cs_parse_args() 127 opt.sock.family = AF_INET6; in cs_parse_args() 131 opt.sock.proto = IPPROTO_UDP; in cs_parse_args() 133 opt.sock.proto = IPPROTO_ICMP; in cs_parse_args() 135 opt.sock.type = SOCK_RAW; in cs_parse_args() 143 opt.mark.ena = true; in cs_parse_args() 144 opt.mark.val = atoi(optarg); 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 | 28 int opt; member 41 { .opt = SO_REUSEADDR, .flip = 1, }, 42 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, }, 43 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, }, 44 { .opt = SO_KEEPALIVE, .flip = 1, }, 45 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, }, 46 { .opt = SO_REUSEPORT, .flip = 1, }, 47 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, }, 48 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, }, 49 { .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 …]
|
D | bind4_prog.c | 79 static __inline int misc_opts(struct bpf_sock_addr *ctx, int opt) in misc_opts() argument 84 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)) || in misc_opts() 87 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &new, sizeof(new))) in misc_opts() 89 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &tmp, sizeof(tmp)) || in misc_opts() 92 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old))) in misc_opts()
|
/tools/testing/selftests/bpf/ |
D | test_sockmap.c | 153 void (*tester)(int cg_fd, struct sockmap_options *opt); 416 struct sockmap_options *opt) in msg_loop_sendpage() argument 418 bool drop = opt->drop_expected; in msg_loop_sendpage() 553 struct sockmap_options *opt) in msg_loop() argument 557 bool drop = opt->drop_expected; in msg_loop() 558 bool data = opt->data_test; in msg_loop() 561 if (!tx && opt->check_recved_len) in msg_loop() 582 if (opt->tx_wait_mem && errno == EACCES) { in msg_loop() 645 if (opt->verbose) in msg_loop() 652 if (opt->tx_wait_mem) { in msg_loop() [all …]
|
/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; 581 if (defined($opt{"LOG_FILE"})) { 587 if (defined($opt{"LOG_FILE"})) { 652 return if (defined($opt{$config})); 765 my $rtype = $opt{"REBOOT_TYPE"}; 768 if (!defined($opt{"GRUB_MENU"})) { 859 if (defined($opt{$lvalue})) { 870 $opt{$lvalue} = $prvalue; 936 defined($opt{$2}); 1248 $opt{"NUM_TESTS"} = $test_num; [all …]
|
/tools/power/cpupower/bench/ |
D | parse.c | 158 char opt[16], val[32], *line = NULL; in prepare_config() local 178 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config() 181 dprintf("parsing: %s -> %s\n", opt, val); in prepare_config() 183 if (strcmp("sleep", opt) == 0) in prepare_config() 186 else if (strcmp("load", opt) == 0) in prepare_config() 189 else if (strcmp("load_step", opt) == 0) in prepare_config() 192 else if (strcmp("sleep_step", opt) == 0) in prepare_config() 195 else if (strcmp("cycles", opt) == 0) in prepare_config() 198 else if (strcmp("rounds", opt) == 0) in prepare_config() 201 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() 90 parse_user_regs(const struct option *opt, const char *str, int unset) in parse_user_regs() argument 92 return __parse_regs(opt, str, unset, false); in parse_user_regs() 96 parse_intr_regs(const struct option *opt, const char *str, int unset) in parse_intr_regs() argument 98 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/usb/usbip/src/ |
D | usbip_detach.c | 102 int opt; in usbip_detach() local 106 opt = getopt_long(argc, argv, "p:", opts, NULL); in usbip_detach() 108 if (opt == -1) in usbip_detach() 111 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()
|
D | usbip_bind.c | 189 int opt; in usbip_bind() local 193 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_bind() 195 if (opt == -1) in usbip_bind() 198 switch (opt) { in usbip_bind()
|
/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/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 …]
|
/tools/testing/selftests/timers/ |
D | set-2038.c | 77 int opt, dangerous = 0; in main() local 81 while ((opt = getopt(argc, argv, "d")) != -1) { in main() 82 switch (opt) { in main()
|