• Arnaldo Carvalho de Melo's avatar
    perf build-id: Add quirk to deal with perf.data file format breakage · b2511481
    Arnaldo Carvalho de Melo authored
    The a1645ce1 changeset:
    
    "perf: 'perf kvm' tool for monitoring guest performance from host"
    
    Added a field to struct build_id_event that broke the file format.
    
    Since the kernel build-id is the first entry, process the table using
    the old format if the well known '[kernel.kallsyms]' string for the
    kernel build-id has the first 4 characters chopped off (where the pid_t
    sits).
    Reported-by: default avatarHan Pingtian <phan@redhat.com>
    Cc: Avi Kivity <avi@redhat.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Tom Zanussi <tzanussi@gmail.com>
    Cc: Zhang Yanmin <yanmin_zhang@linux.intel.com>
    Cc: stable@kernel.org
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    b2511481
header.c 28.7 KB