aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/vdso.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-05-28 12:06:42 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-29 11:43:43 -0400
commit3d39ac538629e4f00a6e1c38d46346f1b8e69505 (patch)
tree91649aa3c3fb8099ed0a1ab5919308c0c42d7a93 /tools/perf/util/vdso.c
parent459ce518d9b563a99faa73aa340b764e0b3fb143 (diff)
perf machine: No need to have two DSOs lists
We can, given a DSO, figure out if it is a kernel, a kernel module or a userlevel DSO, so stop having to process two lists in several functions. If searching becomes an issue at some point, we can have them in a rbtree, etc. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-s4yb0onpdywu6dj2xl9lxi4t@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/vdso.c')
-rw-r--r--tools/perf/util/vdso.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/vdso.c b/tools/perf/util/vdso.c
index 5c7dd796979d..d3651b43e945 100644
--- a/tools/perf/util/vdso.c
+++ b/tools/perf/util/vdso.c
@@ -127,7 +127,7 @@ static struct dso *vdso__new(struct machine *machine, const char *short_name,
127 127
128 dso = dso__new(short_name); 128 dso = dso__new(short_name);
129 if (dso != NULL) { 129 if (dso != NULL) {
130 dsos__add(&machine->user_dsos, dso); 130 dsos__add(&machine->dsos, dso);
131 dso__set_long_name(dso, long_name, false); 131 dso__set_long_name(dso, long_name, false);
132 } 132 }
133 133
@@ -236,7 +236,7 @@ static struct dso *vdso__findnew_compat(struct machine *machine,
236 const char *file_name; 236 const char *file_name;
237 struct dso *dso; 237 struct dso *dso;
238 238
239 dso = dsos__find(&machine->user_dsos, vdso_file->dso_name, true); 239 dso = dsos__find(&machine->dsos, vdso_file->dso_name, true);
240 if (dso) 240 if (dso)
241 return dso; 241 return dso;
242 242
@@ -299,7 +299,7 @@ struct dso *vdso__dso_findnew(struct machine *machine,
299 return dso; 299 return dso;
300#endif 300#endif
301 301
302 dso = dsos__find(&machine->user_dsos, DSO__NAME_VDSO, true); 302 dso = dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
303 if (!dso) { 303 if (!dso) {
304 char *file; 304 char *file;
305 305