/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/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() 637 if (opt->verbose) in msg_loop() 669 int chunk_sz = opt->sendpage ? in msg_loop() 713 static int sendmsg_test(struct sockmap_options *opt) in sendmsg_test() argument 718 int iov_count = opt->iov_count; in sendmsg_test() [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"})) { 851 if (defined($opt{$lvalue})) { 862 $opt{$lvalue} = $prvalue; 928 defined($opt{$2}); 1240 $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 | 13 int parse_libpfm_events_option(const struct option *opt, const char *str, 22 const struct option *opt __maybe_unused, in parse_libpfm_events_option()
|
/tools/testing/selftests/bpf/progs/ |
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 | 81 static __inline int misc_opts(struct bpf_sock_addr *ctx, int opt) in misc_opts() argument 86 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old)) || in misc_opts() 89 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &new, sizeof(new))) in misc_opts() 91 if (bpf_getsockopt(ctx, SOL_SOCKET, opt, &tmp, sizeof(tmp)) || in misc_opts() 94 if (bpf_setsockopt(ctx, SOL_SOCKET, opt, &old, sizeof(old))) in misc_opts()
|
/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 | 50 struct option opt; in test__pfm_events() local 91 opt.value = evlist; in test__pfm_events() 92 parse_libpfm_events_option(&opt, in test__pfm_events() 110 struct option opt; in test__pfm_group() local 175 opt.value = evlist; in test__pfm_group() 176 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()
|
/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()
|
D | video_device_test.c | 42 int opt; in main() local 56 while ((opt = getopt(argc, argv, "d:")) != -1) { in main() 57 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/net/ |
D | reuseport_bpf.c | 157 int i, opt; in build_recv_group() local 164 opt = 1; in build_recv_group() 165 if (setsockopt(fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_recv_group() 166 sizeof(opt))) in build_recv_group() 176 opt = 4; in build_recv_group() 177 if (setsockopt(fd[i], SOL_TCP, TCP_FASTOPEN, &opt, in build_recv_group() 178 sizeof(opt))) in build_recv_group() 311 int fd1, fd2, opt; in test_extra_filter() local 321 opt = 1; in test_extra_filter() 322 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() [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()
|
/tools/perf/util/c++/ |
D | clang.cpp | 39 createCompilerInvocation(llvm::opt::ArgStringList CFlags, StringRef& Path, in createCompilerInvocation() 42 llvm::opt::ArgStringList CCArgs { in createCompilerInvocation() 68 getModuleFromSource(llvm::opt::ArgStringList CFlags, in getModuleFromSource() 100 getModuleFromSource(llvm::opt::ArgStringList CFlags, in getModuleFromSource() 121 getModuleFromSource(llvm::opt::ArgStringList CFlags, StringRef Path) in getModuleFromSource() 197 llvm::opt::ArgStringList CFlags; in perf_clang__compile_bpf()
|
D | clang.h | 16 getModuleFromSource(opt::ArgStringList CFlags, 20 getModuleFromSource(opt::ArgStringList CFlags,
|