Lines Matching refs:kmap
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()
927 if (!kmap) in dso__process_kernel_symbol()
951 curr_map->start = shdr->sh_addr + ref_reloc(kmap); in dso__process_kernel_symbol()
979 struct kmap *kmap = dso->kernel ? map__kmap(map) : NULL; in dso__load_sym() local
980 struct map_groups *kmaps = kmap ? map__kmaps(map) : NULL; in dso__load_sym()
997 if (kmap && !kmaps) in dso__load_sym()
1064 if (ref_reloc_sym_not_found(kmap)) { in dso__load_sym()
1068 if (strcmp(elf_name, kmap->ref_reloc_sym->name)) in dso__load_sym()
1070 kmap->ref_reloc_sym->unrelocated_addr = sym.st_value; in dso__load_sym()
1071 map->reloc = kmap->ref_reloc_sym->addr - in dso__load_sym()
1072 kmap->ref_reloc_sym->unrelocated_addr; in dso__load_sym()
1084 dso->adjust_symbols = runtime_ss->adjust_symbols || ref_reloc(kmap); in dso__load_sym()
1153 if (dso__process_kernel_symbol(dso, map, &sym, &shdr, kmaps, kmap, &curr_dso, &curr_map, in dso__load_sym()
1210 if (kmap) { in dso__load_sym()