diff options
Diffstat (limited to 'tools/perf/util/evlist.h')
-rw-r--r-- | tools/perf/util/evlist.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 16bbfcba8ca8..dbfcc79bb995 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h | |||
@@ -2,13 +2,20 @@ | |||
2 | #define __PERF_EVLIST_H 1 | 2 | #define __PERF_EVLIST_H 1 |
3 | 3 | ||
4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
5 | #include "../perf.h" | ||
5 | 6 | ||
6 | struct pollfd; | 7 | struct pollfd; |
7 | 8 | ||
9 | #define PERF_EVLIST__HLIST_BITS 8 | ||
10 | #define PERF_EVLIST__HLIST_SIZE (1 << PERF_EVLIST__HLIST_BITS) | ||
11 | |||
8 | struct perf_evlist { | 12 | struct perf_evlist { |
9 | struct list_head entries; | 13 | struct list_head entries; |
14 | struct hlist_head heads[PERF_EVLIST__HLIST_SIZE]; | ||
10 | int nr_entries; | 15 | int nr_entries; |
11 | int nr_fds; | 16 | int nr_fds; |
17 | int mmap_len; | ||
18 | struct perf_mmap *mmap; | ||
12 | struct pollfd *pollfd; | 19 | struct pollfd *pollfd; |
13 | }; | 20 | }; |
14 | 21 | ||
@@ -23,4 +30,6 @@ int perf_evlist__add_default(struct perf_evlist *evlist); | |||
23 | int perf_evlist__alloc_pollfd(struct perf_evlist *evlist, int ncpus, int nthreads); | 30 | int perf_evlist__alloc_pollfd(struct perf_evlist *evlist, int ncpus, int nthreads); |
24 | void perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd); | 31 | void perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd); |
25 | 32 | ||
33 | struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id); | ||
34 | |||
26 | #endif /* __PERF_EVLIST_H */ | 35 | #endif /* __PERF_EVLIST_H */ |