Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304849
b: refs/heads/master
c: 51a0d45
h: refs/heads/master
i:
  304847: 735e6ab
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Apr 20, 2012
1 parent 81332c1 commit 2bae3ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d22328855666464731ee95d9e1e8d35dc7a39d8d
refs/heads/master: 51a0d455b5f44cb4680e0a89f99860b669e40d0f
13 changes: 12 additions & 1 deletion trunk/tools/perf/ui/browsers/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,20 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
if (change_color)
ui_browser__set_color(self, color);
if (dl->ins && dl->ins->ops->scnprintf) {
if (ins__is_jump(dl->ins)) {
bool fwd = dl->ops.target > (u64)dl->offset;

SLsmg_set_char_set(1);
SLsmg_write_char(fwd ? SLSMG_DARROW_CHAR :
SLSMG_UARROW_CHAR);
SLsmg_set_char_set(0);
SLsmg_write_char(' ');
} else {
slsmg_write_nstring(" ", 2);
}

dl->ins->ops->scnprintf(dl->ins, bf, sizeof(bf), &dl->ops,
!ab->use_offset);
slsmg_write_nstring(" ", 2);
printed += 2;
} else
scnprintf(bf, sizeof(bf), " %-6.6s %s", dl->name, dl->ops.raw);
Expand Down

0 comments on commit 2bae3ee

Please sign in to comment.