Lines Matching refs:map

126 static int64_t _sort__dso_cmp(struct map *map_l, struct map *map_r)  in _sort__dso_cmp()
149 return _sort__dso_cmp(right->ms.map, left->ms.map); in sort__dso_cmp()
152 static int _hist_entry__dso_snprintf(struct map *map, char *bf, in _hist_entry__dso_snprintf() argument
155 if (map && map->dso) { in _hist_entry__dso_snprintf()
156 const char *dso_name = !verbose ? map->dso->short_name : in _hist_entry__dso_snprintf()
157 map->dso->long_name; in _hist_entry__dso_snprintf()
167 return _hist_entry__dso_snprintf(he->ms.map, bf, size, width); in hist_entry__dso_snprintf()
228 static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym, in _hist_entry__sym_snprintf() argument
235 char o = map ? dso__symtab_origin(map->dso) : '!'; in _hist_entry__sym_snprintf()
241 if (sym && map) { in _hist_entry__sym_snprintf()
242 if (map->type == MAP__VARIABLE) { in _hist_entry__sym_snprintf()
245 ip - map->unmap_ip(map, sym->start)); in _hist_entry__sym_snprintf()
270 return _hist_entry__sym_snprintf(he->ms.map, he->ms.sym, he->ip, in hist_entry__sym_snprintf()
288 if (!left->ms.map) in sort__srcline_cmp()
291 struct map *map = left->ms.map; in sort__srcline_cmp() local
292 left->srcline = get_srcline(map->dso, in sort__srcline_cmp()
293 map__rip_2objdump(map, left->ip), in sort__srcline_cmp()
298 if (!right->ms.map) in sort__srcline_cmp()
301 struct map *map = right->ms.map; in sort__srcline_cmp() local
302 right->srcline = get_srcline(map->dso, in sort__srcline_cmp()
303 map__rip_2objdump(map, right->ip), in sort__srcline_cmp()
330 struct map *map = e->ms.map; in get_srcfile() local
332 sf = __get_srcline(map->dso, map__rip_2objdump(map, e->ip), in get_srcfile()
349 if (!left->ms.map) in sort__srcfile_cmp()
355 if (!right->ms.map) in sort__srcfile_cmp()
454 return _sort__dso_cmp(left->branch_info->from.map, in sort__dso_from_cmp()
455 right->branch_info->from.map); in sort__dso_from_cmp()
462 return _hist_entry__dso_snprintf(he->branch_info->from.map, in hist_entry__dso_from_snprintf()
474 return _sort__dso_cmp(left->branch_info->to.map, in sort__dso_to_cmp()
475 right->branch_info->to.map); in sort__dso_to_cmp()
482 return _hist_entry__dso_snprintf(he->branch_info->to.map, in hist_entry__dso_to_snprintf()
529 return _hist_entry__sym_snprintf(from->map, from->sym, from->addr, in hist_entry__sym_from_snprintf()
542 return _hist_entry__sym_snprintf(to->map, to->sym, to->addr, in hist_entry__sym_to_snprintf()
645 struct map *map = NULL; in hist_entry__daddr_snprintf() local
650 map = he->mem_info->daddr.map; in hist_entry__daddr_snprintf()
653 return _hist_entry__sym_snprintf(map, sym, addr, he->level, bf, size, in hist_entry__daddr_snprintf()
674 struct map *map = NULL; in hist_entry__iaddr_snprintf() local
679 map = he->mem_info->iaddr.map; in hist_entry__iaddr_snprintf()
682 return _hist_entry__sym_snprintf(map, sym, addr, he->level, bf, size, in hist_entry__iaddr_snprintf()
689 struct map *map_l = NULL; in sort__dso_daddr_cmp()
690 struct map *map_r = NULL; in sort__dso_daddr_cmp()
693 map_l = left->mem_info->daddr.map; in sort__dso_daddr_cmp()
695 map_r = right->mem_info->daddr.map; in sort__dso_daddr_cmp()
703 struct map *map = NULL; in hist_entry__dso_daddr_snprintf() local
706 map = he->mem_info->daddr.map; in hist_entry__dso_daddr_snprintf()
708 return _hist_entry__dso_snprintf(map, bf, size, width); in hist_entry__dso_daddr_snprintf()
964 struct map *l_map, *r_map; in sort__dcacheline_cmp()
973 l_map = left->mem_info->daddr.map; in sort__dcacheline_cmp()
974 r_map = right->mem_info->daddr.map; in sort__dcacheline_cmp()
1029 struct map *map = NULL; in hist_entry__dcacheline_snprintf() local
1035 map = he->mem_info->daddr.map; in hist_entry__dcacheline_snprintf()
1040 map && (map->type == MAP__VARIABLE) && in hist_entry__dcacheline_snprintf()
1041 (map->flags & MAP_SHARED) && in hist_entry__dcacheline_snprintf()
1042 (map->maj || map->min || map->ino || in hist_entry__dcacheline_snprintf()
1043 map->ino_generation)) in hist_entry__dcacheline_snprintf()
1045 else if (!map) in hist_entry__dcacheline_snprintf()
1048 return _hist_entry__sym_snprintf(map, sym, addr, level, bf, size, in hist_entry__dcacheline_snprintf()