diff options
| author | Konstantin Stepanyuk <[email protected]> | 2010-05-26 22:10:11 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-06-01 08:44:36 +0000 |
| commit | 75d9ef1707cf3db264a549142a1f54a5380d63dc (patch) | |
| tree | b23265c9b0ad7fb042e3f472ca5fed7b0a0205d3 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | blktrace: Fix new kernel-doc warnings (diff) | |
| download | kernel-75d9ef1707cf3db264a549142a1f54a5380d63dc.tar.gz kernel-75d9ef1707cf3db264a549142a1f54a5380d63dc.zip | |
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 <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Konstantin Stepanyuk <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
