• Home
  • Raw
  • Download

Lines Matching refs:sym

275 		ops->target.sym = target.ms.sym;  in call__parse()
295 if (ops->target.sym) in call__scnprintf()
296 return scnprintf(bf, size, "%-*s %s", max_ins_name, ins->name, ops->target.sym->name); in call__scnprintf()
338 struct symbol *sym = ms->sym; in jump__parse() local
378 start = map->unmap_ip(map, sym->start), in jump__parse()
379 end = map->unmap_ip(map, sym->end); in jump__parse()
403 ops->target.sym = target.ms.sym; in jump__parse()
423 if (ops->target.outside && ops->target.sym != NULL) in jump__scnprintf()
424 return scnprintf(bf, size, "%-*s %s", max_ins_name, ins->name, ops->target.sym->name); in jump__scnprintf()
799 static int symbol__alloc_hist_cycles(struct symbol *sym) in symbol__alloc_hist_cycles() argument
801 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist_cycles()
802 const size_t size = symbol__size(sym); in symbol__alloc_hist_cycles()
810 void symbol__annotate_zero_histograms(struct symbol *sym) in symbol__annotate_zero_histograms() argument
812 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histograms()
820 symbol__size(sym) * sizeof(struct cyc_hist)); in symbol__annotate_zero_histograms()
879 struct symbol *sym = ms->sym; in __symbol__inc_addr_samples() local
885 if ((addr < sym->start || addr >= sym->end) && in __symbol__inc_addr_samples()
886 (addr != sym->end || sym->start != sym->end)) { in __symbol__inc_addr_samples()
888 __func__, __LINE__, sym->name, sym->start, addr, sym->end); in __symbol__inc_addr_samples()
892 offset = addr - sym->start; in __symbol__inc_addr_samples()
896 __func__, __LINE__, sym->name, sym->start, addr, sym->end, sym->type == STT_FUNC); in __symbol__inc_addr_samples()
906 sym->start, sym->name, addr, addr - sym->start, evidx, in __symbol__inc_addr_samples()
911 static struct cyc_hist *symbol__cycles_hist(struct symbol *sym) in symbol__cycles_hist() argument
913 struct annotation *notes = symbol__annotation(sym); in symbol__cycles_hist()
924 symbol__alloc_hist_cycles(sym); in symbol__cycles_hist()
930 struct annotated_source *symbol__hists(struct symbol *sym, int nr_hists) in symbol__hists() argument
932 struct annotation *notes = symbol__annotation(sym); in symbol__hists()
943 annotated_source__alloc_histograms(notes->src, symbol__size(sym), in symbol__hists()
954 struct symbol *sym = ms->sym; in symbol__inc_addr_samples() local
957 if (sym == NULL) in symbol__inc_addr_samples()
959 src = symbol__hists(sym, evsel->evlist->core.nr_entries); in symbol__inc_addr_samples()
964 struct symbol *sym, unsigned cycles) in symbol__account_cycles() argument
969 if (sym == NULL) in symbol__account_cycles()
971 cycles_hist = symbol__cycles_hist(sym); in symbol__account_cycles()
974 if (addr < sym->start || addr >= sym->end) in symbol__account_cycles()
978 if (start < sym->start || start >= sym->end) in symbol__account_cycles()
983 offset = addr - sym->start; in symbol__account_cycles()
985 start ? start - sym->start : 0, in symbol__account_cycles()
1008 (start->ms.sym == ams->ms.sym || in addr_map_symbol__account_cycles()
1009 (ams->ms.sym && in addr_map_symbol__account_cycles()
1010 start->addr == ams->ms.sym->start + ams->ms.map->start))) in addr_map_symbol__account_cycles()
1016 ams->ms.sym ? ams->ms.sym->start + ams->ms.map->start : 0, in addr_map_symbol__account_cycles()
1018 err = symbol__account_cycles(ams->al_addr, saddr, ams->ms.sym, cycles); in addr_map_symbol__account_cycles()
1358 annotation_line__print(struct annotation_line *al, struct symbol *sym, u64 start, in annotation_line__print() argument
1371 struct annotation *notes = symbol__annotation(sym); in annotation_line__print()
1396 annotation_line__print(queue, sym, start, evsel, len, in annotation_line__print()
1479 static int symbol__parse_objdump_line(struct symbol *sym, in symbol__parse_objdump_line() argument
1484 struct annotation *notes = symbol__annotation(sym); in symbol__parse_objdump_line()
1499 u64 start = map__rip_2objdump(map, sym->start), in symbol__parse_objdump_line()
1500 end = map__rip_2objdump(map, sym->end); in symbol__parse_objdump_line()
1512 args->ms.sym = sym; in symbol__parse_objdump_line()
1522 map__rip_2objdump(map, sym->start); in symbol__parse_objdump_line()
1527 if (dl->ins.ops && ins__is_call(&dl->ins) && !dl->ops.target.sym) { in symbol__parse_objdump_line()
1534 target.ms.sym->start == target.al_addr) in symbol__parse_objdump_line()
1535 dl->ops.target.sym = target.ms.sym; in symbol__parse_objdump_line()
1548 static void delete_last_nop(struct symbol *sym) in delete_last_nop() argument
1550 struct annotation *notes = symbol__annotation(sym); in delete_last_nop()
1688 static int symbol__disassemble_bpf(struct symbol *sym, in symbol__disassemble_bpf() argument
1691 struct annotation *notes = symbol__annotation(sym); in symbol__disassemble_bpf()
1696 int len = sym->end - sym->start; in symbol__disassemble_bpf()
1715 sym->name, sym->start, sym->end - sym->start); in symbol__disassemble_bpf()
1806 args->ms.sym = sym; in symbol__disassemble_bpf()
1817 args->ms.sym = sym; in symbol__disassemble_bpf()
1834 static int symbol__disassemble_bpf(struct symbol *sym __maybe_unused, in symbol__disassemble_bpf()
1842 symbol__disassemble_bpf_image(struct symbol *sym, in symbol__disassemble_bpf_image() argument
1845 struct annotation *notes = symbol__annotation(sym); in symbol__disassemble_bpf_image()
1920 static int symbol__disassemble(struct symbol *sym, struct annotate_args *args) in symbol__disassemble() argument
1950 symfs_filename, sym->name, map->unmap_ip(map, sym->start), in symbol__disassemble()
1951 map->unmap_ip(map, sym->end)); in symbol__disassemble()
1954 dso, dso->long_name, sym, sym->name); in symbol__disassemble()
1957 return symbol__disassemble_bpf(sym, args); in symbol__disassemble()
1959 return symbol__disassemble_bpf_image(sym, args); in symbol__disassemble()
1962 kce.addr = map__rip_2objdump(map, sym->start); in symbol__disassemble()
1963 kce.offs = sym->start; in symbol__disassemble()
1964 kce.len = sym->end - sym->start; in symbol__disassemble()
1988 map__rip_2objdump(map, sym->start), in symbol__disassemble()
1989 map__rip_2objdump(map, sym->end), in symbol__disassemble()
2058 if (symbol__parse_objdump_line(sym, args, expanded_line, in symbol__disassemble()
2079 delete_last_nop(sym); in symbol__disassemble()
2160 void symbol__calc_percent(struct symbol *sym, struct evsel *evsel) in symbol__calc_percent() argument
2162 struct annotation *notes = symbol__annotation(sym); in symbol__calc_percent()
2164 annotation__calc_percent(notes, evsel, symbol__size(sym)); in symbol__calc_percent()
2170 struct symbol *sym = ms->sym; in symbol__annotate() local
2171 struct annotation *notes = symbol__annotation(sym); in symbol__annotate()
2200 notes->start = map__rip_2objdump(ms->map, sym->start); in symbol__annotate()
2202 return symbol__disassemble(sym, &args); in symbol__annotate()
2330 static void symbol__annotate_hits(struct symbol *sym, struct evsel *evsel) in symbol__annotate_hits() argument
2332 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_hits()
2334 u64 len = symbol__size(sym), offset; in symbol__annotate_hits()
2339 sym->start + offset, h->addr[offset].nr_samples); in symbol__annotate_hits()
2360 struct symbol *sym = ms->sym; in symbol__annotate_printf() local
2365 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_printf()
2368 u64 start = map__rip_2objdump(map, sym->start); in symbol__annotate_printf()
2386 len = symbol__size(sym); in symbol__annotate_printf()
2405 symbol__annotate_hits(sym, evsel); in symbol__annotate_printf()
2417 err = annotation_line__print(pos, sym, start, evsel, len, in symbol__annotate_printf()
2496 static int symbol__annotate_fprintf2(struct symbol *sym, FILE *fp, in symbol__annotate_fprintf2() argument
2499 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_fprintf2()
2531 if (asprintf(&filename, "%s.annotation", ms->sym->name) < 0) in map_symbol__annotation_dump()
2544 ms->sym->name, ms->map->dso->long_name, ev_name); in map_symbol__annotation_dump()
2545 symbol__annotate_fprintf2(ms->sym, fp, opts); in map_symbol__annotation_dump()
2554 void symbol__annotate_zero_histogram(struct symbol *sym, int evidx) in symbol__annotate_zero_histogram() argument
2556 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histogram()
2562 void symbol__annotate_decay_histogram(struct symbol *sym, int evidx) in symbol__annotate_decay_histogram() argument
2564 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_decay_histogram()
2566 int len = symbol__size(sym), offset; in symbol__annotate_decay_histogram()
2613 bool disasm_line__is_valid_local_jump(struct disasm_line *dl, struct symbol *sym) in disasm_line__is_valid_local_jump() argument
2617 dl->ops.target.offset >= (s64)symbol__size(sym)) in disasm_line__is_valid_local_jump()
2623 void annotation__mark_jump_targets(struct annotation *notes, struct symbol *sym) in annotation__mark_jump_targets() argument
2625 u64 offset, size = symbol__size(sym); in annotation__mark_jump_targets()
2628 if (strstr(sym->name, "@plt")) in annotation__mark_jump_targets()
2637 if (!disasm_line__is_valid_local_jump(dl, sym)) in annotation__mark_jump_targets()
2710 void annotation__init_column_widths(struct annotation *notes, struct symbol *sym) in annotation__init_column_widths() argument
2713 notes->widths.min_addr = hex_width(symbol__size(sym)); in annotation__init_column_widths()
2714 notes->widths.max_addr = hex_width(sym->end); in annotation__init_column_widths()
2767 struct annotation *notes = symbol__annotation(ms->sym); in symbol__calc_lines()
2776 struct symbol *sym = ms->sym; in symbol__tty_annotate2() local
2792 buf, percent_type_str(opts->percent_type), sym->name, dso->long_name); in symbol__tty_annotate2()
2793 symbol__annotate_fprintf2(sym, stdout, opts); in symbol__tty_annotate2()
2795 annotated_source__purge(symbol__annotation(sym)->src); in symbol__tty_annotate2()
2804 struct symbol *sym = ms->sym; in symbol__tty_annotate() local
2810 symbol__calc_percent(sym, evsel); in symbol__tty_annotate()
2820 annotated_source__purge(symbol__annotation(sym)->src); in symbol__tty_annotate()
2827 return use_browser == 1 && perf_hpp_list.sym; in ui__has_annotation()
3075 struct symbol *sym = ms->sym; in symbol__annotate2() local
3076 struct annotation *notes = symbol__annotation(sym); in symbol__annotate2()
3077 size_t size = symbol__size(sym); in symbol__annotate2()
3093 symbol__calc_percent(sym, evsel); in symbol__annotate2()
3096 annotation__mark_jump_targets(notes, sym); in symbol__annotate2()
3098 annotation__init_column_widths(notes, sym); in symbol__annotate2()
3102 sym->annotate2 = true; in symbol__annotate2()