Lines Matching refs:modname

170 static struct module *find_module(const char *modname)  in find_module()  argument
175 if (strcmp(mod->name, modname) == 0) in find_module()
180 static struct module *new_module(const char *modname) in new_module() argument
184 mod = NOFAIL(malloc(sizeof(*mod) + strlen(modname) + 1)); in new_module()
188 strcpy(mod->name, modname); in new_module()
189 mod->is_vmlinux = (strcmp(modname, "vmlinux") == 0); in new_module()
898 static void check_section(const char *modname, struct elf_info *elf, in check_section() argument
910 modname, sec); in check_section()
1027 void (*handler)(const char *modname, struct elf_info *elf,
1033 static void extable_mismatch_handler(const char *modname, struct elf_info *elf,
1436 static void report_sec_mismatch(const char *modname, in report_sec_mismatch() argument
1457 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec, in report_sec_mismatch()
1576 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() argument
1599 report_sec_mismatch(modname, mismatch, in default_mismatch_handler()
1651 static void report_extable_warnings(const char* modname, struct elf_info* elf, in report_extable_warnings() argument
1672 modname, fromsec, (long)r->r_offset, from_pretty_name, in report_extable_warnings()
1689 static void extable_mismatch_handler(const char* modname, struct elf_info *elf, in extable_mismatch_handler() argument
1698 report_extable_warnings(modname, elf, mismatch, r, sym, fromsec, tosec); in extable_mismatch_handler()
1706 fromsec, (long)r->r_offset, tosec, modname); in extable_mismatch_handler()
1725 static void check_section_mismatch(const char *modname, struct elf_info *elf, in check_section_mismatch() argument
1733 mismatch->handler(modname, elf, mismatch, in check_section_mismatch()
1736 default_mismatch_handler(modname, elf, mismatch, in check_section_mismatch()
1833 static void section_rela(const char *modname, struct elf_info *elf, in section_rela() argument
1875 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rela()
1879 static void section_rel(const char *modname, struct elf_info *elf, in section_rel() argument
1935 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rel()
1951 static void check_sec_ref(struct module *mod, const char *modname, in check_sec_ref() argument
1959 check_section(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1962 section_rela(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1964 section_rel(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1984 static void read_symbols(const char *modname) in read_symbols() argument
1994 if (!parse_elf(&info, modname)) in read_symbols()
2001 tmp = NOFAIL(strdup(modname)); in read_symbols()
2013 error("missing MODULE_LICENSE() in %s\n", modname); in read_symbols()
2067 check_sec_ref(mod, modname, &info); in read_symbols()
2404 char *symname, *namespace, *modname, *d, *export; in read_dump() local
2412 if (!(modname = strchr(symname, '\t'))) in read_dump()
2414 *modname++ = '\0'; in read_dump()
2415 if (!(export = strchr(modname, '\t'))) in read_dump()
2423 if (*symname == '\0' || *modname == '\0' || *d != '\0') in read_dump()
2425 mod = find_module(modname); in read_dump()
2427 mod = new_module(modname); in read_dump()