perf annotate: Handle ins parsing failures
authorRabin Vincent <rabin@rab.in>
Sun, 18 Jan 2015 19:00:20 +0000 (20:00 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jan 2015 13:05:17 +0000 (10:05 -0300)
commitbe81908c2289f405df75d2511ccf5da785945400
tree091dfe44f434c1eb29e5224d21d058f44e68f4ae
parent75e0b5f010837f29b5773653a248852a7317562b
perf annotate: Handle ins parsing failures

Don't use the ins's ->sncprintf() if the parsing failed.

For example, this fixes the display of "imul %edx".  Without this patch:

       |      imul   (null),(null)

After this patch:

       |      imul   %edx

Signed-off-by: Rabin Vincent <rabin@rab.in>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1421607621-15005-1-git-send-email-rabin@rab.in
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
This page took 0.026206 seconds and 5 git commands to generate.