Lines Matching refs:machine

17 #include "machine.h"
108 void machine__exit_vdso(struct machine *machine)
110 struct vdso_info *vdso_info = machine->vdso_info;
124 zfree(&machine->vdso_info);
127 static struct dso *__machine__addnew_vdso(struct machine *machine, const char *short_name,
134 __dsos__add(&machine->dsos, dso);
144 struct machine *machine;
156 args->dso_type = dso__type(dso, args->machine);
160 static enum dso_type machine__thread_dso_type(struct machine *machine,
164 .machine = machine,
249 static struct dso *__machine__findnew_compat(struct machine *machine,
255 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true);
263 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name);
268 static int __machine__findnew_vdso_compat(struct machine *machine,
275 dso_type = machine__thread_dso_type(machine, thread);
288 *dso = __machine__findnew_compat(machine, &vdso_info->vdso32);
291 *dso = __machine__findnew_compat(machine, &vdso_info->vdsox32);
302 static struct dso *machine__find_vdso(struct machine *machine,
308 dso_type = machine__thread_dso_type(machine, thread);
311 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO32, true);
313 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO,
315 if (dso && dso_type != dso__type(dso, machine))
320 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSOX32, true);
325 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
332 struct dso *machine__findnew_vdso(struct machine *machine,
338 down_write(&machine->dsos.lock);
339 if (!machine->vdso_info)
340 machine->vdso_info = vdso_info__new();
342 vdso_info = machine->vdso_info;
346 dso = machine__find_vdso(machine, thread);
351 if (__machine__findnew_vdso_compat(machine, thread, vdso_info, &dso))
355 dso = __dsos__find(&machine->dsos, DSO__NAME_VDSO, true);
361 dso = __machine__addnew_vdso(machine, DSO__NAME_VDSO, file);
366 up_write(&machine->dsos.lock);