From: Konstantin Stepanyuk Date: Wed, 26 May 2010 22:10:11 +0000 (+0400) Subject: perf hist: fix objdump output parsing X-Git-Tag: v2.6.35-rc2~47^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75d9ef1707cf3db264a549142a1f54a5380d63dc;p=pandora-kernel.git perf hist: fix objdump output parsing hist_entry__annotate() runs objdump with -S option so the output may contain lines of any format. If a line starts with a colon strtoull() returns 0 and calculated offset will be negative. This causes perf annotate segfaults. Make sure that strtoull() has parsed at least one digit. Cc: David S. Miller Cc: Frédéric Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Konstantin Stepanyuk Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed