aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evlist.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-15 07:40:59 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-22 16:56:30 -0500
commit04391debc3e1195222a4dbb162ace6542dd89c1c (patch)
tree910f12bd4d1f08c37d2086b4c725f50a8dd3c682 /tools/perf/util/evlist.h
parent98d77b78504a423fca911a26a17bee00ef2fdda2 (diff)
perf evlist: Steal mmap reading routine from 'perf top'
Will be used in the upcoming 'perf test' entry for the evlist mmap routines. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evlist.h')
-rw-r--r--tools/perf/util/evlist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h
index dbfcc79bb995..28712063db97 100644
--- a/tools/perf/util/evlist.h
+++ b/tools/perf/util/evlist.h
@@ -3,6 +3,7 @@
3 3
4#include <linux/list.h> 4#include <linux/list.h>
5#include "../perf.h" 5#include "../perf.h"
6#include "event.h"
6 7
7struct pollfd; 8struct pollfd;
8 9
@@ -15,6 +16,7 @@ struct perf_evlist {
15 int nr_entries; 16 int nr_entries;
16 int nr_fds; 17 int nr_fds;
17 int mmap_len; 18 int mmap_len;
19 event_t event_copy;
18 struct perf_mmap *mmap; 20 struct perf_mmap *mmap;
19 struct pollfd *pollfd; 21 struct pollfd *pollfd;
20}; 22};
@@ -32,4 +34,6 @@ void perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd);
32 34
33struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id); 35struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id);
34 36
37event_t *perf_evlist__read_on_cpu(struct perf_evlist *self, int cpu);
38
35#endif /* __PERF_EVLIST_H */ 39#endif /* __PERF_EVLIST_H */