perf timechart: Remove open-coded event parsing code
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 1 Dec 2009 06:05:16 +0000 (14:05 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 1 Dec 2009 07:14:09 +0000 (08:14 +0100)
commit5cbd08056142dcb2aea0dca7261afcb810a63c55
treee9dda70850d64b9dea7b1b469276c37c6356fa99
parentbab81b624e970f1138535a465ad2b26b6bb0dd6c
perf timechart: Remove open-coded event parsing code

Convert builtin-timechart.c to mmap_dispatch_perf_file() +
perf_file_handler.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Arjan van de Ven <arjan@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4B14B21C.2040406@cn.fujitsu.com>
[ v2: cleaned up the printout, fixed a whitespace detail ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-timechart.c