• Home
  • Raw
  • Download

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()
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()
379 return _sort__dso_cmp(left->branch_info->from.map, in sort__dso_from_cmp()
380 right->branch_info->from.map); in sort__dso_from_cmp()
387 return _hist_entry__dso_snprintf(he->branch_info->from.map, in hist_entry__dso_from_snprintf()
399 return _sort__dso_cmp(left->branch_info->to.map, in sort__dso_to_cmp()
400 right->branch_info->to.map); in sort__dso_to_cmp()
407 return _hist_entry__dso_snprintf(he->branch_info->to.map, in hist_entry__dso_to_snprintf()
454 return _hist_entry__sym_snprintf(from->map, from->sym, from->addr, in hist_entry__sym_from_snprintf()
467 return _hist_entry__sym_snprintf(to->map, to->sym, to->addr, in hist_entry__sym_to_snprintf()
547 struct map *map = NULL; in hist_entry__daddr_snprintf() local
552 map = he->mem_info->daddr.map; in hist_entry__daddr_snprintf()
555 return _hist_entry__sym_snprintf(map, sym, addr, he->level, bf, size, in hist_entry__daddr_snprintf()
562 struct map *map_l = NULL; in sort__dso_daddr_cmp()
563 struct map *map_r = NULL; in sort__dso_daddr_cmp()
566 map_l = left->mem_info->daddr.map; in sort__dso_daddr_cmp()
568 map_r = right->mem_info->daddr.map; in sort__dso_daddr_cmp()
576 struct map *map = NULL; in hist_entry__dso_daddr_snprintf() local
579 map = he->mem_info->daddr.map; in hist_entry__dso_daddr_snprintf()
581 return _hist_entry__dso_snprintf(map, bf, size, width); in hist_entry__dso_daddr_snprintf()
837 struct map *l_map, *r_map; in sort__dcacheline_cmp()
846 l_map = left->mem_info->daddr.map; in sort__dcacheline_cmp()
847 r_map = right->mem_info->daddr.map; in sort__dcacheline_cmp()
902 struct map *map = NULL; in hist_entry__dcacheline_snprintf() local
908 map = he->mem_info->daddr.map; in hist_entry__dcacheline_snprintf()
913 map && (map->type == MAP__VARIABLE) && in hist_entry__dcacheline_snprintf()
914 (map->flags & MAP_SHARED) && in hist_entry__dcacheline_snprintf()
915 (map->maj || map->min || map->ino || in hist_entry__dcacheline_snprintf()
916 map->ino_generation)) in hist_entry__dcacheline_snprintf()
918 else if (!map) in hist_entry__dcacheline_snprintf()
921 return _hist_entry__sym_snprintf(map, sym, addr, level, bf, size, in hist_entry__dcacheline_snprintf()