Lines Matching full:maps
16 struct maps;
34 struct map_rb_node *maps__first(struct maps *maps);
36 struct map_rb_node *maps__find_node(struct maps *maps, struct map *map);
37 struct map *maps__find(struct maps *maps, u64 addr);
39 #define maps__for_each_entry(maps, map) \ argument
40 for (map = maps__first(maps); map; map = map_rb_node__next(map))
42 #define maps__for_each_entry_safe(maps, map, next) \ argument
43 for (map = maps__first(maps), next = map_rb_node__next(map); map; \
46 DECLARE_RC_STRUCT(maps) { in DECLARE_RC_STRUCT() argument
65 struct maps *kmaps;
69 struct maps *maps__new(struct machine *machine);
70 bool maps__empty(struct maps *maps);
71 int maps__clone(struct thread *thread, struct maps *parent);
73 struct maps *maps__get(struct maps *maps);
74 void maps__put(struct maps *maps);
76 static inline void __maps__zput(struct maps **map) in __maps__zput()
84 static inline struct rb_root *maps__entries(struct maps *maps) in maps__entries() argument
86 return &RC_CHK_ACCESS(maps)->entries; in maps__entries()
89 static inline struct machine *maps__machine(struct maps *maps) in maps__machine() argument
91 return RC_CHK_ACCESS(maps)->machine; in maps__machine()
94 static inline struct rw_semaphore *maps__lock(struct maps *maps) in maps__lock() argument
96 return &RC_CHK_ACCESS(maps)->lock; in maps__lock()
99 static inline struct map **maps__maps_by_name(struct maps *maps) in maps__maps_by_name() argument
101 return RC_CHK_ACCESS(maps)->maps_by_name; in maps__maps_by_name()
104 static inline unsigned int maps__nr_maps(const struct maps *maps) in maps__nr_maps() argument
106 return RC_CHK_ACCESS(maps)->nr_maps; in maps__nr_maps()
109 static inline refcount_t *maps__refcnt(struct maps *maps) in maps__refcnt() argument
111 return &RC_CHK_ACCESS(maps)->refcnt; in maps__refcnt()
115 static inline void *maps__addr_space(struct maps *maps) in maps__addr_space() argument
117 return RC_CHK_ACCESS(maps)->addr_space; in maps__addr_space()
120 static inline const struct unwind_libunwind_ops *maps__unwind_libunwind_ops(const struct maps *maps) in maps__unwind_libunwind_ops() argument
122 return RC_CHK_ACCESS(maps)->unwind_libunwind_ops; in maps__unwind_libunwind_ops()
126 size_t maps__fprintf(struct maps *maps, FILE *fp);
128 int maps__insert(struct maps *maps, struct map *map);
129 void maps__remove(struct maps *maps, struct map *map);
131 struct symbol *maps__find_symbol(struct maps *maps, u64 addr, struct map **mapp);
132 struct symbol *maps__find_symbol_by_name(struct maps *maps, const char *name, struct map **mapp);
136 int maps__find_ams(struct maps *maps, struct addr_map_symbol *ams);
138 int maps__fixup_overlappings(struct maps *maps, struct map *map, FILE *fp);
140 struct map *maps__find_by_name(struct maps *maps, const char *name);
142 int maps__merge_in(struct maps *kmaps, struct map *new_map);
144 void __maps__sort_by_name(struct maps *maps);
146 void maps__fixup_end(struct maps *maps);