aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-07 16:59:39 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 04:09:16 -0500
commita89e5abe3efcc7facc666d3985769278937f86b0 (patch)
tree4aa271d7d1d751ff842bb23874fcb91b384343cc /tools/perf/util/symbol.h
parentfed5af61dc0d9402d26e7fb8fb9731a60a8e05ca (diff)
perf symbols: Record the domain of DSOs in HEADER_BUILD_ID header table
So that we can restore them to the right DSO list (either dsos__kernel or dsos__user). We do that just like the kernel does for the other events, encoding PERF_RECORD_MISC_{KERNEL,USER} in perf_event_header. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1262901583-8074-2-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r--tools/perf/util/symbol.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index b2b5330a82a0..ee0b4593db7b 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -115,9 +115,17 @@ bool dso__sorted_by_name(const struct dso *self, enum map_type type);
115 115
116void dso__sort_by_name(struct dso *self, enum map_type type); 116void dso__sort_by_name(struct dso *self, enum map_type type);
117 117
118extern struct list_head dsos__user, dsos__kernel;
119
120struct dso *__dsos__findnew(struct list_head *head, const char *name);
121
122static inline struct dso *dsos__findnew(const char *name)
123{
124 return __dsos__findnew(&dsos__user, name);
125}
126
118struct perf_session; 127struct perf_session;
119 128
120struct dso *dsos__findnew(const char *name);
121int dso__load(struct dso *self, struct map *map, struct perf_session *session, 129int dso__load(struct dso *self, struct map *map, struct perf_session *session,
122 symbol_filter_t filter); 130 symbol_filter_t filter);
123void dsos__fprintf(FILE *fp); 131void dsos__fprintf(FILE *fp);
@@ -143,6 +151,5 @@ bool symbol_type__is_a(char symbol_type, enum map_type map_type);
143 151
144int perf_session__create_kernel_maps(struct perf_session *self); 152int perf_session__create_kernel_maps(struct perf_session *self);
145 153
146extern struct list_head dsos__user, dsos__kernel;
147extern struct dso *vdso; 154extern struct dso *vdso;
148#endif /* __PERF_SYMBOL */ 155#endif /* __PERF_SYMBOL */