Lines Matching defs:vdso_file
31 struct vdso_file {
40 struct vdso_file vdso;
42 struct vdso_file vdso32;
43 struct vdso_file vdsox32;
71 static char *get_file(struct vdso_file *vdso_file)
79 if (vdso_file->found)
80 return vdso_file->temp_file_name;
82 if (vdso_file->error || find_map(&start, &end, VDSO__MAP_NAME))
91 fd = mkstemp(vdso_file->temp_file_name);
96 vdso = vdso_file->temp_file_name;
103 vdso_file->found = (vdso != NULL);
104 vdso_file->error = !vdso_file->found;
214 static const char *vdso__get_compat_file(struct vdso_file *vdso_file)
218 if (vdso_file->found)
219 return vdso_file->temp_file_name;
221 if (vdso_file->error)
224 err = vdso__create_compat_file(vdso_file->read_prog,
225 vdso_file->temp_file_name);
227 pr_err("%s failed, error %d\n", vdso_file->read_prog, err);
228 vdso_file->error = true;
232 vdso_file->found = true;
234 return vdso_file->temp_file_name;
238 struct vdso_file *vdso_file)
243 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true);
247 file_name = vdso__get_compat_file(vdso_file);
251 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name);