perf annotate: Handle ins parsing failures
authorRabin Vincent <[email protected]>
Sun, 18 Jan 2015 19:00:20 +0000 (20:00 +0100)
committerArnaldo Carvalho de Melo <[email protected]>
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 <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/annotate.c