diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-29 06:08:13 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-29 13:24:40 -0500 |
commit | 7bb41152b9be7e31f10d8919bce5034135525d9d (patch) | |
tree | 4a79423cd6f01f5e61251e6058ed41427230f63b /tools/perf/util/evlist.h | |
parent | ef2bf6d043ac9bd4a6f38d862af407154a4754d9 (diff) |
perf evlist: Support non overwrite mode in perf_evlist__read_on_cpu
I.e. stash the overwrite mode in struct perf_evlist and act accordingly
in perf_evlist__read_on_cpu, not checking for overwrites and touching
the tail after consuming one event, like perf record does, for instance.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index acbe48eac608..2706ae40c8b3 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h | |||
@@ -16,6 +16,7 @@ struct perf_evlist { | |||
16 | int nr_entries; | 16 | int nr_entries; |
17 | int nr_fds; | 17 | int nr_fds; |
18 | int mmap_len; | 18 | int mmap_len; |
19 | bool overwrite; | ||
19 | event_t event_copy; | 20 | event_t event_copy; |
20 | struct perf_mmap *mmap; | 21 | struct perf_mmap *mmap; |
21 | struct pollfd *pollfd; | 22 | struct pollfd *pollfd; |