/Linux-v4.19/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 | perf.c | 161 static int handle_options(const char ***argv, int *argc, int *envchanged) in handle_options() argument 165 while (*argc > 0) { in handle_options() 219 if (*argc < 2) { in handle_options() 227 (*argc)--; in handle_options() 229 if (*argc < 2) { in handle_options() 237 (*argc)--; in handle_options() 262 if (*argc < 2) { in handle_options() 270 (*argc)--; in handle_options() 277 (*argc)--; in handle_options() 286 static int run_builtin(struct cmd_struct *p, int argc, const char **argv) in run_builtin() argument [all …]
|
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()
|
/Linux-v4.19/tools/bpf/bpftool/ |
D | main.h | 51 #define NEXT_ARG() ({ argc--; argv++; if (argc < 0) usage(); }) 52 #define NEXT_ARGP() ({ (*argc)--; (*argv)++; if (*argc < 0) usage(); }) 54 #define GET_ARG() ({ argc--; *argv++; }) 60 if (argc < _cnt) { \ 62 argv[-1], _cnt, argc); \ 120 int (*func)(int argc, char **argv); 123 int cmd_select(const struct cmd *cmds, int argc, char **argv, 124 int (*help)(int argc, char **argv)); 131 int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(__u32)); 134 int do_prog(int argc, char **arg); [all …]
|
D | main.c | 53 static int (*last_do_help)(int argc, char **argv); 76 static int do_help(int argc, char **argv) in do_help() argument 96 static int do_version(int argc, char **argv) in do_version() argument 109 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument 110 int (*help)(int argc, char **argv)) in cmd_select() argument 114 last_argc = argc; in cmd_select() 118 if (argc < 1 && cmds[0].func) in cmd_select() 119 return cmds[0].func(argc, argv); in cmd_select() 123 return cmds[i].func(argc - 1, argv + 1); in cmd_select() 125 help(argc - 1, argv + 1); in cmd_select() [all …]
|
D | cgroup.c | 151 static int do_show(int argc, char **argv) in do_show() argument 157 if (argc < 1) { in do_show() 160 } else if (argc > 1) { in do_show() 281 static int do_show_tree(int argc, char **argv) in do_show_tree() argument 286 switch (argc) { in do_show_tree() 327 if (argc == 0) in do_show_tree() 333 static int do_attach(int argc, char **argv) in do_attach() argument 341 if (argc < 4) { in do_attach() 358 argc -= 2; in do_attach() 360 prog_fd = prog_parse_fd(&argc, &argv); in do_attach() [all …]
|
D | map.c | 103 int map_parse_fd(int *argc, char ***argv) in map_parse_fd() argument 139 int map_parse_fd_and_info(int *argc, char ***argv, void *info, __u32 *info_len) in map_parse_fd_and_info() argument 144 fd = map_parse_fd(argc, argv); in map_parse_fd_and_info() 413 int argc = 2; in parse_elem() local 424 fd = map_parse_fd(&argc, &argv); in parse_elem() 431 int argc = 2; in parse_elem() local 442 fd = prog_parse_fd(&argc, &argv); in parse_elem() 565 static int do_show(int argc, char **argv) in do_show() argument 576 if (argc == 2) { in do_show() 577 fd = map_parse_fd_and_info(&argc, &argv, &info, &len); in do_show() [all …]
|
/Linux-v4.19/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);
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/tools/usb/usbip/src/ |
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 …]
|
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[]);
|
/Linux-v4.19/tools/objtool/ |
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-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()
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/scripts/kconfig/ |
D | preprocess.c | 15 static char *expand_string_with_args(const char *in, int argc, char *argv[]); 106 char *(*func)(int argc, char *argv[]); 109 static char *do_error_if(int argc, char *argv[]) in do_error_if() argument 117 static char *do_filename(int argc, char *argv[]) in do_filename() argument 122 static char *do_info(int argc, char *argv[]) in do_info() argument 129 static char *do_lineno(int argc, char *argv[]) in do_lineno() argument 138 static char *do_shell(int argc, char *argv[]) in do_shell() argument 178 static char *do_warning_if(int argc, char *argv[]) in do_warning_if() argument 199 static char *function_expand(const char *name, int argc, char *argv[]) in function_expand() argument 209 if (argc < f->min_args) in function_expand() [all …]
|
/Linux-v4.19/samples/timers/ |
D | hpet_example.c | 30 void (*func)(int argc, const char ** argv); 51 main(int argc, const char ** argv) in main() argument 55 argc--; in main() 58 if (!argc) { in main() 66 argc--; in main() 70 hpet_command[i].func(argc, argv); in main() 80 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument 84 if (argc != 1) { in hpet_open_close() 99 hpet_info(int argc, const char **argv) in hpet_info() argument 104 if (argc != 1) { in hpet_info() [all …]
|
/Linux-v4.19/kernel/debug/kdb/ |
D | kdb_main.c | 382 int kdb_set(int argc, const char **argv) in kdb_set() argument 394 if (argc == 3) { in kdb_set() 396 argc--; in kdb_set() 399 if (argc != 2) in kdb_set() 494 int kdbgetaddrarg(int argc, const char **argv, int *nextarg, in kdbgetaddrarg() argument 525 if (*nextarg > argc) in kdbgetaddrarg() 577 if ((*nextarg > argc) in kdbgetaddrarg() 602 if ((*nextarg > argc) in kdbgetaddrarg() 672 static int kdb_exec_defcmd(int argc, const char **argv); 707 static int kdb_defcmd(int argc, const char **argv) in kdb_defcmd() argument [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | ummu.c | 57 nvkm_ummu_heap(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_heap() argument 66 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_ummu_heap() 77 nvkm_ummu_type(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_type() argument 86 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_ummu_type() 106 nvkm_ummu_kind(struct nvkm_ummu *ummu, void *argv, u32 argc) in nvkm_ummu_kind() argument 118 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_ummu_kind() 119 if (argc != args->v0.count * sizeof(*args->v0.data)) in nvkm_ummu_kind() 131 nvkm_ummu_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_ummu_mthd() argument 135 case NVIF_MMU_V0_HEAP: return nvkm_ummu_heap(ummu, argv, argc); in nvkm_ummu_mthd() 136 case NVIF_MMU_V0_TYPE: return nvkm_ummu_type(ummu, argv, argc); in nvkm_ummu_mthd() [all …]
|
D | uvmm.c | 46 nvkm_uvmm_mthd_unmap(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_unmap() argument 57 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_unmap() 89 nvkm_uvmm_mthd_map(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_map() argument 101 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, true))) { in nvkm_uvmm_mthd_map() 159 ret = nvkm_memory_map(memory, offset, vmm, vma, argv, argc); in nvkm_uvmm_mthd_map() 176 nvkm_uvmm_mthd_put(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_put() argument 187 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_put() 214 nvkm_uvmm_mthd_get(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_get() argument 227 if (!(ret = nvif_unpack(ret, &argv, &argc, args->v0, 0, 0, false))) { in nvkm_uvmm_mthd_get() 250 nvkm_uvmm_mthd_page(struct nvkm_uvmm *uvmm, void *argv, u32 argc) in nvkm_uvmm_mthd_page() argument [all …]
|
/Linux-v4.19/tools/testing/selftests/android/ion/ |
D | ionapp_export.c | 32 void print_usage(int argc, char *argv[]) in print_usage() argument 38 int main(int argc, char *argv[]) in main() argument 47 if (argc < 2) { in main() 48 print_usage(argc, argv); in main() 56 while ((opt = getopt(argc, argv, "hi:s:")) != -1) { in main() 59 print_usage(argc, argv); in main() 80 print_usage(argc, argv); in main() 88 print_usage(argc, argv); in main()
|
/Linux-v4.19/lib/ |
D | parser.c | 29 int argc = 0; in match_one() local 55 if (argc >= MAX_OPT_ARGS) in match_one() 58 args[argc].from = s; in match_one() 67 args[argc].to = s + len; in match_one() 71 simple_strtol(s, &args[argc].to, 0); in match_one() 74 simple_strtoul(s, &args[argc].to, 0); in match_one() 77 simple_strtoul(s, &args[argc].to, 8); in match_one() 80 simple_strtoul(s, &args[argc].to, 16); in match_one() 82 if (args[argc].to == args[argc].from) in match_one() 88 s = args[argc].to; in match_one() [all …]
|
/Linux-v4.19/arch/mips/pmcs-msp71xx/ |
D | msp_prom.c | 360 int argc; in prom_free_prom_memory() local 372 for (argc = 0; argc < prom_argc; argc++) { in prom_free_prom_memory() 374 len += strlen(prom_argv[argc]) + 1; /* length of string */ in prom_free_prom_memory() 381 for (argc = 0; argc < prom_argc; argc++) { in prom_free_prom_memory() 382 argv[argc] = ptr; in prom_free_prom_memory() 383 strcpy(ptr, prom_argv[argc]); in prom_free_prom_memory() 384 ptr += strlen(prom_argv[argc]) + 1; in prom_free_prom_memory() 402 for (argc = 0; argc < i; argc++) { in prom_free_prom_memory() 403 envp[argc] = ptr; in prom_free_prom_memory() 404 strcpy(ptr, prom_envp[argc]); in prom_free_prom_memory() [all …]
|
/Linux-v4.19/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()
|