staging: brcm80211: change parameter in driver variable lookup
[zen-stable.git] / tools / perf / util / parse-events.h
blob2f8e375e038dd9adbe45368cbc79a1d22801826f
1 #ifndef __PERF_PARSE_EVENTS_H
2 #define __PERF_PARSE_EVENTS_H
3 /*
4 * Parse symbolic events/counts passed in as options:
5 */
7 #include "../../../include/linux/perf_event.h"
9 struct list_head;
10 struct perf_evsel;
11 struct perf_evlist;
13 struct option;
15 struct tracepoint_path {
16 char *system;
17 char *name;
18 struct tracepoint_path *next;
21 extern struct tracepoint_path *tracepoint_id_to_path(u64 config);
22 extern bool have_tracepoints(struct list_head *evlist);
24 const char *event_type(int type);
25 const char *event_name(struct perf_evsel *event);
26 extern const char *__event_name(int type, u64 config);
28 extern int parse_events_option(const struct option *opt, const char *str,
29 int unset);
30 extern int parse_events(struct perf_evlist *evlist, const char *str,
31 int unset);
32 extern int parse_filter(const struct option *opt, const char *str, int unset);
34 #define EVENTS_HELP_MAX (128*1024)
36 void print_events(const char *event_glob);
37 void print_events_type(u8 type);
38 void print_tracepoint_events(const char *subsys_glob, const char *event_glob);
39 int print_hwcache_events(const char *event_glob);
40 extern int is_valid_tracepoint(const char *event_string);
42 extern char debugfs_path[];
43 extern int valid_debugfs_mount(const char *debugfs);
45 #endif /* __PERF_PARSE_EVENTS_H */