• Home
  • Raw
  • Download

Lines Matching refs:sym

19 int symbol__annotate_init(struct map *map __used, struct symbol *sym)  in symbol__annotate_init()  argument
21 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_init()
26 int symbol__alloc_hist(struct symbol *sym, int nevents) in symbol__alloc_hist() argument
28 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist()
30 (sym->end - sym->start) * sizeof(u64)); in symbol__alloc_hist()
41 void symbol__annotate_zero_histograms(struct symbol *sym) in symbol__annotate_zero_histograms() argument
43 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histograms()
52 int symbol__inc_addr_samples(struct symbol *sym, struct map *map, in symbol__inc_addr_samples() argument
59 notes = symbol__annotation(sym); in symbol__inc_addr_samples()
65 if (addr >= sym->end) in symbol__inc_addr_samples()
68 offset = addr - sym->start; in symbol__inc_addr_samples()
74 ", evidx=%d] => %" PRIu64 "\n", sym->start, sym->name, in symbol__inc_addr_samples()
75 addr, addr - sym->start, evidx, h->addr[offset]); in symbol__inc_addr_samples()
112 static int objdump_line__print(struct objdump_line *oline, struct symbol *sym, in objdump_line__print() argument
125 struct annotation *notes = symbol__annotation(sym); in objdump_line__print()
158 objdump_line__print(queue, sym, evidx, len, in objdump_line__print()
197 static int symbol__parse_objdump_line(struct symbol *sym, struct map *map, in symbol__parse_objdump_line() argument
200 struct annotation *notes = symbol__annotation(sym); in symbol__parse_objdump_line()
241 u64 start = map__rip_2objdump(map, sym->start), in symbol__parse_objdump_line()
242 end = map__rip_2objdump(map, sym->end); in symbol__parse_objdump_line()
261 int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize)
263 int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize, in symbol__annotate() argument
284 sym->name); in symbol__annotate()
321 sym->name, build_id_msg ?: ""); in symbol__annotate()
326 filename, sym->name, map->unmap_ip(map, sym->start), in symbol__annotate()
327 map->unmap_ip(map, sym->end)); in symbol__annotate()
330 dso, dso->long_name, sym, sym->name); in symbol__annotate()
337 map__rip_2objdump(map, sym->start), in symbol__annotate()
338 map__rip_2objdump(map, sym->end), in symbol__annotate()
344 map__rip_2objdump(map, sym->start), in symbol__annotate()
345 map__rip_2objdump(map, sym->end), in symbol__annotate()
358 if (symbol__parse_objdump_line(sym, map, file, privsize) < 0) in symbol__annotate()
388 static void symbol__free_source_line(struct symbol *sym, int len) in symbol__free_source_line() argument
390 struct annotation *notes = symbol__annotation(sym); in symbol__free_source_line()
402 static int symbol__get_source_line(struct symbol *sym, struct map *map, in symbol__get_source_line() argument
410 struct annotation *notes = symbol__annotation(sym); in symbol__get_source_line()
422 start = map->unmap_ip(map, sym->start); in symbol__get_source_line()
425 start = sym->start; in symbol__get_source_line()
492 static void symbol__annotate_hits(struct symbol *sym, int evidx) in symbol__annotate_hits() argument
494 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_hits()
496 u64 len = sym->end - sym->start, offset; in symbol__annotate_hits()
501 sym->start + offset, h->addr[offset]); in symbol__annotate_hits()
505 int symbol__annotate_printf(struct symbol *sym, struct map *map, int evidx, in symbol__annotate_printf() argument
511 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_printf()
522 len = sym->end - sym->start; in symbol__annotate_printf()
528 symbol__annotate_hits(sym, evidx); in symbol__annotate_printf()
536 switch (objdump_line__print(pos, sym, evidx, len, min_pcnt, in symbol__annotate_printf()
569 void symbol__annotate_zero_histogram(struct symbol *sym, int evidx) in symbol__annotate_zero_histogram() argument
571 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histogram()
577 void symbol__annotate_decay_histogram(struct symbol *sym, int evidx) in symbol__annotate_decay_histogram() argument
579 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_decay_histogram()
582 int len = sym->end - sym->start; in symbol__annotate_decay_histogram()
604 int symbol__tty_annotate(struct symbol *sym, struct map *map, int evidx, in symbol__tty_annotate() argument
615 if (symbol__annotate(sym, map, 0) < 0) in symbol__tty_annotate()
618 if (symbol__annotate(sym, map, 0, print_lines) < 0) in symbol__tty_annotate()
623 len = sym->end - sym->start; in symbol__tty_annotate()
626 symbol__get_source_line(sym, map, evidx, &source_line, in symbol__tty_annotate()
631 symbol__annotate_printf(sym, map, evidx, full_paths, in symbol__tty_annotate()
634 symbol__free_source_line(sym, len); in symbol__tty_annotate()
636 objdump_line_list__purge(&symbol__annotation(sym)->src->source); in symbol__tty_annotate()