Lines Matching full:map
23 struct map { struct
41 u64 (*map_ip)(struct map *, u64); argument
43 u64 (*unmap_ip)(struct map *, u64); argument
82 struct kmap *__map__kmap(struct map *map);
83 struct kmap *map__kmap(struct map *map);
84 struct map_groups *map__kmaps(struct map *map);
86 static inline u64 map__map_ip(struct map *map, u64 ip) in map__map_ip() argument
88 return ip - map->start + map->pgoff; in map__map_ip()
91 static inline u64 map__unmap_ip(struct map *map, u64 ip) in map__unmap_ip() argument
93 return ip + map->start - map->pgoff; in map__unmap_ip()
96 static inline u64 identity__map_ip(struct map *map __maybe_unused, u64 ip) in identity__map_ip()
101 static inline size_t map__size(const struct map *map) in map__size() argument
103 return map->end - map->start; in map__size()
107 u64 map__rip_2objdump(struct map *map, u64 rip);
110 u64 map__objdump_2mem(struct map *map, u64 ip);
115 /* map__for_each_symbol - iterate over the symbols in the given map
117 * @map: the 'struct map *' in which symbols itereated
120 * Note: caller must ensure map->dso is not NULL (map is loaded).
122 #define map__for_each_symbol(map, pos, n) \ argument
123 dso__for_each_symbol(map->dso, pos, n)
125 /* map__for_each_symbol_with_name - iterate over the symbols in the given map
128 * @map: the 'struct map *' in which symbols itereated
132 #define __map__for_each_symbol_by_name(map, sym_name, pos) \ argument
133 for (pos = map__find_symbol_by_name(map, sym_name); \
139 #define map__for_each_symbol_by_name(map, sym_name, pos) \ argument
140 __map__for_each_symbol_by_name(map, sym_name, (pos))
142 void map__init(struct map *map,
144 struct map *map__new(struct machine *machine, u64 start, u64 len,
148 struct map *map__new2(u64 start, struct dso *dso);
149 void map__delete(struct map *map);
150 struct map *map__clone(struct map *map);
152 static inline struct map *map__get(struct map *map) in map__get() argument
154 if (map) in map__get()
155 refcount_inc(&map->refcnt); in map__get()
156 return map; in map__get()
159 void map__put(struct map *map);
161 static inline void __map__zput(struct map **map) in __map__zput() argument
163 map__put(*map); in __map__zput()
164 *map = NULL; in __map__zput()
167 #define map__zput(map) __map__zput(&map) argument
169 size_t map__fprintf(struct map *map, FILE *fp);
170 size_t map__fprintf_dsoname(struct map *map, FILE *fp);
171 char *map__srcline(struct map *map, u64 addr, struct symbol *sym);
172 int map__fprintf_srcline(struct map *map, u64 addr, const char *prefix,
175 int map__load(struct map *map);
176 struct symbol *map__find_symbol(struct map *map, u64 addr);
177 struct symbol *map__find_symbol_by_name(struct map *map, const char *name);
178 void map__fixup_start(struct map *map);
179 void map__fixup_end(struct map *map);
181 void map__reloc_vmlinux(struct map *map);
183 void maps__insert(struct maps *maps, struct map *map);
184 void maps__remove(struct maps *maps, struct map *map);
185 struct map *maps__find(struct maps *maps, u64 addr);
186 struct map *maps__first(struct maps *maps);
187 struct map *map__next(struct map *map);
189 struct map **mapp);
196 int map__set_kallsyms_ref_reloc_sym(struct map *map, const char *symbol_name,
199 static inline void map_groups__insert(struct map_groups *mg, struct map *map) in map_groups__insert() argument
201 maps__insert(&mg->maps, map); in map_groups__insert()
202 map->groups = mg; in map_groups__insert()
205 static inline void map_groups__remove(struct map_groups *mg, struct map *map) in map_groups__remove() argument
207 maps__remove(&mg->maps, map); in map_groups__remove()
210 static inline struct map *map_groups__find(struct map_groups *mg, u64 addr) in map_groups__find()
215 struct map *map_groups__first(struct map_groups *mg);
217 static inline struct map *map_groups__next(struct map *map) in map_groups__next() argument
219 return map__next(map); in map_groups__next()
223 u64 addr, struct map **mapp);
227 struct map **mapp);
233 int map_groups__fixup_overlappings(struct map_groups *mg, struct map *map,
236 struct map *map_groups__find_by_name(struct map_groups *mg, const char *name);
238 bool __map__is_kernel(const struct map *map);
239 bool __map__is_extra_kernel_map(const struct map *map);
241 static inline bool __map__is_kmodule(const struct map *map) in __map__is_kmodule() argument
243 return !__map__is_kernel(map) && !__map__is_extra_kernel_map(map); in __map__is_kmodule()
246 bool map__has_symbols(const struct map *map);