perf trace: Fix parsing of perf.data
authorIngo Molnar <mingo@elte.hu>
Thu, 3 Sep 2009 14:19:57 +0000 (16:19 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 3 Sep 2009 14:19:57 +0000 (16:19 +0200)
commit8886f42d6d8dabeb488c706c339634a0e3e08df4
tree21774d1711bfe4f4e49c126f27ff31a5d059bd0c
parent6ddf259da76cab6555c2086386f8bcd10bbb86d2
perf trace: Fix parsing of perf.data

We started parsing perf.data at head 0. This caused -D to
segfault and it could possibly also case incorrect trace
entries to be displayed.

Parse it at data_offset instead.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-trace.c