diff options
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r-- | tools/perf/util/map.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h index 7758c72522ef..2f83954af050 100644 --- a/tools/perf/util/map.h +++ b/tools/perf/util/map.h | |||
@@ -66,6 +66,7 @@ struct map_groups { | |||
66 | 66 | ||
67 | struct map_groups *map_groups__new(void); | 67 | struct map_groups *map_groups__new(void); |
68 | void map_groups__delete(struct map_groups *mg); | 68 | void map_groups__delete(struct map_groups *mg); |
69 | bool map_groups__empty(struct map_groups *mg); | ||
69 | 70 | ||
70 | static inline struct map_groups *map_groups__get(struct map_groups *mg) | 71 | static inline struct map_groups *map_groups__get(struct map_groups *mg) |
71 | { | 72 | { |
@@ -103,6 +104,7 @@ u64 map__rip_2objdump(struct map *map, u64 rip); | |||
103 | u64 map__objdump_2mem(struct map *map, u64 ip); | 104 | u64 map__objdump_2mem(struct map *map, u64 ip); |
104 | 105 | ||
105 | struct symbol; | 106 | struct symbol; |
107 | struct thread; | ||
106 | 108 | ||
107 | /* map__for_each_symbol - iterate over the symbols in the given map | 109 | /* map__for_each_symbol - iterate over the symbols in the given map |
108 | * | 110 | * |
@@ -118,10 +120,10 @@ typedef int (*symbol_filter_t)(struct map *map, struct symbol *sym); | |||
118 | 120 | ||
119 | void map__init(struct map *map, enum map_type type, | 121 | void map__init(struct map *map, enum map_type type, |
120 | u64 start, u64 end, u64 pgoff, struct dso *dso); | 122 | u64 start, u64 end, u64 pgoff, struct dso *dso); |
121 | struct map *map__new(struct list_head *dsos__list, u64 start, u64 len, | 123 | struct map *map__new(struct machine *machine, u64 start, u64 len, |
122 | u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, | 124 | u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, |
123 | u64 ino_gen, u32 prot, u32 flags, | 125 | u64 ino_gen, u32 prot, u32 flags, |
124 | char *filename, enum map_type type); | 126 | char *filename, enum map_type type, struct thread *thread); |
125 | struct map *map__new2(u64 start, struct dso *dso, enum map_type type); | 127 | struct map *map__new2(u64 start, struct dso *dso, enum map_type type); |
126 | void map__delete(struct map *map); | 128 | void map__delete(struct map *map); |
127 | struct map *map__clone(struct map *map); | 129 | struct map *map__clone(struct map *map); |
@@ -141,8 +143,8 @@ void map__fixup_end(struct map *map); | |||
141 | 143 | ||
142 | void map__reloc_vmlinux(struct map *map); | 144 | void map__reloc_vmlinux(struct map *map); |
143 | 145 | ||
144 | size_t __map_groups__fprintf_maps(struct map_groups *mg, | 146 | size_t __map_groups__fprintf_maps(struct map_groups *mg, enum map_type type, |
145 | enum map_type type, int verbose, FILE *fp); | 147 | FILE *fp); |
146 | void maps__insert(struct rb_root *maps, struct map *map); | 148 | void maps__insert(struct rb_root *maps, struct map *map); |
147 | void maps__remove(struct rb_root *maps, struct map *map); | 149 | void maps__remove(struct rb_root *maps, struct map *map); |
148 | struct map *maps__find(struct rb_root *maps, u64 addr); | 150 | struct map *maps__find(struct rb_root *maps, u64 addr); |
@@ -152,8 +154,7 @@ void map_groups__init(struct map_groups *mg); | |||
152 | void map_groups__exit(struct map_groups *mg); | 154 | void map_groups__exit(struct map_groups *mg); |
153 | int map_groups__clone(struct map_groups *mg, | 155 | int map_groups__clone(struct map_groups *mg, |
154 | struct map_groups *parent, enum map_type type); | 156 | struct map_groups *parent, enum map_type type); |
155 | size_t map_groups__fprintf(struct map_groups *mg, int verbose, FILE *fp); | 157 | size_t map_groups__fprintf(struct map_groups *mg, FILE *fp); |
156 | size_t map_groups__fprintf_maps(struct map_groups *mg, int verbose, FILE *fp); | ||
157 | 158 | ||
158 | int maps__set_kallsyms_ref_reloc_sym(struct map **maps, const char *symbol_name, | 159 | int maps__set_kallsyms_ref_reloc_sym(struct map **maps, const char *symbol_name, |
159 | u64 addr); | 160 | u64 addr); |
@@ -210,7 +211,7 @@ struct symbol *map_groups__find_function_by_name(struct map_groups *mg, | |||
210 | } | 211 | } |
211 | 212 | ||
212 | int map_groups__fixup_overlappings(struct map_groups *mg, struct map *map, | 213 | int map_groups__fixup_overlappings(struct map_groups *mg, struct map *map, |
213 | int verbose, FILE *fp); | 214 | FILE *fp); |
214 | 215 | ||
215 | struct map *map_groups__find_by_name(struct map_groups *mg, | 216 | struct map *map_groups__find_by_name(struct map_groups *mg, |
216 | enum map_type type, const char *name); | 217 | enum map_type type, const char *name); |