Lines Matching refs:sym
245 static bool disasm_line__is_valid_jump(struct disasm_line *dl, struct symbol *sym) in disasm_line__is_valid_jump() argument
249 || dl->ops.target.offset >= symbol__size(sym)) in disasm_line__is_valid_jump()
262 struct symbol *sym = ms->sym; in annotate_browser__draw_current_jump() local
266 if (strstr(sym->name, "@plt")) in annotate_browser__draw_current_jump()
269 if (!disasm_line__is_valid_jump(cursor, sym)) in annotate_browser__draw_current_jump()
382 struct symbol *sym = ms->sym; in annotate_browser__calc_percent() local
383 struct annotation *notes = symbol__annotation(sym); in annotate_browser__calc_percent()
385 s64 len = symbol__size(sym); in annotate_browser__calc_percent()
477 static int sym_title(struct symbol *sym, struct map *map, char *title, in sym_title() argument
480 return snprintf(title, sz, "%s %s", sym->name, map->dso->long_name); in sym_title()
507 notes = symbol__annotation(target.sym); in annotate_browser__callq()
510 if (notes->src == NULL && symbol__alloc_hist(target.sym) < 0) { in annotate_browser__callq()
513 target.sym->name); in annotate_browser__callq()
518 symbol__tui_annotate(target.sym, target.map, evsel, hbt); in annotate_browser__callq()
519 sym_title(ms->sym, ms->map, title, sizeof(title)); in annotate_browser__callq()
529 struct symbol *sym = ms->sym; in annotate_browser__find_offset() local
530 struct annotation *notes = symbol__annotation(sym); in annotate_browser__find_offset()
568 struct symbol *sym = ms->sym; in annotate_browser__find_string() local
569 struct annotation *notes = symbol__annotation(sym); in annotate_browser__find_string()
607 struct symbol *sym = ms->sym; in annotate_browser__find_string_reverse() local
608 struct annotation *notes = symbol__annotation(sym); in annotate_browser__find_string_reverse()
708 struct symbol *sym = ms->sym; in annotate_browser__run() local
714 sym_title(sym, ms->map, title, sizeof(title)); in annotate_browser__run()
747 symbol__annotate_decay_histogram(sym, evsel->idx); in annotate_browser__run()
884 return symbol__tui_annotate(ms->sym, ms->map, evsel, hbt); in map_symbol__tui_annotate()
939 struct symbol *sym) in annotate__compute_ipc() argument
942 struct annotation *notes = symbol__annotation(sym); in annotate__compute_ipc()
971 struct symbol *sym = ms->sym; in annotate_browser__mark_jump_targets() local
974 if (strstr(sym->name, "@plt")) in annotate_browser__mark_jump_targets()
981 if (!disasm_line__is_valid_jump(dl, sym)) in annotate_browser__mark_jump_targets()
1009 int symbol__tui_annotate(struct symbol *sym, struct map *map, in symbol__tui_annotate() argument
1018 .sym = sym, in symbol__tui_annotate()
1034 if (sym == NULL) in symbol__tui_annotate()
1037 size = symbol__size(sym); in symbol__tui_annotate()
1054 if (symbol__annotate(sym, map, sizeof_bdl) < 0) { in symbol__tui_annotate()
1061 notes = symbol__annotation(sym); in symbol__tui_annotate()
1062 browser.start = map__rip_2objdump(map, sym->start); in symbol__tui_annotate()
1088 annotate__compute_ipc(&browser, size, sym); in symbol__tui_annotate()
1091 browser.max_addr_width = hex_width(sym->end); in symbol__tui_annotate()