Home | History | Annotate | Download | only in util

Lines Matching defs:kernel

220 		dso->kernel = DSO_TYPE_USER;
564 * kernel range is broken in several maps, named [kernel].N, as we don't have
594 dso->kernel == DSO_TYPE_GUEST_KERNEL &&
637 if (dso->kernel == DSO_TYPE_GUEST_KERNEL)
639 "[guest.kernel].%d",
643 "[kernel].%d",
650 ndso->kernel = dso->kernel;
677 dso->kernel == DSO_TYPE_GUEST_KERNEL &&
712 if (dso->kernel == DSO_TYPE_GUEST_KERNEL)
1070 struct kmap *kmap = dso->kernel ? map__kmap(map) : NULL;
1148 if (dso->kernel == DSO_TYPE_USER) {
1205 if (dso->kernel != DSO_TYPE_USER || kmodule) {
1232 curr_dso->kernel = dso->kernel;
1498 if (dso->kernel == DSO_TYPE_KERNEL)
1500 else if (dso->kernel == DSO_TYPE_GUEST_KERNEL)
1640 * kernel module short names are of the form "[module]" and
1759 snprintf(modules_path, sizeof(modules_path), "%s/lib/modules/%s/kernel",
1774 (dso->kernel ? sizeof(struct kmap) : 0)));
1975 * Say the kernel DSO was created when processing the build-id header table,
1976 * we have a build-id, so check if it is the same as the running kernel,
1983 if (sysfs__read_build_id("/sys/kernel/notes", kallsyms_build_id,
1992 * $HOME/.debug/[kernel.kallsyms].
1998 "%s/.debug/[kernel.kallsyms]/%s",
2015 * any vmlinux file, try the running kernel kallsyms table.
2029 dso__set_long_name(dso, strdup("[kernel.kallsyms]"));
2046 pr_debug("Guest kernel map hasn't the point to groups\n");
2183 struct dso *dso = dso__new(name ?: "[kernel.kallsyms]");
2186 dso__set_short_name(dso, "[kernel]");
2187 dso->kernel = DSO_TYPE_KERNEL;
2200 dso__set_short_name(dso, "[guest.kernel]");
2201 dso->kernel = DSO_TYPE_GUEST_KERNEL;
2213 sprintf(path, "%s/sys/kernel/notes", machine->root_dir);
2222 struct dso *kernel;
2226 kernel = dso__new_kernel(vmlinux_name);
2230 kernel = dso__new_guest_kernel(machine, vmlinux_name);
2233 if (kernel != NULL) {
2234 dso__read_running_kernel_build_id(kernel, machine);
2235 dsos__add(&machine->kernel_dsos, kernel);
2237 return kernel;
2256 /* Figure out the start address of kernel map from /proc/kallsyms */
2283 int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel)
2291 machine->vmlinux_maps[type] = map__new2(start, kernel, type);
2340 struct dso *kernel = machine__create_kernel(machine);
2342 if (kernel == NULL ||
2343 __machine__create_kernel_maps(machine, kernel) < 0)
2384 /* only try running kernel version if no symfs was given */
2453 FILE *fp = fopen("/proc/sys/kernel/kptr_restrict", "r");
2660 * kernel, with modules between them, fixup the end of all