aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r--tools/perf/util/symbol.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index e6a59e5c2bea..e90568a9e467 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -121,6 +121,11 @@ void dso__delete(struct dso *self);
121bool dso__loaded(const struct dso *self, enum map_type type); 121bool dso__loaded(const struct dso *self, enum map_type type);
122bool dso__sorted_by_name(const struct dso *self, enum map_type type); 122bool dso__sorted_by_name(const struct dso *self, enum map_type type);
123 123
124static inline void dso__set_loaded(struct dso *self, enum map_type type)
125{
126 self->loaded |= (1 << type);
127}
128
124void dso__sort_by_name(struct dso *self, enum map_type type); 129void dso__sort_by_name(struct dso *self, enum map_type type);
125 130
126extern struct list_head dsos__user, dsos__kernel; 131extern struct list_head dsos__user, dsos__kernel;
@@ -161,5 +166,4 @@ int kallsyms__parse(const char *filename, void *arg,
161int symbol__init(void); 166int symbol__init(void);
162bool symbol_type__is_a(char symbol_type, enum map_type map_type); 167bool symbol_type__is_a(char symbol_type, enum map_type map_type);
163 168
164extern struct dso *vdso;
165#endif /* __PERF_SYMBOL */ 169#endif /* __PERF_SYMBOL */