pref_counter: tools: report: Robustify in case of weird events
authorIngo Molnar <mingo@elte.hu>
Wed, 27 May 2009 20:13:17 +0000 (22:13 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 27 May 2009 20:19:58 +0000 (22:19 +0200)
commit55717314c4e3a5180a54228a2f97e50f3496de4c
tree14c49455a28011e8122bfdec48162363a2090bbd
parent2d65537ee7cd4a0818ea80a97ab7932368fff5cd
pref_counter: tools: report: Robustify in case of weird events

This error condition:

  aldebaran:~/linux/linux/Documentation/perf_counter> perf report
  dso__load_sym: cannot get elf header.
  failed to open: /etc/ld.so.cache
  problem processing PERF_EVENT_MMAP, bailing out

caused the profile to be very short - as the error was at the beginning
of the file and we bailed out completely.

Be more permissive and consider the event broken instead.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/builtin-report.c