aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2012-08-09 10:31:52 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-08-09 14:59:26 -0400
commita3277d2d5a0d5d9492993ab68af8a8dc96760dd1 (patch)
treee9c621444e7a31b801b5c57753409bab0a46484e /tools/perf/util/parse-events.h
parent98a4179c9aa1e99adf5103e6e0d05f563d902de1 (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.h7
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,
96void parse_events_error(void *data, void *scanner, char const *msg); 96void parse_events_error(void *data, void *scanner, char const *msg);
97int parse_events__test(void); 97int parse_events__test(void);
98 98
99void print_events(const char *event_glob); 99void print_events(const char *event_glob, bool name_only);
100void print_events_type(u8 type); 100void print_events_type(u8 type);
101void print_tracepoint_events(const char *subsys_glob, const char *event_glob); 101void print_tracepoint_events(const char *subsys_glob, const char *event_glob,
102int print_hwcache_events(const char *event_glob); 102 bool name_only);
103int print_hwcache_events(const char *event_glob, bool name_only);
103extern int is_valid_tracepoint(const char *event_string); 104extern int is_valid_tracepoint(const char *event_string);
104 105
105extern int valid_debugfs_mount(const char *debugfs); 106extern int valid_debugfs_mount(const char *debugfs);