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(rb_node->map);
152 if (!dso || dso->long_name[0] != '/')
154 dso_type = dso__type(dso, machine);
238 static struct dso *__machine__findnew_compat(struct machine *machine,
242 struct dso *dso;
244 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true);
245 if (dso)
252 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name);
254 return dso;
260 struct dso **dso)
277 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32);
280 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32);
291 static struct dso *machine__find_vdso(struct machine *machine,
294 struct dso *dso = NULL;
300 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO32, true);
301 if (!dso) {
302 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO,
304 if (dso && dso_type != dso__type(dso, machine))
305 dso = NULL;
309 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true);
314 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
318 return dso;
321 struct dso *machine__findnew_vdso(struct machine *machine,
325 struct dso *dso = NULL;
335 dso = machine__find_vdso(machine, thread);
336 if (dso)
340 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso))
344 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
345 if (!dso) {
350 dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file);
354 dso__get(dso);
356 return dso;
359 bool dso__is_vdso(struct dso *dso)
361 return !strcmp(dso->short_name, DSO__NAME_VDSO) ||
362 !strcmp(dso->short_name, DSO__NAME_VDSO32) ||
363 !strcmp(dso->short_name, DSO__NAME_VDSOX32);