aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.c
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.c
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.c')
-rw-r--r--tools/perf/util/symbol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index da2f07f1af8f..8e6627e6b778 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1615,14 +1615,14 @@ static struct dso *dsos__find(struct list_head *head, const char *name)
1615 return NULL; 1615 return NULL;
1616} 1616}
1617 1617
1618struct dso *dsos__findnew(const char *name) 1618struct dso *__dsos__findnew(struct list_head *head, const char *name)
1619{ 1619{
1620 struct dso *dso = dsos__find(&dsos__user, name); 1620 struct dso *dso = dsos__find(head, name);
1621 1621
1622 if (!dso) { 1622 if (!dso) {
1623 dso = dso__new(name); 1623 dso = dso__new(name);
1624 if (dso != NULL) { 1624 if (dso != NULL) {
1625 dsos__add(&dsos__user, dso); 1625 dsos__add(head, dso);
1626 dso__set_basename(dso); 1626 dso__set_basename(dso);
1627 } 1627 }
1628 } 1628 }