u64 start;
int nr_asm_entries;
int nr_entries;
- int nr_jumps;
bool searching_backwards;
u8 addr_width;
u8 jumps_width;
return map_symbol__tui_annotate(&he->ms, evsel, hbt);
}
-static void annotate_browser__mark_jump_targets(struct annotate_browser *browser,
- size_t size)
+static void annotation__mark_jump_targets(struct annotation *notes, struct symbol *sym)
{
- u64 offset;
- struct map_symbol *ms = browser->b.priv;
- struct symbol *sym = ms->sym;
- struct annotation *notes = symbol__annotation(sym);
+ u64 offset, size = symbol__size(sym);
/* PLT symbols contain external offsets */
if (strstr(sym->name, "@plt"))
if (++blt->jump_sources > notes->max_jump_sources)
notes->max_jump_sources = blt->jump_sources;
- ++browser->nr_jumps;
+ ++notes->nr_jumps;
}
}
bpos->idx_asm = -1;
}
- annotate_browser__mark_jump_targets(&browser, size);
+ annotation__mark_jump_targets(notes, sym);
annotation__compute_ipc(notes, size);
browser.addr_width = browser.target_width = browser.min_addr_width = hex_width(size);