diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-30 07:46:46 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-30 08:41:13 -0500 |
commit | f8a9530939ed87b9a1b1a038b90e355098b679a2 (patch) | |
tree | a24954b748120ae6f83f30c00af747c22acfb89e /tools/perf/util/evlist.h | |
parent | 877108e42b1b9ba64857c4030cf356ecc120fd18 (diff) |
perf evlist: Move evlist methods to evlist.c
They were on evsel.c because they came from refactoring existing evsel
methods, so, to make reviewing the changes easier, I kept it there, now
its a plain move.
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 022ae404b908..85aca6eba16b 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h | |||
@@ -6,6 +6,8 @@ | |||
6 | #include "event.h" | 6 | #include "event.h" |
7 | 7 | ||
8 | struct pollfd; | 8 | struct pollfd; |
9 | struct thread_map; | ||
10 | struct cpu_map; | ||
9 | 11 | ||
10 | #define PERF_EVLIST__HLIST_BITS 8 | 12 | #define PERF_EVLIST__HLIST_BITS 8 |
11 | #define PERF_EVLIST__HLIST_SIZE (1 << PERF_EVLIST__HLIST_BITS) | 13 | #define PERF_EVLIST__HLIST_SIZE (1 << PERF_EVLIST__HLIST_BITS) |
@@ -39,4 +41,9 @@ struct perf_evsel *perf_evlist__id2evsel(struct perf_evlist *evlist, u64 id); | |||
39 | 41 | ||
40 | union perf_event *perf_evlist__read_on_cpu(struct perf_evlist *self, int cpu); | 42 | union perf_event *perf_evlist__read_on_cpu(struct perf_evlist *self, int cpu); |
41 | 43 | ||
44 | int perf_evlist__alloc_mmap(struct perf_evlist *evlist, int ncpus); | ||
45 | int perf_evlist__mmap(struct perf_evlist *evlist, struct cpu_map *cpus, | ||
46 | struct thread_map *threads, int pages, bool overwrite); | ||
47 | void perf_evlist__munmap(struct perf_evlist *evlist, int ncpus); | ||
48 | |||
42 | #endif /* __PERF_EVLIST_H */ | 49 | #endif /* __PERF_EVLIST_H */ |