Lines Matching refs:kmap

944 static bool ref_reloc_sym_not_found(struct kmap *kmap)  in ref_reloc_sym_not_found()  argument
946 return kmap && kmap->ref_reloc_sym && kmap->ref_reloc_sym->name && in ref_reloc_sym_not_found()
947 !kmap->ref_reloc_sym->unrelocated_addr; in ref_reloc_sym_not_found()
958 static u64 ref_reloc(struct kmap *kmap) in ref_reloc() argument
960 if (kmap && kmap->ref_reloc_sym && in ref_reloc()
961 kmap->ref_reloc_sym->unrelocated_addr) in ref_reloc()
962 return kmap->ref_reloc_sym->addr - in ref_reloc()
963 kmap->ref_reloc_sym->unrelocated_addr; in ref_reloc()
972 struct maps *kmaps, struct kmap *kmap, in dso__process_kernel_symbol() argument
996 map->start = shdr->sh_addr + ref_reloc(kmap); in dso__process_kernel_symbol()
1025 if (!kmap) in dso__process_kernel_symbol()
1052 curr_map->start = shdr->sh_addr + ref_reloc(kmap); in dso__process_kernel_symbol()
1081 struct kmap *kmap = dso->kernel ? map__kmap(map) : NULL; in dso__load_sym_internal() local
1082 struct maps *kmaps = kmap ? map__kmaps(map) : NULL; in dso__load_sym_internal()
1099 if (kmap && !kmaps) in dso__load_sym_internal()
1155 if (ref_reloc_sym_not_found(kmap)) { in dso__load_sym_internal()
1159 if (strcmp(elf_name, kmap->ref_reloc_sym->name)) in dso__load_sym_internal()
1161 kmap->ref_reloc_sym->unrelocated_addr = sym.st_value; in dso__load_sym_internal()
1162 map->reloc = kmap->ref_reloc_sym->addr - in dso__load_sym_internal()
1163 kmap->ref_reloc_sym->unrelocated_addr; in dso__load_sym_internal()
1175 dso->adjust_symbols = runtime_ss->adjust_symbols || ref_reloc(kmap); in dso__load_sym_internal()
1260 if (dso__process_kernel_symbol(dso, map, &sym, &shdr, kmaps, kmap, &curr_dso, &curr_map, in dso__load_sym_internal()
1295 if (kmap) { in dso__load_sym_internal()