perf tools: Unify perf.data mapping and events handling
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 7 Oct 2009 10:47:31 +0000 (12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 8 Oct 2009 14:56:32 +0000 (16:56 +0200)
commit016e92fbc9ef33689cf654f343a94383d43235e7
treeedf9dc21d037ea138300b7e7e32574e6f6f17fb2
parent03456a158d9067d2f657bec170506009db81756d
perf tools: Unify perf.data mapping and events handling

This librarizes the perf.data file mapping and handling in various
perf tools, roughly reducing the amount of code and fixing the
places that mmap from beginning of the file whereas we want to mmap
from the beginning of the data, leading to page fault because the
mmap window is too small since the trace info are written in the
file too.

TODO:

 - convert perf timechart too

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arjan van de Ven <arjan@infradead.org>
LKML-Reference: <20091007104729.GD5043@nowhere>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Makefile
tools/perf/builtin-report.c
tools/perf/builtin-sched.c
tools/perf/builtin-trace.c
tools/perf/util/data_map.c [new file with mode: 0644]
tools/perf/util/data_map.h [new file with mode: 0644]