diff options
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index c7a78eef8e52..51a96c2effde 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -103,10 +103,11 @@ void event__print_totals(void); | |||
103 | 103 | ||
104 | enum map_type { | 104 | enum map_type { |
105 | MAP__FUNCTION = 0, | 105 | MAP__FUNCTION = 0, |
106 | 106 | MAP__VARIABLE, | |
107 | MAP__NR_TYPES, | ||
108 | }; | 107 | }; |
109 | 108 | ||
109 | #define MAP__NR_TYPES (MAP__VARIABLE + 1) | ||
110 | |||
110 | struct map { | 111 | struct map { |
111 | union { | 112 | union { |
112 | struct rb_node rb_node; | 113 | struct rb_node rb_node; |
@@ -150,6 +151,8 @@ int map__overlap(struct map *l, struct map *r); | |||
150 | size_t map__fprintf(struct map *self, FILE *fp); | 151 | size_t map__fprintf(struct map *self, FILE *fp); |
151 | struct symbol *map__find_symbol(struct map *self, u64 addr, | 152 | struct symbol *map__find_symbol(struct map *self, u64 addr, |
152 | symbol_filter_t filter); | 153 | symbol_filter_t filter); |
154 | struct symbol *map__find_symbol_by_name(struct map *self, const char *name, | ||
155 | symbol_filter_t filter); | ||
153 | void map__fixup_start(struct map *self); | 156 | void map__fixup_start(struct map *self); |
154 | void map__fixup_end(struct map *self); | 157 | void map__fixup_end(struct map *self); |
155 | 158 | ||