Lines Matching defs:kernel

8 #include <linux/kernel.h>
133 /* Avoid "SyS" kernel syscall aliases */
244 * On some architecture kernel text segment start is located at
247 * kernel text segment and beginning of first module's text
249 * not assign it to the kernel dso map (kallsyms).
271 /* Last kernel/module symbol mapped to end of page */
345 struct symbol *sym, bool kernel)
353 if (kernel) {
541 __symbols__insert(&dso->symbols, sym, dso->kernel);
702 * These are symbols in the kernel image, so make sure that
703 * sym is from a kernel DSO.
837 * kernel range is broken in several maps, named [kernel].N, as we don't have
876 dso->kernel == DSO_SPACE__KERNEL_GUEST &&
915 * is the start of kernel text, by simply removing the
935 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
937 "[guest.kernel].%d",
941 "[kernel].%d",
949 ndso->kernel = dso->kernel;
986 dso->kernel == DSO_SPACE__KERNEL_GUEST &&
1302 /* This function requires that the map is the kernel map */
1310 /* Modules and kernel must be present at their original addresses */
1340 /* Find the kernel map using the '_stext' symbol */
1353 * On some architectures, ARM64 for example, the kernel
1421 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1430 pr_debug("Using %s for kernel object code\n", kcore_filename);
1432 pr_debug("Using %s for kernel data\n", kcore_filename);
1450 * If the kernel is relocated at boot time, kallsyms won't match. Compute the
1488 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1704 return !kmod && dso->kernel == DSO_SPACE__USER;
1709 return dso->kernel == DSO_SPACE__KERNEL;
1714 return dso->kernel == DSO_SPACE__KERNEL_GUEST;
1721 * kernel modules know their symtab type - it's set when
1816 if (dso->kernel && !kmod) {
1817 if (dso->kernel == DSO_SPACE__KERNEL)
1819 else if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1985 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
1998 if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
2097 * any vmlinux file, try the running kernel kallsyms table.
2102 if (sysfs__read_build_id("/sys/kernel/notes", &bid) == 0)
2312 /* only try kernel version if no symfs was given */
2414 FILE *fp = fopen("/proc/sys/kernel/kptr_restrict", "r");
2427 /* Per kernel/kallsyms.c:
2595 * Checks that user supplied symbol kernel files are accessible because