2009-08-27 19:09:58 -06:00
|
|
|
#ifndef _PARSE_EVENTS_H
|
|
|
|
#define _PARSE_EVENTS_H
|
2009-05-26 01:17:18 -06:00
|
|
|
/*
|
|
|
|
* Parse symbolic events/counts passed in as options:
|
|
|
|
*/
|
|
|
|
|
2009-07-21 12:16:29 -06:00
|
|
|
struct option;
|
|
|
|
|
2009-08-27 19:09:58 -06:00
|
|
|
struct tracepoint_path {
|
|
|
|
char *system;
|
|
|
|
char *name;
|
|
|
|
struct tracepoint_path *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct tracepoint_path *tracepoint_id_to_path(u64 config);
|
|
|
|
|
2009-06-06 01:58:57 -06:00
|
|
|
extern int nr_counters;
|
2009-05-26 01:17:18 -06:00
|
|
|
|
2009-06-06 01:58:57 -06:00
|
|
|
extern struct perf_counter_attr attrs[MAX_COUNTERS];
|
2009-05-26 01:17:18 -06:00
|
|
|
|
2009-08-15 04:26:57 -06:00
|
|
|
extern const char *event_name(int ctr);
|
|
|
|
extern const char *__event_name(int type, u64 config);
|
2009-05-26 03:10:09 -06:00
|
|
|
|
|
|
|
extern int parse_events(const struct option *opt, const char *str, int unset);
|
|
|
|
|
|
|
|
#define EVENTS_HELP_MAX (128*1024)
|
|
|
|
|
2009-06-06 04:24:17 -06:00
|
|
|
extern void print_events(void);
|
2009-05-26 03:10:09 -06:00
|
|
|
|
2009-07-21 12:16:29 -06:00
|
|
|
extern char debugfs_path[];
|
|
|
|
extern int valid_debugfs_mount(const char *debugfs);
|
|
|
|
|
2009-08-27 19:09:58 -06:00
|
|
|
|
|
|
|
#endif /* _PARSE_EVENTS_H */
|