Searched refs:kmap (Results 1 – 12 of 12) sorted by relevance
/tools/perf/arch/x86/util/ |
D | event.c | 33 struct kmap *kmap; in perf_event__synthesize_extra_kmaps() local 39 kmap = map__kmap(pos); in perf_event__synthesize_extra_kmaps() 42 PERF_ALIGN(strlen(kmap->name) + 1, sizeof(u64)) + in perf_event__synthesize_extra_kmaps() 65 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps()
|
/tools/perf/util/ |
D | map.c | 235 (dso->kernel ? sizeof(struct kmap) : 0))); in map__new2() 262 struct kmap *kmap = __map__kmap((struct map *)map); in __map__is_extra_kernel_map() local 264 return kmap && kmap->name[0]; in __map__is_extra_kernel_map() 514 struct kmap *kmap = __map__kmap(map); in map__rip_2objdump() local 521 if (kmap && is_entry_trampoline(kmap->name) && kmap->kmaps && kmap->kmaps->machine) { in map__rip_2objdump() 522 struct map *kernel_map = machine__kernel_map(kmap->kmaps->machine); in map__rip_2objdump() 1018 struct kmap *__map__kmap(struct map *map) in __map__kmap() 1022 return (struct kmap *)(map + 1); in __map__kmap() 1025 struct kmap *map__kmap(struct map *map) in map__kmap() 1027 struct kmap *kmap = __map__kmap(map); in map__kmap() local [all …]
|
D | symbol-elf.c | 846 static bool ref_reloc_sym_not_found(struct kmap *kmap) in ref_reloc_sym_not_found() argument 848 return kmap && kmap->ref_reloc_sym && kmap->ref_reloc_sym->name && in ref_reloc_sym_not_found() 849 !kmap->ref_reloc_sym->unrelocated_addr; in ref_reloc_sym_not_found() 860 static u64 ref_reloc(struct kmap *kmap) in ref_reloc() argument 862 if (kmap && kmap->ref_reloc_sym && in ref_reloc() 863 kmap->ref_reloc_sym->unrelocated_addr) in ref_reloc() 864 return kmap->ref_reloc_sym->addr - in ref_reloc() 865 kmap->ref_reloc_sym->unrelocated_addr; in ref_reloc() 874 struct map_groups *kmaps, struct kmap *kmap, in dso__process_kernel_symbol() argument 898 map->start = shdr->sh_addr + ref_reloc(kmap); in dso__process_kernel_symbol() [all …]
|
D | map.h | 49 struct kmap; 51 struct kmap *__map__kmap(struct map *map); 52 struct kmap *map__kmap(struct map *map);
|
D | symbol.c | 1144 struct kmap *kmap = map__kmap(map); in validate_kcore_addresses() local 1146 if (!kmap) in validate_kcore_addresses() 1149 if (kmap->ref_reloc_sym && kmap->ref_reloc_sym->name) { in validate_kcore_addresses() 1153 kmap->ref_reloc_sym->name, &start)) in validate_kcore_addresses() 1155 if (start != kmap->ref_reloc_sym->addr) in validate_kcore_addresses() 1418 static int kallsyms__delta(struct kmap *kmap, const char *filename, u64 *delta) in kallsyms__delta() argument 1422 if (!kmap->ref_reloc_sym || !kmap->ref_reloc_sym->name) in kallsyms__delta() 1425 if (kallsyms__get_function_start(filename, kmap->ref_reloc_sym->name, &addr)) in kallsyms__delta() 1428 *delta = addr - kmap->ref_reloc_sym->addr; in kallsyms__delta() 1435 struct kmap *kmap = map__kmap(map); in __dso__load_kallsyms() local [all …]
|
D | machine.c | 964 struct kmap *kmap; in machine__create_extra_kernel_map() local 974 kmap = map__kmap(map); in machine__create_extra_kernel_map() 976 kmap->kmaps = &machine->kmaps; in machine__create_extra_kernel_map() 977 strlcpy(kmap->name, xm->name, KMAP_NAME_LEN); in machine__create_extra_kernel_map() 982 kmap->name, map->start, map->end); in machine__create_extra_kernel_map() 1036 struct kmap *kmap = __map__kmap(map); in machine__map_x86_64_entry_trampolines() local 1039 if (!kmap || !is_entry_trampoline(kmap->name)) in machine__map_x86_64_entry_trampolines() 1087 struct kmap *kmap; in __machine__create_kernel_maps() local 1099 kmap = map__kmap(map); in __machine__create_kernel_maps() 1100 if (!kmap) in __machine__create_kernel_maps() [all …]
|
D | map_groups.h | 42 struct kmap { struct
|
D | synthetic-events.c | 819 struct kmap *kmap; in __perf_event__synthesize_kernel_mmap() local 826 kmap = map__kmap(map); in __perf_event__synthesize_kernel_mmap() 827 if (!kmap->ref_reloc_sym) in __perf_event__synthesize_kernel_mmap() 853 "%s%s", machine->mmap_name, kmap->ref_reloc_sym->name) + 1; in __perf_event__synthesize_kernel_mmap() 858 event->mmap.pgoff = kmap->ref_reloc_sym->addr; in __perf_event__synthesize_kernel_mmap()
|
D | session.c | 2251 struct kmap *kmap; in map__set_kallsyms_ref_reloc_sym() local 2269 kmap = map__kmap(map); in map__set_kallsyms_ref_reloc_sym() 2270 if (kmap) in map__set_kallsyms_ref_reloc_sym() 2271 kmap->ref_reloc_sym = ref; in map__set_kallsyms_ref_reloc_sym()
|
D | probe-event.c | 108 struct kmap *kmap; in kernel_get_ref_reloc_sym() local 114 kmap = map__kmap(map); in kernel_get_ref_reloc_sym() 115 if (!kmap) in kernel_get_ref_reloc_sym() 121 return kmap->ref_reloc_sym; in kernel_get_ref_reloc_sym()
|
/tools/testing/scatterlist/linux/ |
D | mm.h | 78 static inline void *kmap(struct page *page) in kmap() function
|
/tools/perf/ |
D | builtin-report.c | 526 struct kmap *kernel_kmap = kernel_map ? map__kmap(kernel_map) : NULL; in report__warn_kptr_restrict()
|