• Home
  • Raw
  • Download

Lines Matching refs:dso

124 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name,  in __machine__addnew_vdso()
127 struct dso *dso; in __machine__addnew_vdso() local
129 dso = dso__new(short_name); in __machine__addnew_vdso()
130 if (dso != NULL) { in __machine__addnew_vdso()
131 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso()
132 dso__set_long_name(dso, long_name, false); in __machine__addnew_vdso()
135 return dso; in __machine__addnew_vdso()
143 struct dso *dso; in machine__thread_dso_type() local
147 dso = map->dso; in machine__thread_dso_type()
148 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type()
150 dso_type = dso__type(dso, machine); in machine__thread_dso_type()
234 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat()
238 struct dso *dso; in __machine__findnew_compat() local
240 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat()
241 if (dso) in __machine__findnew_compat()
248 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()
250 return dso; in __machine__findnew_compat()
256 struct dso **dso) in __machine__findnew_vdso_compat() argument
273 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32); in __machine__findnew_vdso_compat()
276 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32); in __machine__findnew_vdso_compat()
287 static struct dso *machine__find_vdso(struct machine *machine, in machine__find_vdso()
290 struct dso *dso = NULL; in machine__find_vdso() local
296 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO32, true); in machine__find_vdso()
297 if (!dso) { in machine__find_vdso()
298 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, in machine__find_vdso()
300 if (dso && dso_type != dso__type(dso, machine)) in machine__find_vdso()
301 dso = NULL; in machine__find_vdso()
305 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true); in machine__find_vdso()
310 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__find_vdso()
314 return dso; in machine__find_vdso()
317 struct dso *machine__findnew_vdso(struct machine *machine, in machine__findnew_vdso()
321 struct dso *dso = NULL; in machine__findnew_vdso() local
331 dso = machine__find_vdso(machine, thread); in machine__findnew_vdso()
332 if (dso) in machine__findnew_vdso()
336 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso)) in machine__findnew_vdso()
340 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__findnew_vdso()
341 if (!dso) { in machine__findnew_vdso()
346 dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file); in machine__findnew_vdso()
350 dso__get(dso); in machine__findnew_vdso()
352 return dso; in machine__findnew_vdso()
355 bool dso__is_vdso(struct dso *dso) in dso__is_vdso() argument
357 return !strcmp(dso->short_name, DSO__NAME_VDSO) || in dso__is_vdso()
358 !strcmp(dso->short_name, DSO__NAME_VDSO32) || in dso__is_vdso()
359 !strcmp(dso->short_name, DSO__NAME_VDSOX32); in dso__is_vdso()