/tools/perf/ |
D | builtin.h | 16 extern int cmd_annotate(int argc, const char **argv, const char *prefix); 17 extern int cmd_bench(int argc, const char **argv, const char *prefix); 18 extern int cmd_buildid_cache(int argc, const char **argv, const char *prefix); 19 extern int cmd_buildid_list(int argc, const char **argv, const char *prefix); 20 extern int cmd_diff(int argc, const char **argv, const char *prefix); 21 extern int cmd_evlist(int argc, const char **argv, const char *prefix); 22 extern int cmd_help(int argc, const char **argv, const char *prefix); 23 extern int cmd_sched(int argc, const char **argv, const char *prefix); 24 extern int cmd_list(int argc, const char **argv, const char *prefix); 25 extern int cmd_record(int argc, const char **argv, const char *prefix); [all …]
|
D | perf.c | 127 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument 131 while (*argc > 0) { in handle_options() 165 if (*argc < 2) { in handle_options() 173 (*argc)--; in handle_options() 180 if (*argc < 2) { in handle_options() 188 (*argc)--; in handle_options() 194 if (*argc < 2) { in handle_options() 202 (*argc)--; in handle_options() 217 if (*argc < 2) { in handle_options() 225 (*argc)--; in handle_options() [all …]
|
D | builtin-list.c | 19 int cmd_list(int argc, const char **argv, const char *prefix __maybe_unused) in cmd_list() argument 30 argc = parse_options(argc, argv, list_options, list_usage, in cmd_list() 35 if (argc == 0) { in cmd_list() 40 for (i = 0; i < argc; ++i) { in cmd_list()
|
D | builtin-mem.c | 24 static int __cmd_record(int argc, const char **argv) in __cmd_record() argument 31 rec_argc = argc + 4; in __cmd_record() 48 for (j = 1; j < argc; j++, i++) in __cmd_record() 152 static int report_events(int argc, const char **argv, struct perf_mem *mem) in report_events() argument 160 rep_argc = argc + 3; in report_events() 177 for (j = 1; j < argc; j++, i++) in report_events() 185 int cmd_mem(int argc, const char **argv, const char *prefix __maybe_unused) in cmd_mem() argument 225 argc = parse_options_subcommand(argc, argv, mem_options, mem_subcommands, in cmd_mem() 228 if (!argc || !(strncmp(argv[0], "rec", 3) || mem_operation)) in cmd_mem() 239 return __cmd_record(argc, argv); in cmd_mem() [all …]
|
D | builtin-bench.c | 28 typedef int (*bench_fn_t)(int argc, const char **argv, const char *prefix); 155 int argc, const char **argv, const char *prefix) in run_bench() argument 171 ret = fn(argc, argv, prefix); in run_bench() 211 int cmd_bench(int argc, const char **argv, const char *prefix __maybe_unused) in cmd_bench() argument 216 if (argc < 2) { in cmd_bench() 222 argc = parse_options(argc, argv, bench_options, bench_usage, in cmd_bench() 236 if (argc < 1) { in cmd_bench() 252 if (argc < 2) { in cmd_bench() 270 ret = run_bench(coll->name, bench->name, bench->fn, argc-1, argv+1, prefix); in cmd_bench()
|
D | builtin-evlist.c | 40 int cmd_evlist(int argc, const char **argv, const char *prefix __maybe_unused) in cmd_evlist() argument 57 argc = parse_options(argc, argv, options, evlist_usage, 0); in cmd_evlist() 58 if (argc) in cmd_evlist()
|
D | builtin-kvm.c | 1125 kvm_events_record(struct perf_kvm_stat *kvm, int argc, const char **argv) in kvm_events_record() argument 1141 rec_argc = ARRAY_SIZE(record_args) + argc + 2 + in kvm_events_record() 1159 for (j = 1; j < (unsigned int)argc; j++, i++) in kvm_events_record() 1166 kvm_events_report(struct perf_kvm_stat *kvm, int argc, const char **argv) in kvm_events_report() argument 1187 if (argc) { in kvm_events_report() 1188 argc = parse_options(argc, argv, in kvm_events_report() 1191 if (argc) in kvm_events_report() 1253 int argc, const char **argv) in kvm_events_live() argument 1315 if (argc) { in kvm_events_live() 1316 argc = parse_options(argc, argv, live_options, in kvm_events_live() [all …]
|
D | builtin-probe.c | 116 static int parse_probe_event_argv(int argc, const char **argv) in parse_probe_event_argv() argument 125 if (found_target && argc == 1) in parse_probe_event_argv() 130 for (i = 0; i < argc; i++) { in parse_probe_event_argv() 140 for (i = 0; i < argc; i++) { in parse_probe_event_argv() 302 __cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) in __cmd_probe() argument 385 argc = parse_options(argc, argv, options, probe_usage, in __cmd_probe() 387 if (argc > 0) { in __cmd_probe() 392 ret = parse_probe_event_argv(argc, argv); in __cmd_probe() 525 int cmd_probe(int argc, const char **argv, const char *prefix) in cmd_probe() argument 531 ret = __cmd_probe(argc, argv, prefix); in cmd_probe()
|
/tools/perf/util/ |
D | exec_cmd.c | 102 int argc; in prepare_perf_cmd() local 105 for (argc = 0; argv[argc]; argc++) in prepare_perf_cmd() 107 nargv = malloc(sizeof(*nargv) * (argc + 2)); in prepare_perf_cmd() 110 for (argc = 0; argv[argc]; argc++) in prepare_perf_cmd() 111 nargv[argc + 1] = argv[argc]; in prepare_perf_cmd() 112 nargv[argc + 1] = NULL; in prepare_perf_cmd() 129 int argc; in execl_perf_cmd() local 136 argc = 1; in execl_perf_cmd() 137 while (argc < MAX_ARGS) { in execl_perf_cmd() 138 arg = argv[argc++] = va_arg(param, char *); in execl_perf_cmd() [all …]
|
D | parse-options.c | 24 } else if ((opt->flags & PARSE_OPT_LASTARG_DEFAULT) && (p->argc == 1 || in get_arg() 27 } else if (p->argc > 1) { in get_arg() 28 p->argc--; in get_arg() 325 int argc, const char **argv, int flags) in parse_options_start() argument 328 ctx->argc = argc - 1; in parse_options_start() 350 for (; ctx->argc; ctx->argc--, ctx->argv++) { in parse_options_step() 399 ctx->argc--; in parse_options_step() 433 memmove(ctx->out + ctx->cpidx, ctx->argv, ctx->argc * sizeof(*ctx->out)); in parse_options_end() 434 ctx->out[ctx->cpidx + ctx->argc] = NULL; in parse_options_end() 435 return ctx->cpidx + ctx->argc; in parse_options_end() [all …]
|
/tools/power/cpupower/utils/ |
D | builtin.h | 4 extern int cmd_set(int argc, const char **argv); 5 extern int cmd_info(int argc, const char **argv); 6 extern int cmd_freq_set(int argc, const char **argv); 7 extern int cmd_freq_info(int argc, const char **argv); 8 extern int cmd_idle_set(int argc, const char **argv); 9 extern int cmd_idle_info(int argc, const char **argv); 10 extern int cmd_monitor(int argc, const char **argv);
|
D | cpupower.c | 25 static int cmd_help(int argc, const char **argv); 102 static int cmd_help(int argc, const char **argv) in cmd_help() argument 104 if (argc > 1) { in cmd_help() 119 static void handle_options(int *argc, const char ***argv) in handle_options() argument 123 if (*argc < 1) in handle_options() 126 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options() 132 if (*argc < 2) { in handle_options() 167 *argc -= new_argc; in handle_options() 171 int main(int argc, const char *argv[]) in main() argument 180 argc--; in main() [all …]
|
/tools/perf/bench/ |
D | bench.h | 28 extern int bench_numa(int argc, const char **argv, const char *prefix); 29 extern int bench_sched_messaging(int argc, const char **argv, const char *prefix); 30 extern int bench_sched_pipe(int argc, const char **argv, const char *prefix); 31 extern int bench_mem_memcpy(int argc, const char **argv, 33 extern int bench_mem_memset(int argc, const char **argv, const char *prefix); 34 extern int bench_futex_hash(int argc, const char **argv, const char *prefix); 35 extern int bench_futex_wake(int argc, const char **argv, const char *prefix); 36 extern int bench_futex_requeue(int argc, const char **argv, const char *prefix);
|
/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/perf/ui/browsers/ |
D | header.c | 81 static int ui__list_menu(int argc, char * const argv[]) in ui__list_menu() argument 88 .nr_entries = argc, in ui__list_menu() 96 int i, argc = 0; in tui__header_window() local 107 for (pos = ptr, argc = 0; (pos = strchr(pos, '\n')) != NULL; pos++) in tui__header_window() 108 argc++; in tui__header_window() 110 argv = calloc(argc + 1, sizeof(*argv)); in tui__header_window() 120 BUG_ON(i != argc + 1); in tui__header_window() 122 ui__list_menu(argc, argv); in tui__header_window()
|
/tools/perf/tests/ |
D | builtin-test.c | 174 static bool perf_test__matches(int curr, int argc, const char *argv[]) in perf_test__matches() argument 178 if (argc == 0) in perf_test__matches() 181 for (i = 0; i < argc; ++i) { in perf_test__matches() 228 static int __cmd_test(int argc, const char *argv[], struct intlist *skiplist) in __cmd_test() argument 245 if (!perf_test__matches(curr, argc, argv)) in __cmd_test() 276 static int perf_test__list(int argc, const char **argv) in perf_test__list() argument 283 if (argc > 1 && !strstr(tests[curr].desc, argv[1])) in perf_test__list() 292 int cmd_test(int argc, const char **argv, const char *prefix __maybe_unused) in cmd_test() argument 311 argc = parse_options(argc, argv, test_options, test_usage, 0); in cmd_test() 312 if (argc >= 1 && !strcmp(argv[0], "list")) in cmd_test() [all …]
|
/tools/power/acpi/common/ |
D | getopt.c | 86 int acpi_getopt_argument(int argc, char **argv) in acpi_getopt_argument() argument 94 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt_argument() 120 int acpi_getopt(int argc, char **argv, char *opts) in acpi_getopt() argument 126 if (acpi_gbl_optind >= argc || in acpi_getopt() 161 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt() 181 } else if (++acpi_gbl_optind >= argc) { in acpi_getopt()
|
/tools/power/acpi/tools/acpidump/ |
D | apmain.c | 73 static int ap_do_options(int argc, char **argv); 164 static int ap_do_options(int argc, char **argv) in ap_do_options() argument 172 acpi_getopt(argc, argv, AP_SUPPORTED_OPTIONS)) != ACPI_OPT_END) in ap_do_options() 295 int ACPI_SYSTEM_XFACE main(int argc, char *argv[]) in main() argument 297 int ACPI_SYSTEM_XFACE acpi_main(int argc, char *argv[]) in main() 311 status = ap_do_options(argc, argv); in main()
|
/tools/perf/config/feature-checks/ |
D | test-all.c | 96 int main(int argc, char *argv[]) in main() argument 110 main_test_gtk2(argc, argv); in main() 111 main_test_gtk2_infobar(argc, argv); in main() 118 main_test_sync_compare_and_swap(argc, argv); in main()
|
D | test-gtk2.c | 5 int main(int argc, char *argv[]) in main() argument 7 gtk_init(&argc, &argv); in main()
|
D | test-gtk2-infobar.c | 5 int main(int argc, char *argv[]) in main() argument 7 gtk_init(&argc, &argv); in main()
|
D | test-sync-compare-and-swap.c | 5 int main(int argc, char *argv[]) in main() argument 7 uint64_t old, new = argc; in main()
|
/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 78 void cmdline(int argc, char **argv) in cmdline() argument 84 while ((opt = getopt(argc, argv, "+rvc:")) != -1) { in cmdline() 100 if (read_only && (argc > optind)) in cmdline() 108 if (argc != optind + 1) { in cmdline() 299 int main(int argc, char **argv) in main() argument 301 cmdline(argc, argv); in main()
|
/tools/net/ |
D | bpf_asm.c | 28 int main(int argc, char **argv) in main() argument 34 for (i = 1; i < argc; i++) { in main()
|