blob: 60704c15961f09c8726ab93bcf59622abed5a98b [file] [log] [blame]
Frederic Weisbecker1ef2ed12009-08-28 03:09:58 +02001#ifndef _PARSE_EVENTS_H
2#define _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 Molnara21ca2c2009-06-06 09:58:57 +020019extern struct perf_counter_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
34#endif /* _PARSE_EVENTS_H */