/tools/lib/subcmd/ |
D | help.c | 16 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len) in add_cmdname() argument 24 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname() 25 cmds->names[cmds->cnt++] = ent; in add_cmdname() 28 void clean_cmdnames(struct cmdnames *cmds) in clean_cmdnames() argument 32 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames() 33 zfree(&cmds->names[i]); in clean_cmdnames() 34 zfree(&cmds->names); in clean_cmdnames() 35 cmds->cnt = 0; in clean_cmdnames() 36 cmds->alloc = 0; in clean_cmdnames() 46 void uniq(struct cmdnames *cmds) in uniq() argument [all …]
|
D | help.h | 26 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len); 27 void clean_cmdnames(struct cmdnames *cmds); 29 void uniq(struct cmdnames *cmds); 31 void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes);
|
/tools/perf/util/ |
D | help-unknown-cmd.c | 32 static int add_cmd_list(struct cmdnames *cmds, struct cmdnames *old) in add_cmd_list() argument 34 unsigned int i, nr = cmds->cnt + old->cnt; in add_cmd_list() 37 if (nr > cmds->alloc) { in add_cmd_list() 39 if (alloc_nr(cmds->alloc) < nr) in add_cmd_list() 40 cmds->alloc = nr; in add_cmd_list() 42 cmds->alloc = alloc_nr(cmds->alloc); in add_cmd_list() 43 tmp = realloc(cmds->names, cmds->alloc * sizeof(*cmds->names)); in add_cmd_list() 46 cmds->names = tmp; in add_cmd_list() 49 cmds->names[cmds->cnt++] = old->names[i]; in add_cmd_list()
|
/tools/usb/usbip/src/ |
D | usbip.c | 41 static const struct command cmds[] = { variable 100 for (i = 0; cmds[i].name != NULL; i++) in usbip_help() 101 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help() 102 cmds[i].usage(); in usbip_help() 110 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help() 177 for (i = 0; cmds[i].name != NULL; i++) in main() 178 if (!strcmp(cmds[i].name, cmd)) { in main() 182 rc = run_command(&cmds[i], argc, argv); in main()
|
/tools/bpf/bpftool/ |
D | main.c | 113 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument 122 if (argc < 1 && cmds[0].func) in cmd_select() 123 return cmds[0].func(argc, argv); in cmd_select() 125 for (i = 0; cmds[i].cmd; i++) { in cmd_select() 126 if (is_prefix(*argv, cmds[i].cmd)) { in cmd_select() 127 if (!cmds[i].func) { in cmd_select() 129 cmds[i].cmd); in cmd_select() 132 return cmds[i].func(argc - 1, argv + 1); in cmd_select() 251 static const struct cmd cmds[] = { variable 356 err = cmd_select(cmds, n_argc, n_argv, do_help); in do_batch() [all …]
|
D | iter.c | 107 static const struct cmd cmds[] = { variable 115 return cmd_select(cmds, argc, argv, do_help); in do_iter()
|
D | perf.c | 241 static const struct cmd cmds[] = { variable 250 return cmd_select(cmds, argc, argv, do_help); in do_perf()
|
D | cgroup.c | 511 static const struct cmd cmds[] = { variable 523 return cmd_select(cmds, argc, argv, do_help); in do_cgroup()
|
D | link.c | 411 static const struct cmd cmds[] = { variable 422 return cmd_select(cmds, argc, argv, do_help); in do_link()
|
D | gen.c | 612 static const struct cmd cmds[] = { variable 620 return cmd_select(cmds, argc, argv, do_help); in do_gen()
|
D | struct_ops.c | 583 static const struct cmd cmds[] = { variable 597 err = cmd_select(cmds, argc, argv, do_help); in do_struct_ops()
|
D | main.h | 157 int cmd_select(const struct cmd *cmds, int argc, char **argv,
|
D | feature.c | 1010 static const struct cmd cmds[] = { variable 1018 return cmd_select(cmds, argc, argv, do_help); in do_feature()
|
D | net.c | 744 static const struct cmd cmds[] = { variable 755 return cmd_select(cmds, argc, argv, do_help); in do_net()
|
D | btf.c | 927 static const struct cmd cmds[] = { variable 937 return cmd_select(cmds, argc, argv, do_help); in do_btf()
|
D | map.c | 1475 static const struct cmd cmds[] = { variable 1498 return cmd_select(cmds, argc, argv, do_help); in do_map()
|
D | prog.c | 2144 static const struct cmd cmds[] = { variable 2162 return cmd_select(cmds, argc, argv, do_help); in do_prog()
|
/tools/perf/ |
D | perf-completion.sh | 129 cmds_=$($cmd $1 --list-cmds) 157 cmds=$($cmd --list-opts) 159 cmds=$($cmd --list-cmds) 161 __perfcomp "$cmds" "$cur" 205 subcmds=$($cmd $prev_skip_opts --list-cmds)
|
D | .gitignore | 17 common-cmds.h
|
D | Makefile.perf | 664 $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt 666 $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt) 707 prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h archheaders $(drm_ioctl_array) \ 887 check: $(OUTPUT)common-cmds.h 1012 …$(call QUIET_CLEAN, core-gen) $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h T…
|
/tools/perf/Documentation/ |
D | Makefile | 247 _cmds_txt = cmds-ancillaryinterrogators.txt \ 248 cmds-ancillarymanipulators.txt \ 249 cmds-mainporcelain.txt \ 250 cmds-plumbinginterrogators.txt \ 251 cmds-plumbingmanipulators.txt \ 252 cmds-synchingrepositories.txt \ 253 cmds-synchelpers.txt \ 254 cmds-purehelpers.txt \ 255 cmds-foreignscminterface.txt
|
D | perf.txt | 43 --list-cmds::
|
/tools/bpf/ |
D | bpf_dbg.c | 1245 static const struct shell_cmd cmds[] = { variable 1265 for (i = 0; i < array_size(cmds); i++) { in execf() 1266 if (len != strlen(cmds[i].name)) in execf() 1268 if (strncmp(cmds[i].name, cmd, len) == 0) { in execf() 1269 ret = cmds[i].func(cont); in execf() 1287 for (; list_index < array_size(cmds); ) { in shell_comp_gen() 1288 const char *name = cmds[list_index].name; in shell_comp_gen()
|
/tools/power/x86/intel-speed-select/ |
D | isst-config.c | 2583 struct process_cmd_struct *cmds) in process_command() argument 2607 while (cmds[i].feature) { in process_command() 2608 if (!strcmp(cmds[i].feature, feature) && in process_command() 2609 !strcmp(cmds[i].command, cmd)) { in process_command() 2611 cmds[i].process_fn(cmds[i].arg); in process_command()
|