Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 118) sorted by relevance

12345

/tools/lib/subcmd/
Dparse-options.c20 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 …]
Drun-command.c215 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/ktest/
Dcompare-ktest-sample.pl10 $opt{$1} = 1;
23 foreach $opt (keys %opt) {
24 if (!defined($samp{$opt})) {
25 print "opt = $opt\n";
30 if (!defined($opt{$samp})) {
Dktest.pl19 my %opt;
509 if (defined($opt{"LOG_FILE"})) {
510 open(OUT, ">> $opt{LOG_FILE}") or die "Can't write to $opt{LOG_FILE}";
517 if (defined($opt{"LOG_FILE"})) {
582 return if (defined($opt{$config}));
695 my $rtype = $opt{"REBOOT_TYPE"};
698 if (!defined($opt{"GRUB_MENU"})) {
781 if (defined($opt{$lvalue})) {
792 $opt{$lvalue} = $prvalue;
858 defined($opt{$2});
[all …]
/tools/testing/selftests/bpf/
Dtest_sockmap.c327 struct sockmap_options *opt) in msg_loop_sendpage() argument
329 bool drop = opt->drop_expected; in msg_loop_sendpage()
453 struct sockmap_options *opt) in msg_loop() argument
457 bool drop = opt->drop_expected; in msg_loop()
458 bool data = opt->data_test; in msg_loop()
531 if (opt->verbose) in msg_loop()
563 int chunk_sz = opt->sendpage ? in msg_loop()
607 static int sendmsg_test(struct sockmap_options *opt) in sendmsg_test() argument
612 int iov_count = opt->iov_count; in sendmsg_test()
613 int iov_buf = opt->iov_length; in sendmsg_test()
[all …]
Dtest_libbpf_open.c116 int opt; in main() local
121 while ((opt = getopt_long(argc, argv, "hDq", in main()
123 switch (opt) { in main()
/tools/power/cpupower/bench/
Dparse.c158 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/
Dparse-regs-options.c13 __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()
Dparse-regs-options.h5 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);
/tools/testing/selftests/media_tests/
Dmedia_device_open.c41 int opt; in main() local
54 while ((opt = getopt(argc, argv, "d:")) != -1) { in main()
55 switch (opt) { in main()
Dmedia_device_test.c46 int opt; in main() local
59 while ((opt = getopt(argc, argv, "d:")) != -1) { in main()
60 switch (opt) { in main()
Dvideo_device_test.c42 int opt; in main() local
56 while ((opt = getopt(argc, argv, "d:")) != -1) { in main()
57 switch (opt) { in main()
/tools/usb/usbip/src/
Dusbip_detach.c102 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()
Dusbip_unbind.c107 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()
Dusbip_bind.c189 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()
Dusbip.c143 int opt; in main() local
149 opt = getopt_long(argc, argv, "+dlt:", opts, NULL); in main()
151 if (opt == -1) in main()
154 switch (opt) { in main()
/tools/testing/selftests/powerpc/signal/
Dsigfuz.c290 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/
Dcompaction-times.py274 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/
Dreuseport_bpf.c157 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/
Dset-2038.c77 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++/
Dclang.h16 getModuleFromSource(opt::ArgStringList CFlags,
20 getModuleFromSource(opt::ArgStringList CFlags,
Dclang.cpp39 createCompilerInvocation(llvm::opt::ArgStringList CFlags, StringRef& Path, in createCompilerInvocation()
42 llvm::opt::ArgStringList CCArgs { in createCompilerInvocation()
68 getModuleFromSource(llvm::opt::ArgStringList CFlags, in getModuleFromSource()
96 getModuleFromSource(llvm::opt::ArgStringList CFlags, in getModuleFromSource()
117 getModuleFromSource(llvm::opt::ArgStringList CFlags, StringRef Path) in getModuleFromSource()
193 llvm::opt::ArgStringList CFlags; in perf_clang__compile_bpf()
/tools/testing/selftests/android/ion/
Dionapp_export.c31 int opt, ret, status, heapid; in main() local
47 while ((opt = getopt(argc, argv, "hi:s:")) != -1) { in main()
48 switch (opt) { in main()
/tools/perf/
Dbuiltin-probe.c167 static int opt_set_target(const struct option *opt, const char *str, in opt_set_target() argument
174 if (!strcmp(opt->long_name, "exec")) in opt_set_target()
176 else if (!strcmp(opt->long_name, "module")) in opt_set_target()
202 static int opt_set_target_ns(const struct option *opt __maybe_unused, in opt_set_target_ns()
233 static int opt_show_lines(const struct option *opt, in opt_show_lines() argument
247 params.command = opt->short_name; in opt_show_lines()
253 static int opt_show_vars(const struct option *opt, in opt_show_vars() argument
267 params.command = opt->short_name; in opt_show_vars()
275 static int opt_add_probe_event(const struct option *opt, in opt_add_probe_event() argument
279 params.command = opt->short_name; in opt_add_probe_event()
[all …]
/tools/testing/selftests/vm/
Dgup_benchmark.c35 int i, fd, filed, opt, nr_pages = 1, thp = -1, repeats = 1, write = 0; in main() local
40 while ((opt = getopt(argc, argv, "m:r:n:f:tTLUwSH")) != -1) { in main()
41 switch (opt) { in main()

12345