Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 444) sorted by relevance

12345678910>>...18

/tools/perf/
Dbuiltin.h11 int cmd_annotate(int argc, const char **argv);
12 int cmd_bench(int argc, const char **argv);
13 int cmd_buildid_cache(int argc, const char **argv);
14 int cmd_buildid_list(int argc, const char **argv);
15 int cmd_config(int argc, const char **argv);
16 int cmd_c2c(int argc, const char **argv);
17 int cmd_diff(int argc, const char **argv);
18 int cmd_evlist(int argc, const char **argv);
19 int cmd_help(int argc, const char **argv);
20 int cmd_sched(int argc, const char **argv);
[all …]
Dbuiltin-data.c12 typedef int (*data_cmd_fn_t)(int argc, const char **argv);
56 static int cmd_data_convert(int argc, const char **argv) in cmd_data_convert() argument
80 argc = parse_options(argc, argv, options, in cmd_data_convert()
82 if (argc) { in cmd_data_convert()
104 int cmd_data(int argc, const char **argv) in cmd_data() argument
110 if (argc < 2) in cmd_data()
113 argc = parse_options_subcommand(argc, argv, data_options, data_subcommands, data_usage, in cmd_data()
115 if (argc < 1) in cmd_data()
124 return cmd->fn(argc, argv); in cmd_data()
Dbuiltin-kallsyms.c19 static int __cmd_kallsyms(int argc, const char **argv) in __cmd_kallsyms() argument
29 for (i = 0; i < argc; ++i) { in __cmd_kallsyms()
48 int cmd_kallsyms(int argc, const char **argv) in cmd_kallsyms() argument
59 argc = parse_options(argc, argv, options, kallsyms_usage, 0); in cmd_kallsyms()
60 if (argc < 1) in cmd_kallsyms()
68 return __cmd_kallsyms(argc, argv); in cmd_kallsyms()
Dperf.c170 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument
174 while (*argc > 0) { in handle_options()
228 if (*argc < 2) { in handle_options()
236 (*argc)--; in handle_options()
238 if (*argc < 2) { in handle_options()
246 (*argc)--; in handle_options()
271 if (*argc < 2) { in handle_options()
279 (*argc)--; in handle_options()
286 (*argc)--; in handle_options()
295 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) in run_builtin() argument
[all …]
Dbuiltin-bench.c31 typedef int (*bench_fn_t)(int argc, const char **argv);
189 int argc, const char **argv) in run_bench() argument
205 ret = fn(argc, argv); in run_bench()
244 int cmd_bench(int argc, const char **argv) in cmd_bench() argument
253 if (argc < 2) { in cmd_bench()
259 argc = parse_options(argc, argv, bench_options, bench_usage, in cmd_bench()
273 if (argc < 1) { in cmd_bench()
289 if (argc < 2) { in cmd_bench()
306 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1); in cmd_bench()
/tools/perf/bench/
Dbench.h21 int bench_numa(int argc, const char **argv);
22 int bench_sched_messaging(int argc, const char **argv);
23 int bench_sched_pipe(int argc, const char **argv);
24 int bench_syscall_basic(int argc, const char **argv);
25 int bench_mem_memcpy(int argc, const char **argv);
26 int bench_mem_memset(int argc, const char **argv);
27 int bench_mem_find_bit(int argc, const char **argv);
28 int bench_futex_hash(int argc, const char **argv);
29 int bench_futex_wake(int argc, const char **argv);
30 int bench_futex_wake_parallel(int argc, const char **argv);
[all …]
Dkallsyms-parse.c66 int bench_kallsyms_parse(int argc, const char **argv) in bench_kallsyms_parse() argument
68 argc = parse_options(argc, argv, options, bench_usage, 0); in bench_kallsyms_parse()
69 if (argc) { in bench_kallsyms_parse()
/tools/bpf/bpftool/
Dmain.h34 #define NEXT_ARG() ({ argc--; argv++; if (argc < 0) usage(); })
35 #define NEXT_ARGP() ({ (*argc)--; (*argv)++; if (*argc < 0) usage(); })
37 #define GET_ARG() ({ argc--; *argv++; })
43 if (argc < _cnt) { \
45 argv[-1], _cnt, argc); \
154 int (*func)(int argc, char **argv);
157 int cmd_select(const struct cmd *cmds, int argc, char **argv,
158 int (*help)(int argc, char **argv));
166 int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(int *, char ***));
170 int do_gen(int argc, char **argv);
[all …]
Dmain.c23 static int (*last_do_help)(int argc, char **argv);
51 static int do_help(int argc, char **argv) in do_help() argument
71 static int do_version(int argc, char **argv) in do_version() argument
113 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
114 int (*help)(int argc, char **argv)) in cmd_select() argument
118 last_argc = argc; in cmd_select()
122 if (argc < 1 && cmds[0].func) in cmd_select()
123 return cmds[0].func(argc, argv); in cmd_select()
132 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
136 help(argc - 1, argv + 1); in cmd_select()
[all …]
Dcgroup.c164 static int do_show(int argc, char **argv) in do_show() argument
178 while (argc) { in do_show()
318 static int do_show_tree(int argc, char **argv) in do_show_tree() argument
325 if (!argc) { in do_show_tree()
335 while (argc) { in do_show_tree()
380 static int do_attach(int argc, char **argv) in do_attach() argument
388 if (argc < 4) { in do_attach()
405 argc -= 2; in do_attach()
407 prog_fd = prog_parse_fd(&argc, &argv); in do_attach()
411 for (i = 0; i < argc; i++) { in do_attach()
[all …]
Diter.c11 static int do_pin(int argc, char **argv) in do_pin() argument
28 if (argc) { in do_pin()
37 map_fd = map_parse_fd(&argc, &argv); in do_pin()
95 static int do_help(int argc, char **argv) in do_help() argument
113 int do_iter(int argc, char **argv) in do_iter() argument
115 return cmd_select(cmds, argc, argv, do_help); in do_iter()
Dlink.c23 static int link_parse_fd(int *argc, char ***argv) in link_parse_fd() argument
300 static int do_show(int argc, char **argv) in do_show() argument
309 if (argc == 2) { in do_show()
310 fd = link_parse_fd(&argc, &argv); in do_show()
316 if (argc) in do_show()
352 static int do_pin(int argc, char **argv) in do_pin() argument
356 err = do_pin_any(argc, argv, link_parse_fd); in do_pin()
362 static int do_detach(int argc, char **argv) in do_detach() argument
366 if (argc != 2) { in do_detach()
371 fd = link_parse_fd(&argc, &argv); in do_detach()
[all …]
/tools/power/cpupower/utils/
Dbuiltin.h5 extern int cmd_set(int argc, const char **argv);
6 extern int cmd_info(int argc, const char **argv);
7 extern int cmd_freq_set(int argc, const char **argv);
8 extern int cmd_freq_info(int argc, const char **argv);
9 extern int cmd_idle_set(int argc, const char **argv);
10 extern int cmd_idle_info(int argc, const char **argv);
11 extern int cmd_monitor(int argc, const char **argv);
Dcpupower.c25 static int cmd_help(int argc, const char **argv);
103 static int cmd_help(int argc, const char **argv) in cmd_help() argument
105 if (argc > 1) { in cmd_help()
120 static void handle_options(int *argc, const char ***argv) in handle_options() argument
124 if (*argc < 1) in handle_options()
127 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options()
133 if (*argc < 2) { in handle_options()
168 *argc -= new_argc; in handle_options()
172 int main(int argc, const char *argv[]) in main() argument
182 argc--; in main()
[all …]
/tools/usb/usbip/src/
Dusbip.h15 int usbip_attach(int argc, char *argv[]);
16 int usbip_detach(int argc, char *argv[]);
17 int usbip_list(int argc, char *argv[]);
18 int usbip_bind(int argc, char *argv[]);
19 int usbip_unbind(int argc, char *argv[]);
20 int usbip_port_show(int argc, char *argv[]);
Dusbip.c20 static int usbip_help(int argc, char *argv[]);
21 static int usbip_version(int argc, char *argv[]);
36 int (*fn)(int argc, char *argv[]);
93 static int usbip_help(int argc, char *argv[]) in usbip_help() argument
99 if (argc > 1 && argv++) { in usbip_help()
118 static int usbip_version(int argc, char *argv[]) in usbip_version() argument
120 (void) argc; in usbip_version()
127 static int run_command(const struct command *cmd, int argc, char *argv[]) in run_command() argument
130 return cmd->fn(argc, argv); in run_command()
133 int main(int argc, char *argv[]) in main() argument
[all …]
/tools/lib/subcmd/
Dexec-cmd.c162 int argc; in prepare_exec_cmd() local
165 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd()
167 nargv = malloc(sizeof(*nargv) * (argc + 2)); in prepare_exec_cmd()
170 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd()
171 nargv[argc + 1] = argv[argc]; in prepare_exec_cmd()
172 nargv[argc + 1] = NULL; in prepare_exec_cmd()
189 int argc; in execl_cmd() local
196 argc = 1; in execl_cmd()
197 while (argc < MAX_ARGS) { in execl_cmd()
198 arg = argv[argc++] = va_arg(param, char *); in execl_cmd()
[all …]
/tools/objtool/
Dbuiltin-orc.c25 int cmd_orc(int argc, const char **argv) in cmd_orc() argument
29 argc--; argv++; in cmd_orc()
30 if (argc <= 0) in cmd_orc()
37 argc = parse_options(argc, argv, check_options, orc_usage, 0); in cmd_orc()
38 if (argc != 1) in cmd_orc()
65 if (argc != 2) in cmd_orc()
Dobjtool.c99 static void handle_options(int *argc, const char ***argv) in handle_options() argument
101 while (*argc > 0) { in handle_options()
116 (*argc)--; in handle_options()
120 static void handle_internal_command(int argc, const char **argv) in handle_internal_command() argument
131 ret = p->fn(argc, argv); in handle_internal_command()
139 int main(int argc, const char **argv) in main() argument
148 argc--; in main()
149 handle_options(&argc, &argv); in main()
151 if (!argc || help) in main()
154 handle_internal_command(argc, argv); in main()
Dbuiltin-check.c47 int cmd_check(int argc, const char **argv) in cmd_check() argument
53 argc = parse_options(argc, argv, check_options, check_usage, 0); in cmd_check()
55 if (argc != 1) in cmd_check()
/tools/testing/selftests/android/ion/
Dionapp_export.c23 void print_usage(int argc, char *argv[]) in print_usage() argument
29 int main(int argc, char *argv[]) in main() argument
38 if (argc < 2) { in main()
39 print_usage(argc, argv); in main()
47 while ((opt = getopt(argc, argv, "hi:s:")) != -1) { in main()
50 print_usage(argc, argv); in main()
71 print_usage(argc, argv); in main()
79 print_usage(argc, argv); in main()
/tools/perf/ui/browsers/
Dheader.c82 static int ui__list_menu(int argc, char * const argv[]) in ui__list_menu() argument
89 .nr_entries = argc, in ui__list_menu()
97 int i, argc = 0; in tui__header_window() local
108 for (pos = ptr, argc = 0; (pos = strchr(pos, '\n')) != NULL; pos++) in tui__header_window()
109 argc++; in tui__header_window()
111 argv = calloc(argc + 1, sizeof(*argv)); in tui__header_window()
121 BUG_ON(i != argc + 1); in tui__header_window()
123 ui__list_menu(argc, argv); in tui__header_window()
/tools/testing/selftests/arm64/fp/
Dvlset.c37 static int parse_options(int argc, char **argv) in parse_options() argument
48 while ((c = getopt_long(argc, argv, "Mfhi", options, NULL)) != -1) in parse_options()
62 if (optind >= argc) in parse_options()
81 if (optind >= argc) in parse_options()
96 int main(int argc, char **argv) in main() argument
103 if (parse_options(argc, argv)) in main()
144 assert(optind < argc); in main()
/tools/power/acpi/common/
Dgetopt.c53 int acpi_getopt_argument(int argc, char **argv) in acpi_getopt_argument() argument
62 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt_argument()
88 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument
94 if (acpi_gbl_optind >= argc || in acpi_getopt()
129 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt()
149 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt()
/tools/perf/tests/
Dbuiltin-test.c362 static bool perf_test__matches(const char *desc, int curr, int argc, const char *argv[]) in perf_test__matches() argument
366 if (argc == 0) in perf_test__matches()
369 for (i = 0; i < argc; ++i) { in perf_test__matches()
580 static int run_shell_tests(int argc, const char *argv[], int i, int width) in run_shell_tests() argument
608 if (!perf_test__matches(test.desc, curr, argc, argv)) in run_shell_tests()
620 static int __cmd_test(int argc, const char *argv[], struct intlist *skiplist) in __cmd_test() argument
638 if (!perf_test__matches(t->desc, curr, argc, argv)) { in __cmd_test()
648 if (perf_test__matches(t->subtest.get_desc(subi), curr, argc, argv)) in __cmd_test()
698 if (!perf_test__matches(t->subtest.get_desc(subi), curr, argc, argv)) in __cmd_test()
710 return run_shell_tests(argc, argv, i, width); in __cmd_test()
[all …]

12345678910>>...18