perf: Make common SAMPLE_EVENT parser
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Sun, 6 Dec 2009 11:08:24 +0000 (20:08 +0900)
committerIngo Molnar <mingo@elte.hu>
Sun, 6 Dec 2009 17:15:01 +0000 (18:15 +0100)
commit180f95e29aa8782c019caa64ede2a28d8ab62564
treeeefd1631820b00992f4495cc8cdba66a9155ee6c
parent028c515253761084c6594bf9ac9b194b51d87065
perf: Make common SAMPLE_EVENT parser

Currently, sample event data is parsed for each commands, and it
is assuming that the data is not including other data. (E.g.
timechart, trace, etc. can't parse the event if it has
PERF_SAMPLE_CALLCHAIN)

So, even if we record the superset data for multiple commands at
a time, commands can't parse. etc.

To fix it, this makes common sample event parser, and use it to
parse sample event correctly. (PERF_SAMPLE_READ is unsupported
for now though, it seems to be not using.)

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <87hbs48imv.fsf@devron.myhome.or.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-kmem.c
tools/perf/builtin-report.c
tools/perf/builtin-sched.c
tools/perf/builtin-timechart.c
tools/perf/builtin-trace.c
tools/perf/util/event.c
tools/perf/util/event.h