Lines Matching refs:release

146   if (utsname.release[0] == '\0' && uname (&utsname) != 0)  in kernel_release()
148 return utsname.release; in kernel_release()
152 find_kernel_elf (Dwfl *dwfl, const char *release, char **fname) in find_kernel_elf() argument
154 if ((release[0] == '/' in find_kernel_elf()
155 ? asprintf (fname, "%s/vmlinux", release) in find_kernel_elf()
156 : asprintf (fname, "/boot/vmlinux-%s", release)) < 0) in find_kernel_elf()
160 if (fd < 0 && release[0] != '/') in find_kernel_elf()
163 if (asprintf (fname, MODULEDIRFMT "/vmlinux", release) < 0) in find_kernel_elf()
172 get_release (Dwfl *dwfl, const char **release) in get_release() argument
177 const char *release_string = release == NULL ? NULL : *release; in get_release()
183 if (release != NULL) in get_release()
184 *release = release_string; in get_release()
191 report_kernel (Dwfl *dwfl, const char **release, in report_kernel() argument
194 int result = get_release (dwfl, release); in report_kernel()
199 int fd = find_kernel_elf (dwfl, *release, &fname); in report_kernel()
246 report_kernel_archive (Dwfl *dwfl, const char **release, in report_kernel_archive() argument
249 int result = get_release (dwfl, release); in report_kernel_archive()
254 int res = (((*release)[0] == '/') in report_kernel_archive()
255 ? asprintf (&archive, "%s/debug.a", *release) in report_kernel_archive()
256 : asprintf (&archive, MODULEDIRFMT "/debug.a", *release)); in report_kernel_archive()
322 dwfl_linux_kernel_report_offline (Dwfl *dwfl, const char *release, in dwfl_linux_kernel_report_offline() argument
326 int result = report_kernel_archive (dwfl, &release, predicate); in dwfl_linux_kernel_report_offline()
331 result = report_kernel (dwfl, &release, predicate); in dwfl_linux_kernel_report_offline()
337 if (release[0] == '/') in dwfl_linux_kernel_report_offline()
338 modulesdir[0] = (char *) release; in dwfl_linux_kernel_report_offline()
341 if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0) in dwfl_linux_kernel_report_offline()
346 if (modulesdir[0] == (char *) release) in dwfl_linux_kernel_report_offline()
669 const char *release = kernel_release (); in INTDEF() local
670 if (release == NULL) in INTDEF()
674 return find_kernel_elf (mod->dwfl, release, file_name); in INTDEF()
679 if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0) in INTDEF()