1 #ifndef __PERF_PARSE_EVENTS_H 2 #define __PERF_PARSE_EVENTS_H 3 /* 4 * Parse symbolic events/counts passed in as options: 5 */ 6 7 /* ANDROID_CHANGE_BEGIN */ 8 #if 0 9 #include "../../../include/linux/perf_event.h" 10 #else 11 #include "include/linux/added/perf_event.h" 12 #endif 13 /* ANDROID_CHANGE_END */ 14 15 struct list_head; 16 struct perf_evsel; 17 18 struct option; 19 20 struct tracepoint_path { 21 char *system; 22 char *name; 23 struct tracepoint_path *next; 24 }; 25 26 extern struct tracepoint_path *tracepoint_id_to_path(u64 config); 27 extern bool have_tracepoints(struct list_head *evlist); 28 29 const char *event_type(int type); 30 const char *event_name(struct perf_evsel *event); 31 extern const char *__event_name(int type, u64 config); 32 33 extern int parse_events(const struct option *opt, const char *str, int unset); 34 extern int parse_filter(const struct option *opt, const char *str, int unset); 35 36 #define EVENTS_HELP_MAX (128*1024) 37 38 void print_events(const char *event_glob); 39 void print_events_type(u8 type); 40 void print_tracepoint_events(const char *subsys_glob, const char *event_glob); 41 int print_hwcache_events(const char *event_glob); 42 extern int is_valid_tracepoint(const char *event_string); 43 44 extern char debugfs_path[]; 45 extern int valid_debugfs_mount(const char *debugfs); 46 47 #endif /* __PERF_PARSE_EVENTS_H */ 48