Lines Matching +full:non +full:- +full:descriptive
1 // SPDX-License-Identifier: GPL-2.0
15 #define UM(x) kallsyms_map->unmap_ip(kallsyms_map, (x))
19 int err = -1; in test__vmlinux_matches_kallsyms()
42 * and find the .ko files that match them in /lib/modules/`uname -r`/. in test__vmlinux_matches_kallsyms()
54 * and has parts that only make sense if using the non-kcore code. in test__vmlinux_matches_kallsyms()
78 * Now repeat step 2, this time for the vmlinux file we'll auto-locate. in test__vmlinux_matches_kallsyms()
95 * maps__reloc_vmlinux will notice and set proper ->[un]map_ip routines in test__vmlinux_matches_kallsyms()
117 if (sym->start == sym->end) in test__vmlinux_matches_kallsyms()
120 mem_start = vmlinux_map->unmap_ip(vmlinux_map, sym->start); in test__vmlinux_matches_kallsyms()
121 mem_end = vmlinux_map->unmap_ip(vmlinux_map, sym->end); in test__vmlinux_matches_kallsyms()
126 if (pair && UM(pair->start) == mem_start) { in test__vmlinux_matches_kallsyms()
128 if (arch__compare_symbol_names(sym->name, pair->name) == 0) { in test__vmlinux_matches_kallsyms()
131 * set that by using the next symbol start - 1, in test__vmlinux_matches_kallsyms()
138 s64 skew = mem_end - UM(pair->end); in test__vmlinux_matches_kallsyms()
141 mem_start, sym->name, mem_end, in test__vmlinux_matches_kallsyms()
142 UM(pair->end)); in test__vmlinux_matches_kallsyms()
152 pair = machine__find_kernel_symbol_by_name(&kallsyms, sym->name, NULL); in test__vmlinux_matches_kallsyms()
154 if (UM(pair->start) == mem_start) in test__vmlinux_matches_kallsyms()
158 mem_start, sym->name, pair->name); in test__vmlinux_matches_kallsyms()
161 mem_start, sym->name, first_pair->name); in test__vmlinux_matches_kallsyms()
166 } else if (mem_start == kallsyms.vmlinux_map->end) { in test__vmlinux_matches_kallsyms()
174 mem_start, sym->name); in test__vmlinux_matches_kallsyms()
177 err = -1; in test__vmlinux_matches_kallsyms()
190 * so use the short name, less descriptive but the same ("[kernel]" in in test__vmlinux_matches_kallsyms()
193 pair = maps__find_by_name(&kallsyms.kmaps, (map->dso->kernel ? in test__vmlinux_matches_kallsyms()
194 map->dso->short_name : in test__vmlinux_matches_kallsyms()
195 map->dso->name)); in test__vmlinux_matches_kallsyms()
197 pair->priv = 1; in test__vmlinux_matches_kallsyms()
212 mem_start = vmlinux_map->unmap_ip(vmlinux_map, map->start); in test__vmlinux_matches_kallsyms()
213 mem_end = vmlinux_map->unmap_ip(vmlinux_map, map->end); in test__vmlinux_matches_kallsyms()
216 if (pair == NULL || pair->priv) in test__vmlinux_matches_kallsyms()
219 if (pair->start == mem_start) { in test__vmlinux_matches_kallsyms()
225 pr_info("WARN: %" PRIx64 "-%" PRIx64 " %" PRIx64 " %s in kallsyms as", in test__vmlinux_matches_kallsyms()
226 map->start, map->end, map->pgoff, map->dso->name); in test__vmlinux_matches_kallsyms()
227 if (mem_end != pair->end) in test__vmlinux_matches_kallsyms()
228 pr_info(":\nWARN: *%" PRIx64 "-%" PRIx64 " %" PRIx64, in test__vmlinux_matches_kallsyms()
229 pair->start, pair->end, pair->pgoff); in test__vmlinux_matches_kallsyms()
230 pr_info(" %s\n", pair->dso->name); in test__vmlinux_matches_kallsyms()
231 pair->priv = 1; in test__vmlinux_matches_kallsyms()
240 if (!map->priv) { in test__vmlinux_matches_kallsyms()