]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - tools/perf/builtin-report.c
perf report: More robust error handling
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 26 May 2009 18:51:47 +0000 (20:51 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 26 May 2009 18:17:46 +0000 (20:17 +0200)
commit6142f9ec108a4ddbf0d5904c3daa5fdcaa618792
tree49bd3b00fa337832d85f9629b8671aa6f036ad6b
parentf49515b157e2d3ca3633eb0664fc46c42f6cb37e
perf report: More robust error handling

Don't let funny events confuse us, stick to what we know and
try to find sensible data again.

If we find an unknown event, check we're still u64 aligned, and
increment by one u64. This ensures we're bound to happen upon a
valid event soon.

Signed-off-by: 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