Lines Matching refs:modname
95 static int is_vmlinux(const char *modname) in is_vmlinux() argument
99 myname = strrchr(modname, '/'); in is_vmlinux()
103 myname = modname; in is_vmlinux()
120 static struct module *find_module(char *modname) in find_module() argument
125 if (strcmp(mod->name, modname) == 0) in find_module()
130 static struct module *new_module(const char *modname) in new_module() argument
137 p = NOFAIL(strdup(modname)); in new_module()
848 static void check_section(const char *modname, struct elf_info *elf, in check_section() argument
860 modname, sec); in check_section()
977 void (*handler)(const char *modname, struct elf_info *elf,
983 static void extable_mismatch_handler(const char *modname, struct elf_info *elf,
1372 static void report_sec_mismatch(const char *modname, in report_sec_mismatch() argument
1395 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec, in report_sec_mismatch()
1514 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() argument
1538 report_sec_mismatch(modname, mismatch, in default_mismatch_handler()
1590 static void report_extable_warnings(const char* modname, struct elf_info* elf, in report_extable_warnings() argument
1611 modname, fromsec, (long)r->r_offset, from_pretty_name, in report_extable_warnings()
1628 static void extable_mismatch_handler(const char* modname, struct elf_info *elf, in extable_mismatch_handler() argument
1638 report_extable_warnings(modname, elf, mismatch, r, sym, in extable_mismatch_handler()
1647 fromsec, (long)r->r_offset, tosec, modname); in extable_mismatch_handler()
1666 static void check_section_mismatch(const char *modname, struct elf_info *elf, in check_section_mismatch() argument
1674 mismatch->handler(modname, elf, mismatch, in check_section_mismatch()
1677 default_mismatch_handler(modname, elf, mismatch, in check_section_mismatch()
1778 static void section_rela(const char *modname, struct elf_info *elf, in section_rela() argument
1820 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rela()
1824 static void section_rel(const char *modname, struct elf_info *elf, in section_rel() argument
1880 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rel()
1896 static void check_sec_ref(struct module *mod, const char *modname, in check_sec_ref() argument
1904 check_section(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1907 section_rela(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1909 section_rel(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1925 static void read_symbols(char *modname) in read_symbols() argument
1934 if (!parse_elf(&info, modname)) in read_symbols()
1937 mod = new_module(modname); in read_symbols()
1941 if (is_vmlinux(modname)) { in read_symbols()
1947 if (info.modinfo && !license && !is_vmlinux(modname)) in read_symbols()
1950 "more information\n", modname); in read_symbols()
1968 if (!is_vmlinux(modname) || in read_symbols()
1969 (is_vmlinux(modname) && vmlinux_section_warnings)) in read_symbols()
1970 check_sec_ref(mod, modname, &info); in read_symbols()
1974 maybe_frob_rcs_version(modname, version, info.modinfo, in read_symbols()
1976 if (version || (all_versions && !is_vmlinux(modname))) in read_symbols()
1977 get_src_version(modname, mod->srcversion, in read_symbols()
2305 char *symname, *modname, *d, *export, *end; in read_dump() local
2313 if (!(modname = strchr(symname, '\t'))) in read_dump()
2315 *modname++ = '\0'; in read_dump()
2316 if ((export = strchr(modname, '\t')) != NULL) in read_dump()
2321 if (*symname == '\0' || *modname == '\0' || *d != '\0') in read_dump()
2323 mod = find_module(modname); in read_dump()
2325 if (is_vmlinux(modname)) in read_dump()
2327 mod = new_module(modname); in read_dump()