/tools/perf/ |
D | builtin.h | 13 int cmd_annotate(int argc, const char **argv); 14 int cmd_bench(int argc, const char **argv); 15 int cmd_buildid_cache(int argc, const char **argv); 16 int cmd_buildid_list(int argc, const char **argv); 17 int cmd_config(int argc, const char **argv); 18 int cmd_c2c(int argc, const char **argv); 19 int cmd_diff(int argc, const char **argv); 20 int cmd_evlist(int argc, const char **argv); 21 int cmd_help(int argc, const char **argv); 22 int cmd_sched(int argc, const char **argv); [all …]
|
D | builtin-data.c | 10 typedef int (*data_cmd_fn_t)(int argc, const char **argv); 54 static int cmd_data_convert(int argc, const char **argv) in cmd_data_convert() argument 77 argc = parse_options(argc, argv, options, in cmd_data_convert() 79 if (argc) { in cmd_data_convert() 101 int cmd_data(int argc, const char **argv) in cmd_data() argument 107 if (argc < 2) in cmd_data() 110 argc = parse_options_subcommand(argc, argv, data_options, data_subcommands, data_usage, in cmd_data() 112 if (argc < 1) in cmd_data() 121 return cmd->fn(argc, argv); in cmd_data()
|
D | builtin-kallsyms.c | 18 static int __cmd_kallsyms(int argc, const char **argv) in __cmd_kallsyms() argument 28 for (i = 0; i < argc; ++i) { in __cmd_kallsyms() 47 int cmd_kallsyms(int argc, const char **argv) in cmd_kallsyms() argument 58 argc = parse_options(argc, argv, options, kallsyms_usage, 0); in cmd_kallsyms() 59 if (argc < 1) in cmd_kallsyms() 67 return __cmd_kallsyms(argc, argv); in cmd_kallsyms()
|
D | perf.c | 162 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument 166 while (*argc > 0) { in handle_options() 214 if (*argc < 2) { in handle_options() 222 (*argc)--; in handle_options() 224 if (*argc < 2) { in handle_options() 232 (*argc)--; in handle_options() 257 if (*argc < 2) { in handle_options() 265 (*argc)--; in handle_options() 272 (*argc)--; in handle_options() 281 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) in run_builtin() argument [all …]
|
D | builtin-bench.c | 29 typedef int (*bench_fn_t)(int argc, const char **argv); 159 int argc, const char **argv) in run_bench() argument 175 ret = fn(argc, argv); in run_bench() 215 int cmd_bench(int argc, const char **argv) in cmd_bench() argument 220 if (argc < 2) { in cmd_bench() 226 argc = parse_options(argc, argv, bench_options, bench_usage, in cmd_bench() 240 if (argc < 1) { in cmd_bench() 256 if (argc < 2) { in cmd_bench() 274 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1); in cmd_bench()
|
D | builtin-evlist.c | 50 int cmd_evlist(int argc, const char **argv) in cmd_evlist() argument 69 argc = parse_options(argc, argv, options, evlist_usage, 0); in cmd_evlist() 70 if (argc) in cmd_evlist()
|
D | builtin-mem.c | 67 static int __cmd_record(int argc, const char **argv, struct perf_mem *mem) in __cmd_record() argument 85 argc = parse_options(argc, argv, options, record_mem_usage, in __cmd_record() 88 rec_argc = argc + 9; /* max number of arguments */ in __cmd_record() 130 for (j = 0; j < argc; j++, i++) in __cmd_record() 275 static int report_events(int argc, const char **argv, struct perf_mem *mem) in report_events() argument 283 rep_argc = argc + 3; in report_events() 307 for (j = 1; j < argc; j++, i++) in report_events() 384 int cmd_mem(int argc, const char **argv) in cmd_mem() argument 436 argc = parse_options_subcommand(argc, argv, mem_options, mem_subcommands, in cmd_mem() 439 if (!argc || !(strncmp(argv[0], "rec", 3) || mem.operation)) in cmd_mem() [all …]
|
D | builtin-list.c | 24 int cmd_list(int argc, const char **argv) in cmd_list() argument 48 argc = parse_options(argc, argv, list_options, list_usage, in cmd_list() 56 if (argc == 0) { in cmd_list() 62 for (i = 0; i < argc; ++i) { in cmd_list()
|
/tools/perf/bench/ |
D | bench.h | 29 int bench_numa(int argc, const char **argv); 30 int bench_sched_messaging(int argc, const char **argv); 31 int bench_sched_pipe(int argc, const char **argv); 32 int bench_mem_memcpy(int argc, const char **argv); 33 int bench_mem_memset(int argc, const char **argv); 34 int bench_futex_hash(int argc, const char **argv); 35 int bench_futex_wake(int argc, const char **argv); 36 int bench_futex_wake_parallel(int argc, const char **argv); 37 int bench_futex_requeue(int argc, const char **argv); 39 int bench_futex_lock_pi(int argc, const char **argv);
|
/tools/power/cpupower/utils/ |
D | builtin.h | 5 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);
|
D | cpupower.c | 26 static int cmd_help(int argc, const char **argv); 104 static int cmd_help(int argc, const char **argv) in cmd_help() argument 106 if (argc > 1) { in cmd_help() 121 static void handle_options(int *argc, const char ***argv) in handle_options() argument 125 if (*argc < 1) in handle_options() 128 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options() 134 if (*argc < 2) { in handle_options() 169 *argc -= new_argc; in handle_options() 173 int main(int argc, const char *argv[]) in main() argument 183 argc--; in main() [all …]
|
/tools/objtool/ |
D | builtin-orc.c | 38 int cmd_orc(int argc, const char **argv) in cmd_orc() argument 42 argc--; argv++; in cmd_orc() 43 if (argc <= 0) in cmd_orc() 47 argc = parse_options(argc, argv, check_options, orc_usage, 0); in cmd_orc() 48 if (argc != 1) in cmd_orc() 57 if (argc != 2) in cmd_orc()
|
D | objtool.c | 76 static void handle_options(int *argc, const char ***argv) in handle_options() argument 78 while (*argc > 0) { in handle_options() 93 (*argc)--; in handle_options() 97 static void handle_internal_command(int argc, const char **argv) in handle_internal_command() argument 108 ret = p->fn(argc, argv); in handle_internal_command() 116 int main(int argc, const char **argv) in main() argument 125 argc--; in main() 126 handle_options(&argc, &argv); in main() 128 if (!argc || help) in main() 131 handle_internal_command(argc, argv); in main()
|
D | builtin-check.c | 47 int cmd_check(int argc, const char **argv) in cmd_check() argument 51 argc = parse_options(argc, argv, check_options, check_usage, 0); in cmd_check() 53 if (argc != 1) in cmd_check()
|
/tools/usb/usbip/src/ |
D | usbip.h | 27 int usbip_attach(int argc, char *argv[]); 28 int usbip_detach(int argc, char *argv[]); 29 int usbip_list(int argc, char *argv[]); 30 int usbip_bind(int argc, char *argv[]); 31 int usbip_unbind(int argc, char *argv[]); 32 int usbip_port_show(int argc, char *argv[]);
|
D | usbip.c | 32 static int usbip_help(int argc, char *argv[]); 33 static int usbip_version(int argc, char *argv[]); 48 int (*fn)(int argc, char *argv[]); 105 static int usbip_help(int argc, char *argv[]) in usbip_help() argument 111 if (argc > 1 && argv++) { in usbip_help() 130 static int usbip_version(int argc, char *argv[]) in usbip_version() argument 132 (void) argc; in usbip_version() 139 static int run_command(const struct command *cmd, int argc, char *argv[]) in run_command() argument 142 return cmd->fn(argc, argv); in run_command() 145 int main(int argc, char *argv[]) in main() argument [all …]
|
/tools/lib/subcmd/ |
D | exec-cmd.c | 162 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/perf/ui/browsers/ |
D | header.c | 84 static int ui__list_menu(int argc, char * const argv[]) in ui__list_menu() argument 91 .nr_entries = argc, in ui__list_menu() 99 int i, argc = 0; in tui__header_window() local 110 for (pos = ptr, argc = 0; (pos = strchr(pos, '\n')) != NULL; pos++) in tui__header_window() 111 argc++; in tui__header_window() 113 argv = calloc(argc + 1, sizeof(*argv)); in tui__header_window() 123 BUG_ON(i != argc + 1); in tui__header_window() 125 ui__list_menu(argc, argv); in tui__header_window()
|
/tools/power/acpi/common/ |
D | getopt.c | 87 int acpi_getopt_argument(int argc, char **argv) in acpi_getopt_argument() argument 96 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt_argument() 122 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument 128 if (acpi_gbl_optind >= argc || in acpi_getopt() 163 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt() 183 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt()
|
/tools/perf/tests/ |
D | builtin-test.c | 282 static bool perf_test__matches(struct test *test, int curr, int argc, const char *argv[]) in perf_test__matches() argument 286 if (argc == 0) in perf_test__matches() 289 for (i = 0; i < argc; ++i) { in perf_test__matches() 490 static int run_shell_tests(int argc, const char *argv[], int i, int width) in run_shell_tests() argument 515 if (!perf_test__matches(&test, curr, argc, argv)) in run_shell_tests() 527 static int __cmd_test(int argc, const char *argv[], struct intlist *skiplist) in __cmd_test() argument 544 if (!perf_test__matches(t, curr, argc, argv)) in __cmd_test() 599 return run_shell_tests(argc, argv, i, width); in __cmd_test() 602 static int perf_test__list_shell(int argc, const char **argv, int i) in perf_test__list_shell() argument 623 if (!perf_test__matches(&t, curr, argc, argv)) in perf_test__list_shell() [all …]
|
/tools/power/acpi/tools/acpidump/ |
D | apmain.c | 72 static int ap_do_options(int argc, char **argv); 163 static int ap_do_options(int argc, char **argv) in ap_do_options() argument 171 acpi_getopt(argc, argv, AP_SUPPORTED_OPTIONS)) != ACPI_OPT_END) in ap_do_options() 304 int ACPI_SYSTEM_XFACE main(int argc, char *argv[]) in main() argument 306 int ACPI_SYSTEM_XFACE acpi_main(int argc, char *argv[]) in main() 321 status = ap_do_options(argc, argv); in main()
|
/tools/testing/selftests/media_tests/ |
D | media_device_open.c | 36 int main(int argc, char **argv) in main() argument 45 if (argc < 2) { in main() 51 while ((opt = getopt(argc, argv, "d:")) != -1) { in main()
|
D | media_device_test.c | 41 int main(int argc, char **argv) in main() argument 50 if (argc < 2) { in main() 56 while ((opt = getopt(argc, argv, "d:")) != -1) { in main()
|
/tools/build/feature/ |
D | test-gtk2.c | 6 int main(int argc, char *argv[]) in main() argument 8 gtk_init(&argc, &argv); in main()
|
D | test-gtk2-infobar.c | 6 int main(int argc, char *argv[]) in main() argument 8 gtk_init(&argc, &argv); in main()
|