Lines Matching refs:modname
94 static int is_vmlinux(const char *modname) in is_vmlinux() argument
98 myname = strrchr(modname, '/'); in is_vmlinux()
102 myname = modname; in is_vmlinux()
119 static struct module *find_module(char *modname) in find_module() argument
124 if (strcmp(mod->name, modname) == 0) in find_module()
129 static struct module *new_module(const char *modname) in new_module() argument
136 p = NOFAIL(strdup(modname)); in new_module()
845 static void check_section(const char *modname, struct elf_info *elf, in check_section() argument
857 modname, sec); in check_section()
973 void (*handler)(const char *modname, struct elf_info *elf,
979 static void extable_mismatch_handler(const char *modname, struct elf_info *elf,
1368 static void report_sec_mismatch(const char *modname, in report_sec_mismatch() argument
1391 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec, in report_sec_mismatch()
1510 static void default_mismatch_handler(const char *modname, struct elf_info *elf, in default_mismatch_handler() argument
1534 report_sec_mismatch(modname, mismatch, in default_mismatch_handler()
1586 static void report_extable_warnings(const char* modname, struct elf_info* elf, in report_extable_warnings() argument
1607 modname, fromsec, (long)r->r_offset, from_pretty_name, in report_extable_warnings()
1624 static void extable_mismatch_handler(const char* modname, struct elf_info *elf, in extable_mismatch_handler() argument
1634 report_extable_warnings(modname, elf, mismatch, r, sym, in extable_mismatch_handler()
1643 fromsec, (long)r->r_offset, tosec, modname); in extable_mismatch_handler()
1662 static void check_section_mismatch(const char *modname, struct elf_info *elf, in check_section_mismatch() argument
1670 mismatch->handler(modname, elf, mismatch, in check_section_mismatch()
1673 default_mismatch_handler(modname, elf, mismatch, in check_section_mismatch()
1774 static void section_rela(const char *modname, struct elf_info *elf, in section_rela() argument
1816 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rela()
1820 static void section_rel(const char *modname, struct elf_info *elf, in section_rel() argument
1876 check_section_mismatch(modname, elf, &r, sym, fromsec); in section_rel()
1892 static void check_sec_ref(struct module *mod, const char *modname, in check_sec_ref() argument
1900 check_section(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1903 section_rela(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1905 section_rel(modname, elf, &elf->sechdrs[i]); in check_sec_ref()
1921 static void read_symbols(char *modname) in read_symbols() argument
1930 if (!parse_elf(&info, modname)) in read_symbols()
1933 mod = new_module(modname); in read_symbols()
1937 if (is_vmlinux(modname)) { in read_symbols()
1943 if (info.modinfo && !license && !is_vmlinux(modname)) in read_symbols()
1946 "more information\n", modname); in read_symbols()
1964 if (!is_vmlinux(modname) || in read_symbols()
1965 (is_vmlinux(modname) && vmlinux_section_warnings)) in read_symbols()
1966 check_sec_ref(mod, modname, &info); in read_symbols()
1970 maybe_frob_rcs_version(modname, version, info.modinfo, in read_symbols()
1972 if (version || (all_versions && !is_vmlinux(modname))) in read_symbols()
1973 get_src_version(modname, mod->srcversion, in read_symbols()
2290 char *symname, *modname, *d, *export, *end; in read_dump() local
2298 if (!(modname = strchr(symname, '\t'))) in read_dump()
2300 *modname++ = '\0'; in read_dump()
2301 if ((export = strchr(modname, '\t')) != NULL) in read_dump()
2306 if (*symname == '\0' || *modname == '\0' || *d != '\0') in read_dump()
2308 mod = find_module(modname); in read_dump()
2310 if (is_vmlinux(modname)) in read_dump()
2312 mod = new_module(modname); in read_dump()