blob: 8626a439033d34e94410ec7e8e7d32b47fd63d18 [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];
Ingo Molnar52425192009-05-26 09:17:18 +020020
Ingo Molnar83a09442009-08-15 12:26:57 +020021extern const char *event_name(int ctr);
22extern const char *__event_name(int type, u64 config);
Ingo Molnar8ad8db32009-05-26 11:10:09 +020023
24extern int parse_events(const struct option *opt, const char *str, int unset);
25
26#define EVENTS_HELP_MAX (128*1024)
27
Thomas Gleixner86847b62009-06-06 12:24:17 +020028extern void print_events(void);
Ingo Molnar8ad8db32009-05-26 11:10:09 +020029
Jason Baron5beeded2009-07-21 14:16:29 -040030extern char debugfs_path[];
31extern int valid_debugfs_mount(const char *debugfs);
32
Frederic Weisbecker1ef2ed12009-08-28 03:09:58 +020033
John Kacur8b40f522009-09-24 18:02:18 +020034#endif /* __PERF_PARSE_EVENTS_H */