Lines Matching refs:dso
127 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso()
130 struct dso *dso; in __machine__addnew_vdso() local
132 dso = dso__new(short_name); in __machine__addnew_vdso()
133 if (dso != NULL) { in __machine__addnew_vdso()
134 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso()
135 dso__set_long_name(dso, long_name, false); in __machine__addnew_vdso()
138 return dso; in __machine__addnew_vdso()
148 struct dso *dso = map->dso; in machine__thread_dso_type() local
149 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type()
151 dso_type = dso__type(dso, machine); in machine__thread_dso_type()
235 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat()
239 struct dso *dso; in __machine__findnew_compat() local
241 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat()
242 if (dso) in __machine__findnew_compat()
249 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()
251 return dso; in __machine__findnew_compat()
257 struct dso **dso) in __machine__findnew_vdso_compat() argument
274 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32); in __machine__findnew_vdso_compat()
277 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32); in __machine__findnew_vdso_compat()
288 static struct dso *machine__find_vdso(struct machine *machine, in machine__find_vdso()
291 struct dso *dso = NULL; in machine__find_vdso() local
297 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO32, true); in machine__find_vdso()
298 if (!dso) { in machine__find_vdso()
299 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, in machine__find_vdso()
301 if (dso && dso_type != dso__type(dso, machine)) in machine__find_vdso()
302 dso = NULL; in machine__find_vdso()
306 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true); in machine__find_vdso()
311 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__find_vdso()
315 return dso; in machine__find_vdso()
318 struct dso *machine__findnew_vdso(struct machine *machine, in machine__findnew_vdso()
322 struct dso *dso = NULL; in machine__findnew_vdso() local
332 dso = machine__find_vdso(machine, thread); in machine__findnew_vdso()
333 if (dso) in machine__findnew_vdso()
337 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso)) in machine__findnew_vdso()
341 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__findnew_vdso()
342 if (!dso) { in machine__findnew_vdso()
347 dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file); in machine__findnew_vdso()
351 dso__get(dso); in machine__findnew_vdso()
353 return dso; in machine__findnew_vdso()
356 bool dso__is_vdso(struct dso *dso) in dso__is_vdso() argument
358 return !strcmp(dso->short_name, DSO__NAME_VDSO) || in dso__is_vdso()
359 !strcmp(dso->short_name, DSO__NAME_VDSO32) || in dso__is_vdso()
360 !strcmp(dso->short_name, DSO__NAME_VDSOX32); in dso__is_vdso()