• F
    perf tools: Provide backward compatibility with previous perf.data version · 26dd2cb0
    Frederic Weisbecker 提交于
    We have merged the trace.info file into perf.data by adding one
    section in the perf headers. This makes it incompatible with
    previous version: the new perf tools can't read the older
    perf.data.
    
    To support the previous format, we check the headers size. If they
    have the same size than in the previous format, then ignore the
    trace info section that doesn't exist.
    Signed-off-by: NFrederic 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>
    LKML-Reference: <1255032449-12022-1-git-send-email-fweisbec@gmail.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    26dd2cb0
header.c 7.8 KB