• Ingo Molnar's avatar
    perf trace: Fix parsing of perf.data · 8886f42d
    Ingo Molnar authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    8886f42d
builtin-trace.c 5.91 KB