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()
137 dso__put(dso); in __machine__addnew_vdso()
140 return dso; in __machine__addnew_vdso()
150 struct dso *dso = map->dso; in machine__thread_dso_type() local
151 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type()
153 dso_type = dso__type(dso, machine); in machine__thread_dso_type()
237 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat()
241 struct dso *dso; in __machine__findnew_compat() local
243 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat()
244 if (dso) in __machine__findnew_compat()
251 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()
253 return dso; in __machine__findnew_compat()
259 struct dso **dso) in __machine__findnew_vdso_compat() argument
276 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32); in __machine__findnew_vdso_compat()
279 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32); in __machine__findnew_vdso_compat()
290 static struct dso *machine__find_vdso(struct machine *machine, in machine__find_vdso()
293 struct dso *dso = NULL; in machine__find_vdso() local
299 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO32, true); in machine__find_vdso()
300 if (!dso) { in machine__find_vdso()
301 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, in machine__find_vdso()
303 if (dso && dso_type != dso__type(dso, machine)) in machine__find_vdso()
304 dso = NULL; in machine__find_vdso()
308 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true); in machine__find_vdso()
313 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__find_vdso()
317 return dso; in machine__find_vdso()
320 struct dso *machine__findnew_vdso(struct machine *machine, in machine__findnew_vdso()
324 struct dso *dso = NULL; in machine__findnew_vdso() local
334 dso = machine__find_vdso(machine, thread); in machine__findnew_vdso()
335 if (dso) in machine__findnew_vdso()
339 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso)) in machine__findnew_vdso()
343 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__findnew_vdso()
344 if (!dso) { in machine__findnew_vdso()
349 dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file); in machine__findnew_vdso()
353 dso__get(dso); in machine__findnew_vdso()
355 return dso; in machine__findnew_vdso()
358 bool dso__is_vdso(struct dso *dso) in dso__is_vdso() argument
360 return !strcmp(dso->short_name, DSO__NAME_VDSO) || in dso__is_vdso()
361 !strcmp(dso->short_name, DSO__NAME_VDSO32) || in dso__is_vdso()
362 !strcmp(dso->short_name, DSO__NAME_VDSOX32); in dso__is_vdso()