Lines Matching refs:modname
152 static struct module *find_module(const char *modname)
157 if (strcmp(mod->name, modname) == 0)
162 static struct module *new_module(const char *modname)
166 mod = NOFAIL(malloc(sizeof(*mod) + strlen(modname) + 1));
170 strcpy(mod->name, modname);
171 mod->is_vmlinux = (strcmp(modname, "vmlinux") == 0);
901 static void check_section(const char *modname, struct elf_info *elf,
913 modname, sec);
1030 void (*handler)(const char *modname, struct elf_info *elf,
1036 static void extable_mismatch_handler(const char *modname, struct elf_info *elf,
1444 static void report_sec_mismatch(const char *modname,
1465 modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec,
1584 static void default_mismatch_handler(const char *modname, struct elf_info *elf,
1607 report_sec_mismatch(modname, mismatch,
1659 static void report_extable_warnings(const char* modname, struct elf_info* elf,
1680 modname, fromsec, (long)r->r_offset, from_pretty_name,
1697 static void extable_mismatch_handler(const char* modname, struct elf_info *elf,
1706 report_extable_warnings(modname, elf, mismatch, r, sym, fromsec, tosec);
1714 fromsec, (long)r->r_offset, tosec, modname);
1733 static void check_section_mismatch(const char *modname, struct elf_info *elf,
1741 mismatch->handler(modname, elf, mismatch,
1744 default_mismatch_handler(modname, elf, mismatch,
1863 static void section_rela(const char *modname, struct elf_info *elf,
1912 check_section_mismatch(modname, elf, &r, sym, fromsec);
1916 static void section_rel(const char *modname, struct elf_info *elf,
1972 check_section_mismatch(modname, elf, &r, sym, fromsec);
1988 static void check_sec_ref(struct module *mod, const char *modname,
1996 check_section(modname, elf, &elf->sechdrs[i]);
1999 section_rela(modname, elf, &elf->sechdrs[i]);
2001 section_rel(modname, elf, &elf->sechdrs[i]);
2021 static void read_symbols(const char *modname)
2031 if (!parse_elf(&info, modname))
2038 tmp = NOFAIL(strdup(modname));
2050 warn("missing MODULE_LICENSE() in %s\n", modname);
2104 check_sec_ref(mod, modname, &info);
2109 get_src_version(modname, mod->srcversion,
2479 char *symname, *namespace, *modname, *d, *export;
2487 if (!(modname = strchr(symname, '\t')))
2489 *modname++ = '\0';
2490 if (!(export = strchr(modname, '\t')))
2498 if (*symname == '\0' || *modname == '\0' || *d != '\0')
2500 mod = find_module(modname);
2502 mod = new_module(modname);