Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304937
b: refs/heads/master
c: 7d5b12f
h: refs/heads/master
i:
  304935: a4a40c5
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 12, 2012
1 parent cc1a381 commit 199c1e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: c46219ac34f0f365bac700ca6a10ef979c643233
refs/heads/master: 7d5b12f5a01d338d23874c7c242a74813a8848b2
6 changes: 3 additions & 3 deletions trunk/tools/perf/ui/browsers/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct browser_disasm_line {
double percent;
u32 idx;
int idx_asm;
bool jump_target;
int jump_sources;
};

struct annotate_browser {
Expand Down Expand Up @@ -98,7 +98,7 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
if (!ab->use_offset) {
printed = scnprintf(bf, sizeof(bf), "%" PRIx64 ": ", addr);
} else {
if (bdl->jump_target) {
if (bdl->jump_sources) {
printed = scnprintf(bf, sizeof(bf), "%*" PRIx64 ": ",
ab->addr_width, addr);
} else {
Expand Down Expand Up @@ -707,7 +707,7 @@ static void annotate_browser__mark_jump_targets(struct annotate_browser *browser
continue;

bdlt = disasm_line__browser(dlt);
bdlt->jump_target = true;
++bdlt->jump_sources;
}

}
Expand Down

0 comments on commit 199c1e5

Please sign in to comment.