Lines Matching refs:dso
13 #include "dso.h"
127 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name,
130 struct dso *dso;
132 dso = dso__new(short_name);
133 if (dso != NULL) {
134 __dsos__add(&machine->dsos, dso);
135 dso__set_long_name(dso, long_name, false);
136 /* Put dso here because __dsos_add already got it */
137 dso__put(dso);
140 return dso;
150 struct dso *dso = map->dso;
151 if (!dso || dso->long_name[0] != '/')
153 dso_type = dso__type(dso, machine);
237 static struct dso *__machine__findnew_compat(struct machine *machine,
241 struct dso *dso;
243 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true);
244 if (dso)
251 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name);
253 return dso;
259 struct dso **dso)
276 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32);
279 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32);
290 static struct dso *machine__find_vdso(struct machine *machine,
293 struct dso *dso = NULL;
299 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO32, true);
300 if (!dso) {
301 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO,
303 if (dso && dso_type != dso__type(dso, machine))
304 dso = NULL;
308 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true);
313 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
317 return dso;
320 struct dso *machine__findnew_vdso(struct machine *machine,
324 struct dso *dso = NULL;
334 dso = machine__find_vdso(machine, thread);
335 if (dso)
339 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso))
343 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
344 if (!dso) {
349 dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file);
353 dso__get(dso);
355 return dso;
358 bool dso__is_vdso(struct dso *dso)
360 return !strcmp(dso->short_name, DSO__NAME_VDSO) ||
361 !strcmp(dso->short_name, DSO__NAME_VDSO32) ||
362 !strcmp(dso->short_name, DSO__NAME_VDSOX32);