Lines Matching refs:sym
205 static bool disasm_line__is_valid_jump(struct disasm_line *dl, struct symbol *sym) in disasm_line__is_valid_jump() argument
209 || dl->ops.target.offset >= symbol__size(sym)) in disasm_line__is_valid_jump()
222 struct symbol *sym = ms->sym; in annotate_browser__draw_current_jump() local
226 if (strstr(sym->name, "@plt")) in annotate_browser__draw_current_jump()
229 if (!disasm_line__is_valid_jump(cursor, sym)) in annotate_browser__draw_current_jump()
346 struct symbol *sym = ms->sym; in annotate_browser__calc_percent() local
347 struct annotation *notes = symbol__annotation(sym); in annotate_browser__calc_percent()
349 s64 len = symbol__size(sym); in annotate_browser__calc_percent()
438 static int sym_title(struct symbol *sym, struct map *map, char *title, in sym_title() argument
441 return snprintf(title, sz, "%s %s", sym->name, map->dso->long_name); in sym_title()
468 notes = symbol__annotation(target.sym); in annotate_browser__callq()
471 if (notes->src == NULL && symbol__alloc_hist(target.sym) < 0) { in annotate_browser__callq()
474 target.sym->name); in annotate_browser__callq()
479 symbol__tui_annotate(target.sym, target.map, evsel, hbt); in annotate_browser__callq()
480 sym_title(ms->sym, ms->map, title, sizeof(title)); in annotate_browser__callq()
490 struct symbol *sym = ms->sym; in annotate_browser__find_offset() local
491 struct annotation *notes = symbol__annotation(sym); in annotate_browser__find_offset()
529 struct symbol *sym = ms->sym; in annotate_browser__find_string() local
530 struct annotation *notes = symbol__annotation(sym); in annotate_browser__find_string()
568 struct symbol *sym = ms->sym; in annotate_browser__find_string_reverse() local
569 struct annotation *notes = symbol__annotation(sym); in annotate_browser__find_string_reverse()
669 struct symbol *sym = ms->sym; in annotate_browser__run() local
675 sym_title(sym, ms->map, title, sizeof(title)); in annotate_browser__run()
708 symbol__annotate_decay_histogram(sym, evsel->idx); in annotate_browser__run()
835 return symbol__tui_annotate(ms->sym, ms->map, evsel, hbt); in map_symbol__tui_annotate()
849 struct symbol *sym = ms->sym; in annotate_browser__mark_jump_targets() local
852 if (strstr(sym->name, "@plt")) in annotate_browser__mark_jump_targets()
859 if (!disasm_line__is_valid_jump(dl, sym)) in annotate_browser__mark_jump_targets()
887 int symbol__tui_annotate(struct symbol *sym, struct map *map, in symbol__tui_annotate() argument
896 .sym = sym, in symbol__tui_annotate()
912 if (sym == NULL) in symbol__tui_annotate()
915 size = symbol__size(sym); in symbol__tui_annotate()
931 if (symbol__annotate(sym, map, sizeof_bdl) < 0) { in symbol__tui_annotate()
938 notes = symbol__annotation(sym); in symbol__tui_annotate()
939 browser.start = map__rip_2objdump(map, sym->start); in symbol__tui_annotate()
967 browser.max_addr_width = hex_width(sym->end); in symbol__tui_annotate()