Home
last modified time | relevance | path

Searched refs:main_cmds (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/tools/perf/util/
Dhelp-unknown-cmd.c58 struct cmdnames main_cmds, other_cmds; in help_unknown_cmd() local
60 memset(&main_cmds, 0, sizeof(main_cmds)); in help_unknown_cmd()
61 memset(&other_cmds, 0, sizeof(main_cmds)); in help_unknown_cmd()
65 load_command_list("perf-", &main_cmds, &other_cmds); in help_unknown_cmd()
67 if (add_cmd_list(&main_cmds, &other_cmds) < 0) { in help_unknown_cmd()
71 qsort(main_cmds.names, main_cmds.cnt, in help_unknown_cmd()
72 sizeof(main_cmds.names), cmdname_compare); in help_unknown_cmd()
73 uniq(&main_cmds); in help_unknown_cmd()
75 if (main_cmds.cnt) { in help_unknown_cmd()
77 for (i = 0; i < main_cmds.cnt; ++i) in help_unknown_cmd()
[all …]
/linux-5.19.10/tools/lib/subcmd/
Dhelp.c195 struct cmdnames *main_cmds, in load_command_list() argument
202 list_commands_in_dir(main_cmds, exec_path, prefix); in load_command_list()
203 qsort(main_cmds->names, main_cmds->cnt, in load_command_list()
204 sizeof(*main_cmds->names), cmdname_compare); in load_command_list()
205 uniq(main_cmds); in load_command_list()
228 exclude_cmds(other_cmds, main_cmds); in load_command_list()
231 void list_commands(const char *title, struct cmdnames *main_cmds, in list_commands() argument
236 for (i = 0; i < main_cmds->cnt; i++) in list_commands()
237 if (longest < main_cmds->names[i]->len) in list_commands()
238 longest = main_cmds->names[i]->len; in list_commands()
[all …]
Dhelp.h24 struct cmdnames *main_cmds,
33 void list_commands(const char *title, struct cmdnames *main_cmds,
/linux-5.19.10/tools/perf/
Dbuiltin-help.c298 static struct cmdnames main_cmds, other_cmds; variable
457 load_command_list("perf-", &main_cmds, &other_cmds); in cmd_help()
468 list_commands("perf commands", &main_cmds, &other_cmds); in cmd_help()