mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
perf annotate: Print asm code as blue when source code is displayed
Print unselected asm code lines as blue. This is what we do now for --stdio. Cc: Ingo Molnar <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
67cbbd7f18
commit
58e817d997
@@ -69,14 +69,17 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
|
||||
if (!self->navkeypressed)
|
||||
width += 1;
|
||||
|
||||
if (!ab->hide_src_code && ol->offset != -1)
|
||||
if (!current_entry || (self->use_navkeypressed &&
|
||||
!self->navkeypressed))
|
||||
ui_browser__set_color(self, HE_COLORSET_CODE);
|
||||
|
||||
if (!*ol->line)
|
||||
slsmg_write_nstring(" ", width - 18);
|
||||
else
|
||||
slsmg_write_nstring(ol->line, width - 18);
|
||||
|
||||
if (!current_entry)
|
||||
ui_browser__set_color(self, HE_COLORSET_CODE);
|
||||
else
|
||||
if (current_entry)
|
||||
ab->selection = ol;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user