blob: b8c1f64bc9351ac7f889340c20eb7755614f5227 [file] [log] [blame]
John Kacur8b40f522009-09-24 18:02:18 +02001#ifndef __PERF_PARSE_EVENTS_H
2#define __PERF_PARSE_EVENTS_H
Ingo Molnar52425192009-05-26 09:17:18 +02003/*
4 * Parse symbolic events/counts passed in as options:
5 */
6
Jason Baron5beeded2009-07-21 14:16:29 -04007struct option;
8
Frederic Weisbecker1ef2ed12009-08-28 03:09:58 +02009struct tracepoint_path {
10 char *system;
11 char *name;
12 struct tracepoint_path *next;
13};
14
15extern struct tracepoint_path *tracepoint_id_to_path(u64 config);
16
Ingo Molnara21ca2c2009-06-06 09:58:57 +020017extern int nr_counters;
Ingo Molnar52425192009-05-26 09:17:18 +020018
Ingo Molnarcdd6c482009-09-21 12:02:48 +020019extern struct perf_event_attr attrs[MAX_COUNTERS];
Li Zefanc171b552009-10-15 11:22:07 +080020extern char *filters[MAX_COUNTERS];
Ingo Molnar52425192009-05-26 09:17:18 +020021
Ingo Molnar83a09442009-08-15 12:26:57 +020022extern const char *event_name(int ctr);
23extern const char *__event_name(int type, u64 config);
Ingo Molnar8ad8db32009-05-26 11:10:09 +020024
25extern int parse_events(const struct option *opt, const char *str, int unset);
Li Zefanc171b552009-10-15 11:22:07 +080026extern int parse_filter(const struct option *opt, const char *str, int unset);
Ingo Molnar8ad8db32009-05-26 11:10:09 +020027
28#define EVENTS_HELP_MAX (128*1024)
29
Thomas Gleixner86847b62009-06-06 12:24:17 +020030extern void print_events(void);
Ingo Molnar8ad8db32009-05-26 11:10:09 +020031
Jason Baron5beeded2009-07-21 14:16:29 -040032extern char debugfs_path[];
33extern int valid_debugfs_mount(const char *debugfs);
34
Frederic Weisbecker1ef2ed12009-08-28 03:09:58 +020035
John Kacur8b40f522009-09-24 18:02:18 +020036#endif /* __PERF_PARSE_EVENTS_H */