Lines Matching refs:ms
213 static int __symbol__inc_addr_samples(struct map_symbol *ms, in __symbol__inc_addr_samples() argument
217 struct symbol *sym = ms->sym; in __symbol__inc_addr_samples()
223 pr_debug3("%s: addr=%#" PRIx64 "\n", __func__, map__unmap_ip(ms->map, addr)); in __symbol__inc_addr_samples()
318 static int symbol__inc_addr_samples(struct map_symbol *ms, in symbol__inc_addr_samples() argument
322 struct symbol *sym = ms->sym; in symbol__inc_addr_samples()
328 return src ? __symbol__inc_addr_samples(ms, src, evsel, addr, sample) : 0; in symbol__inc_addr_samples()
412 (start->ms.sym == ams->ms.sym || in addr_map_symbol__account_cycles()
413 (ams->ms.sym && in addr_map_symbol__account_cycles()
414 start->addr == ams->ms.sym->start + map__start(ams->ms.map)))) in addr_map_symbol__account_cycles()
420 ams->ms.sym ? ams->ms.sym->start + map__start(ams->ms.map) : 0, in addr_map_symbol__account_cycles()
422 err = symbol__account_cycles(ams->al_addr, saddr, ams->ms.sym, cycles, evsel, br_cntr); in addr_map_symbol__account_cycles()
585 return symbol__inc_addr_samples(&ams->ms, evsel, ams->al_addr, sample); in addr_map_symbol__inc_samples()
591 return symbol__inc_addr_samples(&he->ms, evsel, ip, sample); in hist_entry__inc_addr_samples()
782 struct symbol *sym = apd->he->ms.sym; in annotation_line__print()
1010 int symbol__annotate(struct map_symbol *ms, struct evsel *evsel, in symbol__annotate() argument
1013 struct symbol *sym = ms->sym; in symbol__annotate()
1033 args.ms = *ms; in symbol__annotate()
1055 notes->src->start = map__objdump_2mem(ms->map, ms->sym->start); in symbol__annotate()
1057 notes->src->start = map__rip_2objdump(ms->map, ms->sym->start); in symbol__annotate()
1219 struct map_symbol *ms = &he->ms; in hist_entry__annotate_printf() local
1220 struct map *map = ms->map; in hist_entry__annotate_printf()
1221 struct symbol *sym = ms->sym; in hist_entry__annotate_printf()
1385 int map_symbol__annotation_dump(struct map_symbol *ms, struct evsel *evsel) in map_symbol__annotation_dump() argument
1393 if (asprintf(&filename, "%s.annotation", ms->sym->name) < 0) in map_symbol__annotation_dump()
1406 ms->sym->name, dso__long_name(map__dso(ms->map)), ev_name); in map_symbol__annotation_dump()
1407 symbol__annotate_fprintf2(ms->sym, fp); in map_symbol__annotation_dump()
1600 void annotation__toggle_full_addr(struct annotation *notes, struct map_symbol *ms) in annotation__toggle_full_addr() argument
1605 notes->src->start = map__objdump_2mem(ms->map, ms->sym->start); in annotation__toggle_full_addr()
1607 notes->src->start = map__rip_2objdump(ms->map, ms->sym->start); in annotation__toggle_full_addr()
1612 static void annotation__calc_lines(struct annotation *notes, struct map_symbol *ms, in annotation__calc_lines() argument
1636 addr = map__rip_2objdump(ms->map, ms->sym->start); in annotation__calc_lines()
1637 al->path = get_srcline(map__dso(ms->map), addr + al->offset, NULL, in annotation__calc_lines()
1638 false, true, ms->sym->start + al->offset); in annotation__calc_lines()
1645 static void symbol__calc_lines(struct map_symbol *ms, struct rb_root *root) in symbol__calc_lines() argument
1647 struct annotation *notes = symbol__annotation(ms->sym); in symbol__calc_lines()
1649 annotation__calc_lines(notes, ms, root); in symbol__calc_lines()
1654 struct map_symbol *ms = &he->ms; in hist_entry__tty_annotate2() local
1655 struct dso *dso = map__dso(ms->map); in hist_entry__tty_annotate2()
1656 struct symbol *sym = ms->sym; in hist_entry__tty_annotate2()
1662 err = symbol__annotate2(ms, evsel, NULL); in hist_entry__tty_annotate2()
1667 symbol__strerror_disassemble(ms, err, msg, sizeof(msg)); in hist_entry__tty_annotate2()
1674 symbol__calc_lines(ms, &source_line); in hist_entry__tty_annotate2()
1690 struct map_symbol *ms = &he->ms; in hist_entry__tty_annotate() local
1691 struct dso *dso = map__dso(ms->map); in hist_entry__tty_annotate()
1692 struct symbol *sym = ms->sym; in hist_entry__tty_annotate()
1696 err = symbol__annotate(ms, evsel, NULL); in hist_entry__tty_annotate()
1701 symbol__strerror_disassemble(ms, err, msg, sizeof(msg)); in hist_entry__tty_annotate()
1710 symbol__calc_lines(ms, &source_line); in hist_entry__tty_annotate()
2129 int symbol__annotate2(struct map_symbol *ms, struct evsel *evsel, in symbol__annotate2() argument
2132 struct symbol *sym = ms->sym; in symbol__annotate2()
2137 err = symbol__annotate(ms, evsel, parch); in symbol__annotate2()
2664 u64 annotate_calc_pcrel(struct map_symbol *ms, u64 ip, int offset, in annotate_calc_pcrel() argument
2671 notes = symbol__annotation(ms->sym); in annotate_calc_pcrel()
2681 addr = ms->sym->end + offset; in annotate_calc_pcrel()
2685 return map__rip_2objdump(ms->map, addr); in annotate_calc_pcrel()
2707 struct map_symbol *ms = &he->ms; in __hist_entry__get_data_type() local
2736 .ms = ms, in __hist_entry__get_data_type()
2737 .ip = ms->sym->start + dl->al.offset, in __hist_entry__get_data_type()
2748 dloc.var_addr = annotate_calc_pcrel(ms, dloc.ip, in __hist_entry__get_data_type()
2753 if (dso__kernel(map__dso(ms->map)) && arch__is(arch, "x86") && in __hist_entry__get_data_type()
2799 struct map_symbol *ms = &he->ms; in hist_entry__get_data_type() local
2809 if (ms->map == NULL || ms->sym == NULL) { in hist_entry__get_data_type()
2827 if (map__dso(ms->map) != di_cache.dso) { in hist_entry__get_data_type()
2829 di_cache.dso = dso__get(map__dso(ms->map)); in hist_entry__get_data_type()
2841 if (symbol__annotate(ms, evsel, &arch) < 0) { in hist_entry__get_data_type()
2850 dl = find_disasm_line(ms->sym, ip, /*allow_update=*/true); in hist_entry__get_data_type()
2870 notes = symbol__annotation(ms->sym); in hist_entry__get_data_type()