perf_counter: Rework the sample ABI
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 25 Jun 2009 09:27:12 +0000 (11:27 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 25 Jun 2009 19:39:08 +0000 (21:39 +0200)
commite6e18ec79b023d5fe84226cef533cf0e3770ce93
tree6fc1bd9afd21454864abe2aec6a0e35e17d47f04
parentbfbd3381e63aa2a14c6706afb50ce4630aa0d9a2
perf_counter: Rework the sample ABI

The PERF_EVENT_READ implementation made me realize we don't
actually need the sample_type int the output sample, since
we already have that in the perf_counter_attr information.

Therefore, remove the PERF_EVENT_MISC_OVERFLOW bit and the
event->type overloading, and imply put counter overflow
samples in a PERF_EVENT_SAMPLE type.

This also fixes the issue that event->type was only 32-bit
and sample_type had 64 usable bits.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_counter.h
kernel/perf_counter.c
tools/perf/builtin-annotate.c
tools/perf/builtin-report.c
tools/perf/builtin-top.c