Lines Matching defs:kallsyms

123 	struct machine kallsyms, vmlinux;
132 * both vmlinux + .ko files and from /proc/kallsyms split by modules.
134 machine__init(&kallsyms, "", HOST_KERNEL_ID);
142 * Create the kernel maps for kallsyms and the DSO where we will then
143 * load /proc/kallsyms. Also create the modules maps from /proc/modules
146 if (machine__create_kernel_maps(&kallsyms) < 0) {
155 * Load and split /proc/kallsyms into multiple maps, one per module.
161 * code and with the one got from /proc/modules from the "kallsyms" code.
163 if (machine__load_kallsyms(&kallsyms, "/proc/kallsyms") <= 0) {
172 * kallsyms will be internally on demand sorted by name so that we can
177 kallsyms_map = machine__kernel_map(&kallsyms);
213 * in the kallsyms dso. For the ones that are in both, check its names and
227 first_pair = machine__find_kernel_symbol(&kallsyms, mem_start, NULL);
234 * kallsyms don't have the symbol end, so we
252 * kallsyms.
256 pair = machine__find_kernel_symbol_by_name(&kallsyms, sym->name, NULL);
270 } else if (mem_start == map__end(kallsyms.vmlinux_map)) {
278 * Ignore hidden symbols, see scripts/kallsyms.c for the details
282 pr_debug("ERR : %#" PRIx64 ": %s not on kallsyms\n",
298 * If it is the kernel, kallsyms is always "[kernel.kallsyms]", while
303 struct map *pair = maps__find_by_name(kallsyms.kmaps, (dso->kernel ?
325 pair = maps__find(kallsyms.kmaps, mem_start);
333 pr_info("WARN: Maps in vmlinux with a different name in kallsyms:\n");
337 pr_info("WARN: %" PRIx64 "-%" PRIx64 " %" PRIx64 " %s in kallsyms as",
349 maps = machine__kernel_maps(&kallsyms);
356 pr_info("WARN: Maps only in kallsyms:\n");
363 machine__exit(&kallsyms);
368 DEFINE_SUITE("vmlinux symtab matches kallsyms", vmlinux_matches_kallsyms);