• Home
  • Raw
  • Download

Lines Matching refs:kallsyms

2755 	mod->kallsyms = mod->init_layout.base + info->mod_kallsyms_init_off;  in add_kallsyms()
2757 mod->kallsyms->symtab = (void *)symsec->sh_addr; in add_kallsyms()
2758 mod->kallsyms->num_symtab = symsec->sh_size / sizeof(Elf_Sym); in add_kallsyms()
2760 mod->kallsyms->strtab = (void *)info->sechdrs[info->index.str].sh_addr; in add_kallsyms()
2761 mod->kallsyms->typetab = mod->init_layout.base + info->init_typeoffs; in add_kallsyms()
2770 src = mod->kallsyms->symtab; in add_kallsyms()
2771 for (ndst = i = 0; i < mod->kallsyms->num_symtab; i++) { in add_kallsyms()
2772 mod->kallsyms->typetab[i] = elf_type(src + i, info); in add_kallsyms()
2777 mod->kallsyms->typetab[i]; in add_kallsyms()
2780 s += strlcpy(s, &mod->kallsyms->strtab[src[i].st_name], in add_kallsyms()
3633 rcu_assign_pointer(mod->kallsyms, &mod->core_kallsyms); in do_init_module()
4050 static const char *kallsyms_symbol_name(struct mod_kallsyms *kallsyms, unsigned int symnum) in kallsyms_symbol_name() argument
4052 return kallsyms->strtab + kallsyms->symtab[symnum].st_name; in kallsyms_symbol_name()
4066 struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms); in find_kallsyms_symbol() local
4074 bestval = kallsyms_symbol_value(&kallsyms->symtab[best]); in find_kallsyms_symbol()
4078 for (i = 1; i < kallsyms->num_symtab; i++) { in find_kallsyms_symbol()
4079 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol()
4087 if (*kallsyms_symbol_name(kallsyms, i) == '\0' in find_kallsyms_symbol()
4088 || is_arm_mapping_symbol(kallsyms_symbol_name(kallsyms, i))) in find_kallsyms_symbol()
4107 return kallsyms_symbol_name(kallsyms, best); in find_kallsyms_symbol()
4205 struct mod_kallsyms *kallsyms; in module_get_kallsym() local
4209 kallsyms = rcu_dereference_sched(mod->kallsyms); in module_get_kallsym()
4210 if (symnum < kallsyms->num_symtab) { in module_get_kallsym()
4211 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym()
4214 *type = kallsyms->typetab[symnum]; in module_get_kallsym()
4215 strlcpy(name, kallsyms_symbol_name(kallsyms, symnum), KSYM_NAME_LEN); in module_get_kallsym()
4221 symnum -= kallsyms->num_symtab; in module_get_kallsym()
4231 struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms); in find_kallsyms_symbol_value() local
4233 for (i = 0; i < kallsyms->num_symtab; i++) { in find_kallsyms_symbol_value()
4234 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol_value()
4236 if (strcmp(name, kallsyms_symbol_name(kallsyms, i)) == 0 && in find_kallsyms_symbol_value()
4279 struct mod_kallsyms *kallsyms = mod->kallsyms; in module_kallsyms_on_each_symbol() local
4283 for (i = 0; i < kallsyms->num_symtab; i++) { in module_kallsyms_on_each_symbol()
4284 const Elf_Sym *sym = &kallsyms->symtab[i]; in module_kallsyms_on_each_symbol()
4289 ret = fn(data, kallsyms_symbol_name(kallsyms, i), in module_kallsyms_on_each_symbol()