Lines Matching refs:modname
157 static struct module *find_module(const char *modname) in find_module() argument
162 if (strcmp(mod->name, modname) == 0) in find_module()
167 static struct module *new_module(const char *modname) in new_module() argument
171 mod = NOFAIL(malloc(sizeof(*mod) + strlen(modname) + 1)); in new_module()
175 strcpy(mod->name, modname); in new_module()
176 mod->is_vmlinux = (strcmp(modname, "vmlinux") == 0); in new_module()
905 static void check_section(const char *modname, struct elf_info *elf, in check_section() argument
917 modname, sec); in check_section()
1034 void (*handler)(const char *modname, struct elf_info *elf,
1040 static void extable_mismatch_handler(const char *modname, struct elf_info *elf,
1444 static void report_sec_mismatch(const char *modname, in report_sec_mismatch() argument
1465 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec, in report_sec_mismatch()
1584 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() argument
1607 report_sec_mismatch(modname, mismatch, in default_mismatch_handler()
1659 static void report_extable_warnings(const char* modname, struct elf_info* elf, in report_extable_warnings() argument
1680 modname, fromsec, (long)r->r_offset, from_pretty_name, in report_extable_warnings()
1697 static void extable_mismatch_handler(const char* modname, struct elf_info *elf, in extable_mismatch_handler() argument
1706 report_extable_warnings(modname, elf, mismatch, r, sym, fromsec, tosec); in extable_mismatch_handler()
1714 fromsec, (long)r->r_offset, tosec, modname); in extable_mismatch_handler()
1733 static void check_section_mismatch(const char *modname, struct elf_info *elf, in check_section_mismatch() argument
1741 mismatch->handler(modname, elf, mismatch, in check_section_mismatch()
1744 default_mismatch_handler(modname, elf, mismatch, in check_section_mismatch()
1841 static void section_rela(const char *modname, struct elf_info *elf, in section_rela() argument
1883 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rela()
1887 static void section_rel(const char *modname, struct elf_info *elf, in section_rel() argument
1943 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rel()
1959 static void check_sec_ref(struct module *mod, const char *modname, in check_sec_ref() argument
1967 check_section(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1970 section_rela(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1972 section_rel(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1992 static void read_symbols(const char *modname) in read_symbols() argument
2002 if (!parse_elf(&info, modname)) in read_symbols()
2009 tmp = NOFAIL(strdup(modname)); in read_symbols()
2021 error("missing MODULE_LICENSE() in %s\n", modname); in read_symbols()
2075 check_sec_ref(mod, modname, &info); in read_symbols()
2080 get_src_version(modname, mod->srcversion, in read_symbols()
2448 char *symname, *namespace, *modname, *d, *export; in read_dump() local
2456 if (!(modname = strchr(symname, '\t'))) in read_dump()
2458 *modname++ = '\0'; in read_dump()
2459 if (!(export = strchr(modname, '\t'))) in read_dump()
2467 if (*symname == '\0' || *modname == '\0' || *d != '\0') in read_dump()
2469 mod = find_module(modname); in read_dump()
2471 mod = new_module(modname); in read_dump()