Lines Matching refs:modname
160 static struct module *find_module(const char *modname) in find_module() argument
165 if (strcmp(mod->name, modname) == 0) in find_module()
170 static struct module *new_module(const char *modname) in new_module() argument
174 mod = NOFAIL(malloc(sizeof(*mod) + strlen(modname) + 1)); in new_module()
178 strcpy(mod->name, modname); in new_module()
179 mod->is_vmlinux = (strcmp(modname, "vmlinux") == 0); in new_module()
909 static void check_section(const char *modname, struct elf_info *elf, in check_section() argument
921 modname, sec); in check_section()
1038 void (*handler)(const char *modname, struct elf_info *elf,
1044 static void extable_mismatch_handler(const char *modname, struct elf_info *elf,
1447 static void report_sec_mismatch(const char *modname, in report_sec_mismatch() argument
1468 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec, in report_sec_mismatch()
1587 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() argument
1610 report_sec_mismatch(modname, mismatch, in default_mismatch_handler()
1662 static void report_extable_warnings(const char* modname, struct elf_info* elf, in report_extable_warnings() argument
1683 modname, fromsec, (long)r->r_offset, from_pretty_name, in report_extable_warnings()
1700 static void extable_mismatch_handler(const char* modname, struct elf_info *elf, in extable_mismatch_handler() argument
1709 report_extable_warnings(modname, elf, mismatch, r, sym, fromsec, tosec); in extable_mismatch_handler()
1717 fromsec, (long)r->r_offset, tosec, modname); in extable_mismatch_handler()
1736 static void check_section_mismatch(const char *modname, struct elf_info *elf, in check_section_mismatch() argument
1744 mismatch->handler(modname, elf, mismatch, in check_section_mismatch()
1747 default_mismatch_handler(modname, elf, mismatch, in check_section_mismatch()
1844 static void section_rela(const char *modname, struct elf_info *elf, in section_rela() argument
1886 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rela()
1890 static void section_rel(const char *modname, struct elf_info *elf, in section_rel() argument
1946 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rel()
1962 static void check_sec_ref(struct module *mod, const char *modname, in check_sec_ref() argument
1970 check_section(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1973 section_rela(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1975 section_rel(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1991 static void read_symbols(const char *modname) in read_symbols() argument
2001 if (!parse_elf(&info, modname)) in read_symbols()
2008 tmp = NOFAIL(strdup(modname)); in read_symbols()
2017 warn("missing MODULE_LICENSE() in %s\n", modname); in read_symbols()
2071 check_sec_ref(mod, modname, &info); in read_symbols()
2076 get_src_version(modname, mod->srcversion, in read_symbols()
2446 char *symname, *namespace, *modname, *d, *export; in read_dump() local
2454 if (!(modname = strchr(symname, '\t'))) in read_dump()
2456 *modname++ = '\0'; in read_dump()
2457 if (!(export = strchr(modname, '\t'))) in read_dump()
2465 if (*symname == '\0' || *modname == '\0' || *d != '\0') in read_dump()
2467 mod = find_module(modname); in read_dump()
2469 mod = new_module(modname); in read_dump()