aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.h
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /tools/perf/util/parse-events.h
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (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.h22
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
9struct list_head;
10struct perf_evsel;
11
7struct option; 12struct option;
8 13
9struct tracepoint_path { 14struct tracepoint_path {
@@ -13,14 +18,10 @@ struct tracepoint_path {
13}; 18};
14 19
15extern struct tracepoint_path *tracepoint_id_to_path(u64 config); 20extern struct tracepoint_path *tracepoint_id_to_path(u64 config);
16extern bool have_tracepoints(struct perf_event_attr *pattrs, int nb_events); 21extern bool have_tracepoints(struct list_head *evlist);
17
18extern int nr_counters;
19 22
20extern struct perf_event_attr attrs[MAX_COUNTERS]; 23const char *event_type(int type);
21extern char *filters[MAX_COUNTERS]; 24const char *event_name(struct perf_evsel *event);
22
23extern const char *event_name(int ctr);
24extern const char *__event_name(int type, u64 config); 25extern const char *__event_name(int type, u64 config);
25 26
26extern int parse_events(const struct option *opt, const char *str, int unset); 27extern 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
31extern void print_events(void); 32void print_events(const char *event_glob);
33void print_events_type(u8 type);
34void print_tracepoint_events(const char *subsys_glob, const char *event_glob);
35int print_hwcache_events(const char *event_glob);
36extern int is_valid_tracepoint(const char *event_string);
32 37
33extern char debugfs_path[]; 38extern char debugfs_path[];
34extern int valid_debugfs_mount(const char *debugfs); 39extern int valid_debugfs_mount(const char *debugfs);
35 40
36
37#endif /* __PERF_PARSE_EVENTS_H */ 41#endif /* __PERF_PARSE_EVENTS_H */