aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r--tools/perf/util/map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h
index 0e0984e86fce..5b51bbd2f734 100644
--- a/tools/perf/util/map.h
+++ b/tools/perf/util/map.h
@@ -125,6 +125,7 @@ void map__reloc_vmlinux(struct map *self);
125size_t __map_groups__fprintf_maps(struct map_groups *self, 125size_t __map_groups__fprintf_maps(struct map_groups *self,
126 enum map_type type, int verbose, FILE *fp); 126 enum map_type type, int verbose, FILE *fp);
127void maps__insert(struct rb_root *maps, struct map *map); 127void maps__insert(struct rb_root *maps, struct map *map);
128void maps__remove(struct rb_root *self, struct map *map);
128struct map *maps__find(struct rb_root *maps, u64 addr); 129struct map *maps__find(struct rb_root *maps, u64 addr);
129void map_groups__init(struct map_groups *self); 130void map_groups__init(struct map_groups *self);
130void map_groups__exit(struct map_groups *self); 131void map_groups__exit(struct map_groups *self);
@@ -144,6 +145,7 @@ struct machine *machines__findnew(struct rb_root *self, pid_t pid);
144char *machine__mmap_name(struct machine *self, char *bf, size_t size); 145char *machine__mmap_name(struct machine *self, char *bf, size_t size);
145int machine__init(struct machine *self, const char *root_dir, pid_t pid); 146int machine__init(struct machine *self, const char *root_dir, pid_t pid);
146void machine__exit(struct machine *self); 147void machine__exit(struct machine *self);
148void machine__delete(struct machine *self);
147 149
148/* 150/*
149 * Default guest kernel is defined by parameter --guestkallsyms 151 * Default guest kernel is defined by parameter --guestkallsyms
@@ -165,6 +167,11 @@ static inline void map_groups__insert(struct map_groups *self, struct map *map)
165 map->groups = self; 167 map->groups = self;
166} 168}
167 169
170static inline void map_groups__remove(struct map_groups *self, struct map *map)
171{
172 maps__remove(&self->maps[map->type], map);
173}
174
168static inline struct map *map_groups__find(struct map_groups *self, 175static inline struct map *map_groups__find(struct map_groups *self,
169 enum map_type type, u64 addr) 176 enum map_type type, u64 addr)
170{ 177{