diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2012-08-09 10:31:52 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-08-09 14:59:26 -0400 |
commit | a3277d2d5a0d5d9492993ab68af8a8dc96760dd1 (patch) | |
tree | e9c621444e7a31b801b5c57753409bab0a46484e /tools/perf/util/parse-events.h | |
parent | 98a4179c9aa1e99adf5103e6e0d05f563d902de1 (diff) |
perf tools: Support for events bash completion
Add basic bash completion for the -e option in record, top and stat
subcommands. Only hardware, software and tracepoint events are
supported.
Breakpoints, raw events and events grouping completion need more
thinking.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1344522713-27951-3-git-send-email-fweisbec@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.h')
-rw-r--r-- | tools/perf/util/parse-events.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h index 163aad404619..00416d7fd012 100644 --- a/tools/perf/util/parse-events.h +++ b/tools/perf/util/parse-events.h | |||
@@ -96,10 +96,11 @@ void parse_events_update_lists(struct list_head *list_event, | |||
96 | void parse_events_error(void *data, void *scanner, char const *msg); | 96 | void parse_events_error(void *data, void *scanner, char const *msg); |
97 | int parse_events__test(void); | 97 | int parse_events__test(void); |
98 | 98 | ||
99 | void print_events(const char *event_glob); | 99 | void print_events(const char *event_glob, bool name_only); |
100 | void print_events_type(u8 type); | 100 | void print_events_type(u8 type); |
101 | void print_tracepoint_events(const char *subsys_glob, const char *event_glob); | 101 | void print_tracepoint_events(const char *subsys_glob, const char *event_glob, |
102 | int print_hwcache_events(const char *event_glob); | 102 | bool name_only); |
103 | int print_hwcache_events(const char *event_glob, bool name_only); | ||
103 | extern int is_valid_tracepoint(const char *event_string); | 104 | extern int is_valid_tracepoint(const char *event_string); |
104 | 105 | ||
105 | extern int valid_debugfs_mount(const char *debugfs); | 106 | extern int valid_debugfs_mount(const char *debugfs); |