Lines Matching defs:kernel

8 #include <linux/kernel.h>
123 /* Avoid "SyS" kernel syscall aliases */
231 * On some architecture kernel text segment start is located at
234 * kernel text segment and beginning of first module's text
236 * not assign it to the kernel dso map (kallsyms).
243 /* Last kernel/module symbol mapped to end of page */
331 struct symbol *sym, bool kernel)
339 if (kernel) {
525 __symbols__insert(&dso->symbols, sym, dso->kernel);
671 * These are symbols in the kernel image, so make sure that
672 * sym is from a kernel DSO.
799 * kernel range is broken in several maps, named [kernel].N, as we don't have
836 dso->kernel == DSO_SPACE__KERNEL_GUEST &&
874 * is the start of kernel text, by simply removing the
893 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
895 "[guest.kernel].%d",
899 "[kernel].%d",
906 ndso->kernel = dso->kernel;
937 dso->kernel == DSO_SPACE__KERNEL_GUEST &&
1312 /* This function requires that the map is the kernel map */
1320 /* Modules and kernel must be present at their original addresses */
1358 /* Find the kernel map using the '_stext' symbol */
1415 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1424 pr_debug("Using %s for kernel object code\n", kcore_filename);
1426 pr_debug("Using %s for kernel data\n", kcore_filename);
1441 * If the kernel is relocated at boot time, kallsyms won't match. Compute the
1479 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1696 return !kmod && dso->kernel == DSO_SPACE__USER;
1701 return dso->kernel == DSO_SPACE__KERNEL;
1706 return dso->kernel == DSO_SPACE__KERNEL_GUEST;
1713 * kernel modules know their symtab type - it's set when
1808 if (dso->kernel && !kmod) {
1809 if (dso->kernel == DSO_SPACE__KERNEL)
1811 else if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
2051 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
2063 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
2158 * any vmlinux file, try the running kernel kallsyms table.
2163 if (sysfs__read_build_id("/sys/kernel/notes", &bid) == 0)
2355 /* only try kernel version if no symfs was given */
2414 FILE *fp = fopen("/proc/sys/kernel/kptr_restrict", "r");
2427 /* Per kernel/kallsyms.c: