Lines Matching refs:machine
108 void machine__exit_vdso(struct machine *machine) in machine__exit_vdso() argument
110 struct vdso_info *vdso_info = machine->vdso_info; in machine__exit_vdso()
124 zfree(&machine->vdso_info); in machine__exit_vdso()
127 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso() argument
134 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso()
142 struct machine *machine; member
154 args->dso_type = dso__type(dso, args->machine); in machine__thread_dso_type_maps_cb()
158 static enum dso_type machine__thread_dso_type(struct machine *machine, in machine__thread_dso_type() argument
162 .machine = machine, in machine__thread_dso_type()
247 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat() argument
253 dso = dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat()
261 return __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()
264 static int __machine__findnew_vdso_compat(struct machine *machine, in __machine__findnew_vdso_compat() argument
271 dso_type = machine__thread_dso_type(machine, thread); in __machine__findnew_vdso_compat()
284 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32); in __machine__findnew_vdso_compat()
287 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32); in __machine__findnew_vdso_compat()
298 static struct dso *machine__find_vdso(struct machine *machine, in machine__find_vdso() argument
304 dso_type = machine__thread_dso_type(machine, thread); in machine__find_vdso()
307 dso = dsos__find(&machine->dsos, DSO__NAME_VDSO32, true); in machine__find_vdso()
309 dso = dsos__find(&machine->dsos, DSO__NAME_VDSO, in machine__find_vdso()
311 if (dso && dso_type != dso__type(dso, machine)) { in machine__find_vdso()
318 dso = dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true); in machine__find_vdso()
323 dso = dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__find_vdso()
330 struct dso *machine__findnew_vdso(struct machine *machine, in machine__findnew_vdso() argument
337 if (!machine->vdso_info) in machine__findnew_vdso()
338 machine->vdso_info = vdso_info__new(); in machine__findnew_vdso()
340 vdso_info = machine->vdso_info; in machine__findnew_vdso()
344 dso = machine__find_vdso(machine, thread); in machine__findnew_vdso()
349 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso)) in machine__findnew_vdso()
353 dso = dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__findnew_vdso()
361 return __machine__addnew_vdso(machine, DSO__NAME_VDSO, file); in machine__findnew_vdso()