Lines Matching refs:machine

104 void machine__exit_vdso(struct machine *machine)  in machine__exit_vdso()  argument
106 struct vdso_info *vdso_info = machine->vdso_info; in machine__exit_vdso()
120 zfree(&machine->vdso_info); in machine__exit_vdso()
123 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name, in __machine__addnew_vdso() argument
130 __dsos__add(&machine->dsos, dso); in __machine__addnew_vdso()
139 static enum dso_type machine__thread_dso_type(struct machine *machine, in machine__thread_dso_type() argument
151 dso_type = dso__type(dso, machine); in machine__thread_dso_type()
233 static struct dso *__machine__findnew_compat(struct machine *machine, in __machine__findnew_compat() argument
239 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat()
247 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()
252 static int __machine__findnew_vdso_compat(struct machine *machine, in __machine__findnew_vdso_compat() argument
259 dso_type = machine__thread_dso_type(machine, thread); in __machine__findnew_vdso_compat()
272 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32); in __machine__findnew_vdso_compat()
275 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32); in __machine__findnew_vdso_compat()
286 struct dso *machine__findnew_vdso(struct machine *machine, in machine__findnew_vdso() argument
292 pthread_rwlock_wrlock(&machine->dsos.lock); in machine__findnew_vdso()
293 if (!machine->vdso_info) in machine__findnew_vdso()
294 machine->vdso_info = vdso_info__new(); in machine__findnew_vdso()
296 vdso_info = machine->vdso_info; in machine__findnew_vdso()
301 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso)) in machine__findnew_vdso()
305 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true); in machine__findnew_vdso()
311 dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file); in machine__findnew_vdso()
316 pthread_rwlock_unlock(&machine->dsos.lock); in machine__findnew_vdso()