Lines Matching refs:vdso_file
31 struct vdso_file { struct
40 struct vdso_file vdso; argument
42 struct vdso_file vdso32;
43 struct vdso_file vdsox32;
71 static char *get_file(struct vdso_file *vdso_file) in get_file() argument
79 if (vdso_file->found) in get_file()
80 return vdso_file->temp_file_name; in get_file()
82 if (vdso_file->error || find_map(&start, &end, VDSO__MAP_NAME)) in get_file()
91 fd = mkstemp(vdso_file->temp_file_name); in get_file()
96 vdso = vdso_file->temp_file_name; in get_file()
103 vdso_file->found = (vdso != NULL); in get_file()
104 vdso_file->error = !vdso_file->found; in get_file()
215 static const char *vdso__get_compat_file(struct vdso_file *vdso_file) in vdso__get_compat_file() argument
219 if (vdso_file->found) in vdso__get_compat_file()
220 return vdso_file->temp_file_name; in vdso__get_compat_file()
222 if (vdso_file->error) in vdso__get_compat_file()
225 err = vdso__create_compat_file(vdso_file->read_prog, in vdso__get_compat_file()
226 vdso_file->temp_file_name); in vdso__get_compat_file()
228 pr_err("%s failed, error %d\n", vdso_file->read_prog, err); in vdso__get_compat_file()
229 vdso_file->error = true; in vdso__get_compat_file()
233 vdso_file->found = true; in vdso__get_compat_file()
235 return vdso_file->temp_file_name; in vdso__get_compat_file()
239 struct vdso_file *vdso_file) in __machine__findnew_compat() argument
244 dso = __dsos__find(&machine->dsos, vdso_file->dso_name, true); in __machine__findnew_compat()
248 file_name = vdso__get_compat_file(vdso_file); in __machine__findnew_compat()
252 dso = __machine__addnew_vdso(machine, vdso_file->dso_name, file_name); in __machine__findnew_compat()