Lines Matching refs:map
125 static int64_t _sort__dso_cmp(struct map *map_l, struct map *map_r) in _sort__dso_cmp()
148 return _sort__dso_cmp(right->ms.map, left->ms.map); in sort__dso_cmp()
151 static int _hist_entry__dso_snprintf(struct map *map, char *bf, in _hist_entry__dso_snprintf() argument
154 if (map && map->dso) { in _hist_entry__dso_snprintf()
155 const char *dso_name = !verbose ? map->dso->short_name : in _hist_entry__dso_snprintf()
156 map->dso->long_name; in _hist_entry__dso_snprintf()
166 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
229 static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym, in _hist_entry__sym_snprintf() argument
236 char o = map ? dso__symtab_origin(map->dso) : '!'; in _hist_entry__sym_snprintf()
242 if (sym && map) { in _hist_entry__sym_snprintf()
243 if (map->type == MAP__VARIABLE) { in _hist_entry__sym_snprintf()
246 ip - map->unmap_ip(map, sym->start)); in _hist_entry__sym_snprintf()
271 return _hist_entry__sym_snprintf(he->ms.map, he->ms.sym, he->ip, in hist_entry__sym_snprintf()
289 if (!left->ms.map) in sort__srcline_cmp()
292 struct map *map = left->ms.map; in sort__srcline_cmp() local
293 left->srcline = get_srcline(map->dso, in sort__srcline_cmp()
294 map__rip_2objdump(map, left->ip), in sort__srcline_cmp()
299 if (!right->ms.map) in sort__srcline_cmp()
302 struct map *map = right->ms.map; in sort__srcline_cmp() local
303 right->srcline = get_srcline(map->dso, in sort__srcline_cmp()
304 map__rip_2objdump(map, right->ip), in sort__srcline_cmp()
381 return _sort__dso_cmp(left->branch_info->from.map, in sort__dso_from_cmp()
382 right->branch_info->from.map); in sort__dso_from_cmp()
389 return _hist_entry__dso_snprintf(he->branch_info->from.map, in hist_entry__dso_from_snprintf()
401 return _sort__dso_cmp(left->branch_info->to.map, in sort__dso_to_cmp()
402 right->branch_info->to.map); in sort__dso_to_cmp()
409 return _hist_entry__dso_snprintf(he->branch_info->to.map, in hist_entry__dso_to_snprintf()
456 return _hist_entry__sym_snprintf(from->map, from->sym, from->addr, in hist_entry__sym_from_snprintf()
469 return _hist_entry__sym_snprintf(to->map, to->sym, to->addr, in hist_entry__sym_to_snprintf()
549 struct map *map = NULL; in hist_entry__daddr_snprintf() local
554 map = he->mem_info->daddr.map; in hist_entry__daddr_snprintf()
557 return _hist_entry__sym_snprintf(map, sym, addr, he->level, bf, size, in hist_entry__daddr_snprintf()
564 struct map *map_l = NULL; in sort__dso_daddr_cmp()
565 struct map *map_r = NULL; in sort__dso_daddr_cmp()
568 map_l = left->mem_info->daddr.map; in sort__dso_daddr_cmp()
570 map_r = right->mem_info->daddr.map; in sort__dso_daddr_cmp()
578 struct map *map = NULL; in hist_entry__dso_daddr_snprintf() local
581 map = he->mem_info->daddr.map; in hist_entry__dso_daddr_snprintf()
583 return _hist_entry__dso_snprintf(map, bf, size, width); in hist_entry__dso_daddr_snprintf()
839 struct map *l_map, *r_map; in sort__dcacheline_cmp()
848 l_map = left->mem_info->daddr.map; in sort__dcacheline_cmp()
849 r_map = right->mem_info->daddr.map; in sort__dcacheline_cmp()
904 struct map *map = NULL; in hist_entry__dcacheline_snprintf() local
910 map = he->mem_info->daddr.map; in hist_entry__dcacheline_snprintf()
915 map && (map->type == MAP__VARIABLE) && in hist_entry__dcacheline_snprintf()
916 (map->flags & MAP_SHARED) && in hist_entry__dcacheline_snprintf()
917 (map->maj || map->min || map->ino || in hist_entry__dcacheline_snprintf()
918 map->ino_generation)) in hist_entry__dcacheline_snprintf()
920 else if (!map) in hist_entry__dcacheline_snprintf()
923 return _hist_entry__sym_snprintf(map, sym, addr, level, bf, size, in hist_entry__dcacheline_snprintf()