perf script: Fix display of IP address for non-callchain path
[linux-2.6-block.git] / tools / perf / util / parse-events.h
CommitLineData
8b40f521
JK
1#ifndef __PERF_PARSE_EVENTS_H
2#define __PERF_PARSE_EVENTS_H
5242519b
IM
3/*
4 * Parse symbolic events/counts passed in as options:
5 */
6
d030260a 7#include "../../../include/linux/perf_event.h"
69aad6f1
ACM
8
9struct list_head;
10struct perf_evsel;
11
5beeded1
JB
12struct option;
13
1ef2ed10
FW
14struct tracepoint_path {
15 char *system;
16 char *name;
17 struct tracepoint_path *next;
18};
19
20extern struct tracepoint_path *tracepoint_id_to_path(u64 config);
5c7a6682 21extern bool have_tracepoints(struct list_head *evlist);
1ef2ed10 22
1424dc96 23const char *event_type(int type);
69aad6f1 24const char *event_name(struct perf_evsel *event);
83a0944f 25extern const char *__event_name(int type, u64 config);
8ad8db37
IM
26
27extern int parse_events(const struct option *opt, const char *str, int unset);
c171b552 28extern int parse_filter(const struct option *opt, const char *str, int unset);
8ad8db37
IM
29
30#define EVENTS_HELP_MAX (128*1024)
31
668b8788
ACM
32void print_events(const char *event_glob);
33void print_events_type(u8 type);
34void print_tracepoint_events(const char *subsys_glob, const char *event_glob);
35int print_hwcache_events(const char *event_glob);
20c457b8 36extern int is_valid_tracepoint(const char *event_string);
8ad8db37 37
5beeded1
JB
38extern char debugfs_path[];
39extern int valid_debugfs_mount(const char *debugfs);
40
8b40f521 41#endif /* __PERF_PARSE_EVENTS_H */