diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-12-13 22:18:09 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-14 12:30:37 -0300 |
commit | 5feaac248a46dd5f9876c4ae45c4bbbde5472e90 (patch) | |
tree | 2a6c2b55e01c6f332451b39cec92a8b1d50a5b07 /tools/perf/util/help.h | |
parent | a871a775172ac586b76199fd158e2843971bd052 (diff) | |
download | lwn-5feaac248a46dd5f9876c4ae45c4bbbde5472e90.tar.gz lwn-5feaac248a46dd5f9876c4ae45c4bbbde5472e90.zip |
perf tools: Move help_unknown_cmd() to its own file
help_unknown_cmd() is quite perf-specific because it relies on some
perf_config*() functions. Move it and its supporting functions out into
a separate file so that help.c can be moved to a library.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/562d918bcaaf340c1ae3e47586b3f0ae33b9918b.1449965119.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/help.h')
-rw-r--r-- | tools/perf/util/help.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/help.h b/tools/perf/util/help.h index 7f5c6dedd714..14851b0e44f5 100644 --- a/tools/perf/util/help.h +++ b/tools/perf/util/help.h @@ -20,6 +20,9 @@ void load_command_list(const char *prefix, struct cmdnames *main_cmds, struct cmdnames *other_cmds); void add_cmdname(struct cmdnames *cmds, const char *name, size_t len); +void clean_cmdnames(struct cmdnames *cmds); +int cmdname_compare(const void *a, const void *b); +void uniq(struct cmdnames *cmds); /* Here we require that excludes is a sorted list. */ void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes); int is_in_cmdlist(struct cmdnames *c, const char *s); |