Lines Matching refs:release

147   if (utsname.release[0] == '\0' && uname (&utsname) != 0)  in kernel_release()
149 return utsname.release; in kernel_release()
153 find_kernel_elf (Dwfl *dwfl, const char *release, char **fname) in find_kernel_elf() argument
155 if ((release[0] == '/' in find_kernel_elf()
156 ? asprintf (fname, "%s/vmlinux", release) in find_kernel_elf()
157 : asprintf (fname, "/boot/vmlinux-%s", release)) < 0) in find_kernel_elf()
161 if (fd < 0 && release[0] != '/') in find_kernel_elf()
164 if (asprintf (fname, MODULEDIRFMT "/vmlinux", release) < 0) in find_kernel_elf()
173 get_release (Dwfl *dwfl, const char **release) in get_release() argument
178 const char *release_string = release == NULL ? NULL : *release; in get_release()
184 if (release != NULL) in get_release()
185 *release = release_string; in get_release()
192 report_kernel (Dwfl *dwfl, const char **release, in report_kernel() argument
195 int result = get_release (dwfl, release); in report_kernel()
200 int fd = find_kernel_elf (dwfl, *release, &fname); in report_kernel()
247 report_kernel_archive (Dwfl *dwfl, const char **release, in report_kernel_archive() argument
250 int result = get_release (dwfl, release); in report_kernel_archive()
255 int res = (((*release)[0] == '/') in report_kernel_archive()
256 ? asprintf (&archive, "%s/debug.a", *release) in report_kernel_archive()
257 : asprintf (&archive, MODULEDIRFMT "/debug.a", *release)); in report_kernel_archive()
321 dwfl_linux_kernel_report_offline (Dwfl *dwfl, const char *release, in dwfl_linux_kernel_report_offline() argument
325 int result = report_kernel_archive (dwfl, &release, predicate); in dwfl_linux_kernel_report_offline()
330 result = report_kernel (dwfl, &release, predicate); in dwfl_linux_kernel_report_offline()
336 if (release[0] == '/') in dwfl_linux_kernel_report_offline()
337 modulesdir[0] = (char *) release; in dwfl_linux_kernel_report_offline()
340 if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0) in dwfl_linux_kernel_report_offline()
345 if (modulesdir[0] == (char *) release) in dwfl_linux_kernel_report_offline()
708 const char *release = kernel_release (); in dwfl_linux_kernel_find_elf() local
709 if (release == NULL) in dwfl_linux_kernel_find_elf()
713 return find_kernel_elf (mod->dwfl, release, file_name); in dwfl_linux_kernel_find_elf()
718 if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0) in dwfl_linux_kernel_find_elf()