Home
last modified time | relevance | path

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

12345678910>>...20

/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.c11 typedef int (*data_cmd_fn_t)(int argc, const char **argv);
51 static int cmd_data_convert(int argc, const char **argv) in cmd_data_convert() argument
54 argc = parse_options(argc, argv, data_options, in cmd_data_convert()
56 if (argc) { in cmd_data_convert()
92 int cmd_data(int argc, const char **argv) in cmd_data() argument
97 argc = parse_options_subcommand(argc, argv, data_options, data_subcommands, data_usage, in cmd_data()
100 if (!argc) { in cmd_data()
111 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.c171 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument
175 while (*argc > 0) { in handle_options()
229 if (*argc < 2) { in handle_options()
237 (*argc)--; in handle_options()
239 if (*argc < 2) { in handle_options()
247 (*argc)--; in handle_options()
272 if (*argc < 2) { in handle_options()
280 (*argc)--; in handle_options()
287 (*argc)--; in handle_options()
296 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);
190 int argc, const char **argv) in run_bench() argument
206 ret = fn(argc, argv); in run_bench()
245 int cmd_bench(int argc, const char **argv) in cmd_bench() argument
254 if (argc < 2) { in cmd_bench()
260 argc = parse_options(argc, argv, bench_options, bench_usage, in cmd_bench()
274 if (argc < 1) { in cmd_bench()
290 if (argc < 2) { in cmd_bench()
307 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 …]
/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); \
155 int (*func)(int argc, char **argv);
158 int cmd_select(const struct cmd *cmds, int argc, char **argv,
159 int (*help)(int argc, char **argv));
167 int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(int *, char ***));
171 int do_gen(int argc, char **argv);
[all …]
Dmain.c24 static int (*last_do_help)(int argc, char **argv);
54 static int do_help(int argc, char **argv) in do_help() argument
75 static int do_version(int argc, char **argv) in do_version() argument
117 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
118 int (*help)(int argc, char **argv)) in cmd_select() argument
122 last_argc = argc; in cmd_select()
126 if (argc < 1 && cmds[0].func) in cmd_select()
127 return cmds[0].func(argc, argv); in cmd_select()
136 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
140 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
115 int do_iter(int argc, char **argv) in do_iter() argument
117 return cmd_select(cmds, argc, argv, do_help); in do_iter()
Dmap.c399 int argc = 2; in parse_elem() local
410 fd = map_parse_fd(&argc, &argv); in parse_elem()
417 int argc = 2; in parse_elem() local
431 fd = prog_parse_fd(&argc, &argv); in parse_elem()
645 static int do_show_subset(int argc, char **argv) in do_show_subset() argument
658 nb_fds = map_parse_fds(&argc, &argv, &fds); in do_show_subset()
689 static int do_show(int argc, char **argv) in do_show() argument
701 if (argc == 2) in do_show()
702 return do_show_subset(argc, argv); in do_show()
704 if (argc) in do_show()
[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);
105 static int cmd_help(int argc, const char **argv) in cmd_help() argument
107 if (argc > 1) { in cmd_help()
122 static void handle_options(int *argc, const char ***argv) in handle_options() argument
126 if (*argc < 1) in handle_options()
129 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options()
135 if (*argc < 2) { in handle_options()
170 *argc -= new_argc; in handle_options()
174 int main(int argc, const char *argv[]) in main() argument
186 argc--; in main()
[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/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/perf/tests/
Dmain.c8 int main(int argc, char **argv) in main() argument
10 __T("test cpumap", !test_cpumap(argc, argv)); in main()
11 __T("test threadmap", !test_threadmap(argc, argv)); in main()
12 __T("test evlist", !test_evlist(argc, argv)); in main()
13 __T("test evsel", !test_evsel(argc, argv)); in main()
Dtests.h5 int test_cpumap(int argc, char **argv);
6 int test_threadmap(int argc, char **argv);
7 int test_evlist(int argc, char **argv);
8 int test_evsel(int argc, char **argv);
/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 = cmd_parse_options(argc, argv, orc_usage); in cmd_orc()
62 if (argc != 2) in cmd_orc()
Dbuiltin-check.c54 int cmd_parse_options(int argc, const char **argv, const char * const usage[]) in cmd_parse_options() argument
75 argc = parse_options(argc, argv, check_options, usage, 0); in cmd_parse_options()
76 if (argc != 1) in cmd_parse_options()
78 return argc; in cmd_parse_options()
81 int cmd_check(int argc, const char **argv) in cmd_check() argument
87 argc = cmd_parse_options(argc, argv, check_usage); in cmd_check()
Dobjtool.c163 static void handle_options(int *argc, const char ***argv) in handle_options() argument
165 while (*argc > 0) { in handle_options()
180 (*argc)--; in handle_options()
184 static void handle_internal_command(int argc, const char **argv) in handle_internal_command() argument
195 ret = p->fn(argc, argv); in handle_internal_command()
203 int main(int argc, const char **argv) in main() argument
212 argc--; in main()
213 handle_options(&argc, &argv); in main()
215 if (!argc || help) in main()
218 handle_internal_command(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/objtool/include/objtool/
Dbuiltin.h14 extern int cmd_parse_options(int argc, const char **argv, const char * const usage[]);
16 extern int cmd_check(int argc, const char **argv);
17 extern int cmd_orc(int argc, const char **argv);

12345678910>>...20