Home
last modified time | relevance | path

Searched refs:cmds (Results 1 – 10 of 10) sorted by relevance

/tools/lib/subcmd/
Dhelp.c14 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len) in add_cmdname() argument
22 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
23 cmds->names[cmds->cnt++] = ent; in add_cmdname()
26 void clean_cmdnames(struct cmdnames *cmds) in clean_cmdnames() argument
30 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames()
31 zfree(&cmds->names[i]); in clean_cmdnames()
32 zfree(&cmds->names); in clean_cmdnames()
33 cmds->cnt = 0; in clean_cmdnames()
34 cmds->alloc = 0; in clean_cmdnames()
44 void uniq(struct cmdnames *cmds) in uniq() argument
[all …]
Dhelp.h24 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len);
25 void clean_cmdnames(struct cmdnames *cmds);
27 void uniq(struct cmdnames *cmds);
29 void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes);
/tools/perf/util/
Dhelp-unknown-cmd.c32 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/
Dusbip.c53 static const struct command cmds[] = { variable
112 for (i = 0; cmds[i].name != NULL; i++) in usbip_help()
113 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help()
114 cmds[i].usage(); in usbip_help()
122 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help()
189 for (i = 0; cmds[i].name != NULL; i++) in main()
190 if (!strcmp(cmds[i].name, cmd)) { in main()
194 rc = run_command(&cmds[i], argc, argv); in main()
/tools/perf/
Dperf-completion.sh128 cmds_=$($cmd $1 --list-cmds)
156 cmds=$($cmd --list-opts)
158 cmds=$($cmd --list-cmds)
160 __perfcomp "$cmds" "$cur"
170 subcmds=$($cmd $prev_skip_opts --list-cmds)
D.gitignore16 common-cmds.h
DMakefile.perf479 $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt
481 $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt)
518 prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h fixdep archheaders
663 check: $(OUTPUT)common-cmds.h
758 …$(call QUIET_CLEAN, core-gen) $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h T…
/tools/perf/Documentation/
DMakefile235 _cmds_txt = cmds-ancillaryinterrogators.txt \
236 cmds-ancillarymanipulators.txt \
237 cmds-mainporcelain.txt \
238 cmds-plumbinginterrogators.txt \
239 cmds-plumbingmanipulators.txt \
240 cmds-synchingrepositories.txt \
241 cmds-synchelpers.txt \
242 cmds-purehelpers.txt \
243 cmds-foreignscminterface.txt
/tools/testing/nvdimm/test/
Dnfit.c1552 } cmds; in nfit_ctl_test() local
1607 cmd_size = sizeof(cmds.cfg_size); in nfit_ctl_test()
1608 cmds.cfg_size = (struct nd_cmd_get_config_size) { in nfit_ctl_test()
1613 rc = setup_result(cmds.buf, cmd_size); in nfit_ctl_test()
1617 cmds.buf, cmd_size, &cmd_rc); in nfit_ctl_test()
1619 if (rc < 0 || cmd_rc || cmds.cfg_size.status != 0 in nfit_ctl_test()
1620 || cmds.cfg_size.config_size != SZ_128K in nfit_ctl_test()
1621 || cmds.cfg_size.max_xfer != SZ_4K) { in nfit_ctl_test()
1630 cmds.ars_stat = (struct nd_cmd_ars_status) { in nfit_ctl_test()
1633 rc = setup_result(cmds.buf, cmd_size); in nfit_ctl_test()
[all …]
/tools/net/
Dbpf_dbg.c1242 static const struct shell_cmd cmds[] = { variable
1262 for (i = 0; i < array_size(cmds); i++) { in execf()
1263 if (len != strlen(cmds[i].name)) in execf()
1265 if (strncmp(cmds[i].name, cmd, len) == 0) { in execf()
1266 ret = cmds[i].func(cont); in execf()
1284 for (; list_index < array_size(cmds); ) { in shell_comp_gen()
1285 const char *name = cmds[list_index].name; in shell_comp_gen()