perf evlist: Support non overwrite mode in perf_evlist__read_on_cpu
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 29 Jan 2011 11:08:13 +0000 (09:08 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 29 Jan 2011 18:24:40 +0000 (16:24 -0200)
commit7bb41152b9be7e31f10d8919bce5034135525d9d
tree4a79423cd6f01f5e61251e6058ed41427230f63b
parentef2bf6d043ac9bd4a6f38d862af407154a4754d9
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>
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/evsel.c