diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /tools/perf/util/parse-events.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'tools/perf/util/parse-events.h')
-rw-r--r-- | tools/perf/util/parse-events.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h index fc4ab3fe877a..746d3fcbfc2a 100644 --- a/tools/perf/util/parse-events.h +++ b/tools/perf/util/parse-events.h | |||
@@ -4,6 +4,11 @@ | |||
4 | * Parse symbolic events/counts passed in as options: | 4 | * Parse symbolic events/counts passed in as options: |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include "../../../include/linux/perf_event.h" | ||
8 | |||
9 | struct list_head; | ||
10 | struct perf_evsel; | ||
11 | |||
7 | struct option; | 12 | struct option; |
8 | 13 | ||
9 | struct tracepoint_path { | 14 | struct tracepoint_path { |
@@ -13,14 +18,10 @@ struct tracepoint_path { | |||
13 | }; | 18 | }; |
14 | 19 | ||
15 | extern struct tracepoint_path *tracepoint_id_to_path(u64 config); | 20 | extern struct tracepoint_path *tracepoint_id_to_path(u64 config); |
16 | extern bool have_tracepoints(struct perf_event_attr *pattrs, int nb_events); | 21 | extern bool have_tracepoints(struct list_head *evlist); |
17 | |||
18 | extern int nr_counters; | ||
19 | 22 | ||
20 | extern struct perf_event_attr attrs[MAX_COUNTERS]; | 23 | const char *event_type(int type); |
21 | extern char *filters[MAX_COUNTERS]; | 24 | const char *event_name(struct perf_evsel *event); |
22 | |||
23 | extern const char *event_name(int ctr); | ||
24 | extern const char *__event_name(int type, u64 config); | 25 | extern const char *__event_name(int type, u64 config); |
25 | 26 | ||
26 | extern int parse_events(const struct option *opt, const char *str, int unset); | 27 | extern int parse_events(const struct option *opt, const char *str, int unset); |
@@ -28,10 +29,13 @@ extern int parse_filter(const struct option *opt, const char *str, int unset); | |||
28 | 29 | ||
29 | #define EVENTS_HELP_MAX (128*1024) | 30 | #define EVENTS_HELP_MAX (128*1024) |
30 | 31 | ||
31 | extern void print_events(void); | 32 | void print_events(const char *event_glob); |
33 | void print_events_type(u8 type); | ||
34 | void print_tracepoint_events(const char *subsys_glob, const char *event_glob); | ||
35 | int print_hwcache_events(const char *event_glob); | ||
36 | extern int is_valid_tracepoint(const char *event_string); | ||
32 | 37 | ||
33 | extern char debugfs_path[]; | 38 | extern char debugfs_path[]; |
34 | extern int valid_debugfs_mount(const char *debugfs); | 39 | extern int valid_debugfs_mount(const char *debugfs); |
35 | 40 | ||
36 | |||
37 | #endif /* __PERF_PARSE_EVENTS_H */ | 41 | #endif /* __PERF_PARSE_EVENTS_H */ |