Lines Matching defs:kernel

8 #include <linux/kernel.h>
133 /* Avoid "SyS" kernel syscall aliases */
245 * On some architecture kernel text segment start is located at
248 * kernel text segment and beginning of first module's text
250 * not assign it to the kernel dso map (kallsyms).
257 /* Last kernel/module symbol mapped to end of page */
352 struct symbol *sym, bool kernel)
360 if (kernel) {
548 __symbols__insert(&dso->symbols, sym, dso->kernel);
709 * These are symbols in the kernel image, so make sure that
710 * sym is from a kernel DSO.
842 * kernel range is broken in several maps, named [kernel].N, as we don't have
881 dso->kernel == DSO_SPACE__KERNEL_GUEST &&
919 * is the start of kernel text, by simply removing the
938 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
940 "[guest.kernel].%d",
944 "[kernel].%d",
951 ndso->kernel = dso->kernel;
988 dso->kernel == DSO_SPACE__KERNEL_GUEST &&
1389 /* This function requires that the map is the kernel map */
1397 /* Modules and kernel must be present at their original addresses */
1437 /* Find the kernel map using the '_stext' symbol */
1450 * On some architectures, ARM64 for example, the kernel
1519 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1528 pr_debug("Using %s for kernel object code\n", kcore_filename);
1530 pr_debug("Using %s for kernel data\n", kcore_filename);
1548 * If the kernel is relocated at boot time, kallsyms won't match. Compute the
1586 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1800 return !kmod && dso->kernel == DSO_SPACE__USER;
1805 return dso->kernel == DSO_SPACE__KERNEL;
1810 return dso->kernel == DSO_SPACE__KERNEL_GUEST;
1817 * kernel modules know their symtab type - it's set when
1912 if (dso->kernel && !kmod) {
1913 if (dso->kernel == DSO_SPACE__KERNEL)
1915 else if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
2199 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
2212 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
2311 * any vmlinux file, try the running kernel kallsyms table.
2316 if (sysfs__read_build_id("/sys/kernel/notes", &bid) == 0)
2526 /* only try kernel version if no symfs was given */
2628 FILE *fp = fopen("/proc/sys/kernel/kptr_restrict", "r");
2641 /* Per kernel/kallsyms.c:
2806 * Checks that user supplied symbol kernel files are accessible because