perf evsel: Steal the counter reading routines from stat
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 3 Jan 2011 19:45:52 +0000 (17:45 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Jan 2011 02:22:55 +0000 (00:22 -0200)
commitc52b12ed2511e6c031a0295fd903ea72b93701fb
tree770915627e789401b820a104c1ed23a212e7bd50
parent70d544d0576775a2b3923a7e68cb49b0313d80c9
perf evsel: Steal the counter reading routines from stat

Making them hopefully generic enough to be used in 'perf test',
well see.

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/builtin-stat.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h