Lines Matching defs:kallsyms
23 struct machine kallsyms, vmlinux;
32 * both vmlinux + .ko files and from /proc/kallsyms split by modules.
34 machine__init(&kallsyms, "", HOST_KERNEL_ID);
40 * Create the kernel maps for kallsyms and the DSO where we will then
41 * load /proc/kallsyms. Also create the modules maps from /proc/modules
44 if (machine__create_kernel_maps(&kallsyms) < 0) {
52 * Load and split /proc/kallsyms into multiple maps, one per module.
58 * code and with the one got from /proc/modules from the "kallsyms" code.
60 if (machine__load_kallsyms(&kallsyms, "/proc/kallsyms") <= 0) {
68 * kallsyms will be internally on demand sorted by name so that we can
73 kallsyms_map = machine__kernel_map(&kallsyms);
109 * in the kallsyms dso. For the ones that are in both, check its names and
123 first_pair = machine__find_kernel_symbol(&kallsyms, mem_start, NULL);
130 * kallsyms don't have the symbol end, so we
148 * kallsyms.
152 pair = machine__find_kernel_symbol_by_name(&kallsyms, sym->name, NULL);
166 } else if (mem_start == kallsyms.vmlinux_map->end) {
173 pr_debug("ERR : %#" PRIx64 ": %s not on kallsyms\n",
188 * If it is the kernel, kallsyms is always "[kernel.kallsyms]", while
193 pair = maps__find_by_name(&kallsyms.kmaps, (map->dso->kernel ?
215 pair = maps__find(&kallsyms.kmaps, mem_start);
221 pr_info("WARN: Maps in vmlinux with a different name in kallsyms:\n");
225 pr_info("WARN: %" PRIx64 "-%" PRIx64 " %" PRIx64 " %s in kallsyms as",
237 maps = machine__kernel_maps(&kallsyms);
242 pr_info("WARN: Maps only in kallsyms:\n");
249 machine__exit(&kallsyms);