/tools/perf/util/ |
D | parse-options.c | 12 static int opterror(const struct option *opt, const char *reason, int flags) in opterror() argument 15 return error("switch `%c' %s", opt->short_name, reason); in opterror() 17 return error("option `no-%s' %s", opt->long_name, reason); in opterror() 18 return error("option `%s' %s", opt->long_name, reason); in opterror() 21 static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, in get_arg() argument 24 if (p->opt) { in get_arg() 25 *arg = p->opt; in get_arg() 26 p->opt = NULL; in get_arg() 27 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 || in get_arg() 29 *arg = (const char *)opt->defval; in get_arg() [all …]
|
D | run-command.c | 205 int opt) in prepare_run_command_v_opt() argument 209 cmd->no_stdin = opt & RUN_COMMAND_NO_STDIN ? 1 : 0; in prepare_run_command_v_opt() 210 cmd->perf_cmd = opt & RUN_PERF_CMD ? 1 : 0; in prepare_run_command_v_opt() 211 cmd->stdout_to_stderr = opt & RUN_COMMAND_STDOUT_TO_STDERR ? 1 : 0; in prepare_run_command_v_opt() 214 int run_command_v_opt(const char **argv, int opt) in run_command_v_opt() argument 217 prepare_run_command_v_opt(&cmd, argv, opt); in run_command_v_opt()
|
D | parse-regs-options.c | 8 parse_regs(const struct option *opt, const char *str, int unset) in parse_regs() argument 10 uint64_t *mode = (uint64_t *)opt->value; in parse_regs()
|
D | parse-branch-options.c | 35 parse_branch_stack(const struct option *opt, const char *str, int unset) in parse_branch_stack() argument 42 uint64_t *mode = (uint64_t *)opt->value; in parse_branch_stack()
|
D | parse-branch-options.h | 4 int parse_branch_stack(const struct option *opt, const char *str, int unset);
|
D | parse-regs-options.h | 4 int parse_regs(const struct option *opt, const char *str, int unset);
|
D | parse-events.h | 31 extern int parse_events_option(const struct option *opt, const char *str, 36 extern int parse_filter(const struct option *opt, const char *str, int unset); 37 extern int exclude_perf(const struct option *opt, const char *arg, int unset);
|
D | cgroup.h | 17 extern int parse_cgroups(const struct option *opt, const char *str, int unset);
|
/tools/testing/ktest/ |
D | compare-ktest-sample.pl | 9 $opt{$1} = 1; 22 foreach $opt (keys %opt) { 23 if (!defined($samp{$opt})) { 24 print "opt = $opt\n"; 29 if (!defined($opt{$samp})) {
|
D | ktest.pl | 18 my %opt; 463 if (defined($opt{"LOG_FILE"})) { 464 open(OUT, ">> $opt{LOG_FILE}") or die "Can't write to $opt{LOG_FILE}"; 471 if (defined($opt{"LOG_FILE"})) { 536 return if (defined($opt{$config})); 649 my $rtype = $opt{"REBOOT_TYPE"}; 652 if (!defined($opt{"GRUB_MENU"})) { 743 if (defined($opt{$lvalue})) { 754 $opt{$lvalue} = $prvalue; 820 defined($opt{$2}); [all …]
|
/tools/power/cpupower/bench/ |
D | parse.c | 161 char opt[16], val[32], *line = NULL; in prepare_config() local 181 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config() 184 dprintf("parsing: %s -> %s\n", opt, val); in prepare_config() 186 if (strcmp("sleep", opt) == 0) in prepare_config() 189 else if (strcmp("load", opt) == 0) in prepare_config() 192 else if (strcmp("load_step", opt) == 0) in prepare_config() 195 else if (strcmp("sleep_step", opt) == 0) in prepare_config() 198 else if (strcmp("cycles", opt) == 0) in prepare_config() 201 else if (strcmp("rounds", opt) == 0) in prepare_config() 204 else if (strcmp("verbose", opt) == 0) in prepare_config() [all …]
|
/tools/usb/usbip/src/ |
D | usbip_detach.c | 93 int opt; in usbip_detach() local 97 opt = getopt_long(argc, argv, "p:", opts, NULL); in usbip_detach() 99 if (opt == -1) in usbip_detach() 102 switch (opt) { in usbip_detach()
|
D | usbip_unbind.c | 119 int opt; in usbip_unbind() local 123 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_unbind() 125 if (opt == -1) in usbip_unbind() 128 switch (opt) { in usbip_unbind()
|
D | usbip_bind.c | 201 int opt; in usbip_bind() local 205 opt = getopt_long(argc, argv, "b:", opts, NULL); in usbip_bind() 207 if (opt == -1) in usbip_bind() 210 switch (opt) { in usbip_bind()
|
D | usbip.c | 155 int opt; in main() local 161 opt = getopt_long(argc, argv, "+dlt:", opts, NULL); in main() 163 if (opt == -1) in main() 166 switch (opt) { in main()
|
D | usbip_attach.c | 210 int opt; in usbip_attach() local 214 opt = getopt_long(argc, argv, "r:b:", opts, NULL); in usbip_attach() 216 if (opt == -1) in usbip_attach() 219 switch (opt) { in usbip_attach()
|
D | usbip_list.c | 259 int opt; in usbip_list() local 266 opt = getopt_long(argc, argv, "pr:l", opts, NULL); in usbip_list() 268 if (opt == -1) in usbip_list() 271 switch (opt) { in usbip_list()
|
/tools/perf/scripts/python/ |
D | call-graph-from-postgresql.py | 302 for opt in opts: 303 if '=' in opt: 304 opt = opt.split('=') variable 305 if opt[0] == 'hostname': 306 db.setHostName(opt[1]) 307 elif opt[0] == 'port': 308 db.setPort(int(opt[1])) 309 elif opt[0] == 'username': 310 db.setUserName(opt[1]) 311 elif opt[0] == 'password': [all …]
|
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 | 88 int opt, dangerous = 0; in main() local 92 while ((opt = getopt(argc, argv, "d")) != -1) { in main() 93 switch (opt) { in main()
|
D | inconsistency-check.c | 166 int clockid, opt; in main() local 173 while ((opt = getopt(argc, argv, "t:c:")) != -1) { in main() 174 switch (opt) { in main()
|
D | threadtest.c | 138 int opt; in main() local 147 while ((opt = getopt(argc, argv, "t:n:i")) != -1) { in main() 148 switch (opt) { in main()
|
/tools/perf/ |
D | builtin-probe.c | 176 static int opt_set_target(const struct option *opt, const char *str, in opt_set_target() argument 183 if (!strcmp(opt->long_name, "exec")) in opt_set_target() 185 else if (!strcmp(opt->long_name, "module")) in opt_set_target() 214 static int opt_show_lines(const struct option *opt, in opt_show_lines() argument 228 params.command = opt->short_name; in opt_show_lines() 234 static int opt_show_vars(const struct option *opt, in opt_show_vars() argument 248 params.command = opt->short_name; in opt_show_vars() 253 static int opt_add_probe_event(const struct option *opt, in opt_add_probe_event() argument 257 params.command = opt->short_name; in opt_add_probe_event() 264 static int opt_set_filter_with_command(const struct option *opt, in opt_set_filter_with_command() argument [all …]
|
/tools/vm/ |
D | slabinfo-gnuplot.sh | 186 local opt 188 while getopts "tlr::s::h" opt; do 189 case $opt in
|
/tools/hv/ |
D | hv_fcopy_daemon.c | 150 int daemonize = 1, long_index = 0, opt; in main() local 163 while ((opt = getopt_long(argc, argv, "hn", long_options, in main() 165 switch (opt) { in main()
|