Lines Matching refs:map
27 struct map { struct
47 u64 (*map_ip)(struct map *, u64); argument
49 u64 (*unmap_ip)(struct map *, u64); argument
79 static inline struct kmap *map__kmap(struct map *map) in map__kmap() argument
81 return (struct kmap *)(map + 1); in map__kmap()
84 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip() argument
86 return ip - map->start + map->pgoff; in map__map_ip()
89 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip() argument
91 return ip + map->start - map->pgoff; in map__unmap_ip()
94 static inline u64 identity__map_ip(struct map *map __maybe_unused, u64 ip) in identity__map_ip()
101 u64 map__rip_2objdump(struct map *map, u64 rip);
104 u64 map__objdump_2mem(struct map *map, u64 ip);
116 #define map__for_each_symbol(map, pos, n) \ argument
117 dso__for_each_symbol(map->dso, pos, n, map->type)
119 typedef int (*symbol_filter_t)(struct map *map, struct symbol *sym);
121 void map__init(struct map *map, enum map_type type,
123 struct map *map__new(struct machine *machine, u64 start, u64 len,
127 struct map *map__new2(u64 start, struct dso *dso, enum map_type type);
128 void map__delete(struct map *map);
129 struct map *map__clone(struct map *map);
130 int map__overlap(struct map *l, struct map *r);
131 size_t map__fprintf(struct map *map, FILE *fp);
132 size_t map__fprintf_dsoname(struct map *map, FILE *fp);
133 int map__fprintf_srcline(struct map *map, u64 addr, const char *prefix,
136 int map__load(struct map *map, symbol_filter_t filter);
137 struct symbol *map__find_symbol(struct map *map,
139 struct symbol *map__find_symbol_by_name(struct map *map, const char *name,
141 void map__fixup_start(struct map *map);
142 void map__fixup_end(struct map *map);
144 void map__reloc_vmlinux(struct map *map);
148 void maps__insert(struct rb_root *maps, struct map *map);
149 void maps__remove(struct rb_root *maps, struct map *map);
150 struct map *maps__find(struct rb_root *maps, u64 addr);
151 struct map *maps__first(struct rb_root *maps);
152 struct map *maps__next(struct map *map);
159 int maps__set_kallsyms_ref_reloc_sym(struct map **maps, const char *symbol_name,
162 static inline void map_groups__insert(struct map_groups *mg, struct map *map) in map_groups__insert() argument
164 maps__insert(&mg->maps[map->type], map); in map_groups__insert()
165 map->groups = mg; in map_groups__insert()
168 static inline void map_groups__remove(struct map_groups *mg, struct map *map) in map_groups__remove() argument
170 maps__remove(&mg->maps[map->type], map); in map_groups__remove()
173 static inline struct map *map_groups__find(struct map_groups *mg, in map_groups__find()
179 static inline struct map *map_groups__first(struct map_groups *mg, in map_groups__first()
185 static inline struct map *map_groups__next(struct map *map) in map_groups__next() argument
187 return maps__next(map); in map_groups__next()
192 struct map **mapp,
198 struct map **mapp,
207 const char *name, struct map **mapp, in map_groups__find_function_by_name()
213 int map_groups__fixup_overlappings(struct map_groups *mg, struct map *map,
216 struct map *map_groups__find_by_name(struct map_groups *mg,