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>
This commit is contained in:

committed by
Ingo Molnar

parent
fed5af61dc
commit
a89e5abe3e
@@ -115,9 +115,17 @@ bool dso__sorted_by_name(const struct dso *self, enum map_type type);
|
||||
|
||||
void dso__sort_by_name(struct dso *self, enum map_type type);
|
||||
|
||||
extern struct list_head dsos__user, dsos__kernel;
|
||||
|
||||
struct dso *__dsos__findnew(struct list_head *head, const char *name);
|
||||
|
||||
static inline struct dso *dsos__findnew(const char *name)
|
||||
{
|
||||
return __dsos__findnew(&dsos__user, name);
|
||||
}
|
||||
|
||||
struct perf_session;
|
||||
|
||||
struct dso *dsos__findnew(const char *name);
|
||||
int dso__load(struct dso *self, struct map *map, struct perf_session *session,
|
||||
symbol_filter_t filter);
|
||||
void dsos__fprintf(FILE *fp);
|
||||
@@ -143,6 +151,5 @@ bool symbol_type__is_a(char symbol_type, enum map_type map_type);
|
||||
|
||||
int perf_session__create_kernel_maps(struct perf_session *self);
|
||||
|
||||
extern struct list_head dsos__user, dsos__kernel;
|
||||
extern struct dso *vdso;
|
||||
#endif /* __PERF_SYMBOL */
|
||||
|
Reference in New Issue
Block a user