perf annotate: Check if offset is less than symbol size
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Feb 2011 15:56:28 +0000 (13:56 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 Feb 2011 16:47:55 +0000 (14:47 -0200)
commit289c082044643e55f65c6a16bb3621cf3f35a454
tree5d4f1bcd70435e16bc0cd57b824d50c25290d972
parent5c35d69fb60b1dc49595f5b9a2c7158283e9eaf3
perf annotate: Check if offset is less than symbol size

Just like done on symbol__inc_addr_samples to catch misparsed offsets
from objdump.

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>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c