Lines Matching refs:s

126 	char *p, *s;  in new_module()  local
133 s = strrchr(p, '.'); in new_module()
134 if (s != NULL) in new_module()
135 if (strcmp(s, ".o") == 0) { in new_module()
136 *s = '\0'; in new_module()
190 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol() local
192 memset(s, 0, sizeof(*s)); in alloc_symbol()
193 strcpy(s->name, name); in alloc_symbol()
194 s->weak = weak; in alloc_symbol()
195 s->next = next; in alloc_symbol()
196 return s; in alloc_symbol()
215 struct symbol *s; in find_symbol() local
221 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol()
222 if (strcmp(s->name, name) == 0) in find_symbol()
223 return s; in find_symbol()
246 static enum export export_no(const char *s) in export_no() argument
250 if (!s) in export_no()
253 if (strcmp(export_list[i].str, s) == 0) in export_no()
304 struct symbol *s = find_symbol(name); in sym_add_exported() local
306 if (!s) { in sym_add_exported()
307 s = new_symbol(name, mod, export); in sym_add_exported()
309 if (!s->preloaded) { in sym_add_exported()
312 s->module->name, in sym_add_exported()
313 is_vmlinux(s->module->name) ?"":".ko"); in sym_add_exported()
316 s->module = mod; in sym_add_exported()
319 s->preloaded = 0; in sym_add_exported()
320 s->vmlinux = is_vmlinux(mod->name); in sym_add_exported()
321 s->kernel = 0; in sym_add_exported()
322 s->export = export; in sym_add_exported()
323 return s; in sym_add_exported()
329 struct symbol *s = find_symbol(name); in sym_update_crc() local
331 if (!s) in sym_update_crc()
332 s = new_symbol(name, mod, export); in sym_update_crc()
333 s->crc = crc; in sym_update_crc()
334 s->crc_valid = 1; in sym_update_crc()
367 char *s = line; in get_next_line() local
377 *s++ = *p++; in get_next_line()
382 *s = '\0'; in get_next_line()
711 static int strrcmp(const char *s, const char *sub) in strrcmp() argument
715 if (!s || !sub) in strrcmp()
718 slen = strlen(s); in strrcmp()
727 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
1242 static char *sec2annotation(const char *s) in sec2annotation() argument
1244 if (match(s, init_exit_sections)) { in sec2annotation()
1250 if (*s == '.') in sec2annotation()
1251 s++; in sec2annotation()
1252 while (*s && *s != '.') in sec2annotation()
1253 *p++ = *s++; in sec2annotation()
1255 if (*s == '.') in sec2annotation()
1256 s++; in sec2annotation()
1257 if (strstr(s, "rodata") != NULL) in sec2annotation()
1259 else if (strstr(s, "data") != NULL) in sec2annotation()
1279 const char *const *s = list; in print_section_list() local
1281 while (*s) { in print_section_list()
1282 fprintf(stderr, "%s", *s); in print_section_list()
1283 s++; in print_section_list()
1284 if (*s) in print_section_list()
1760 void buf_write(struct buffer *buf, const char *s, int len) in buf_write() argument
1766 strncpy(buf->p + buf->pos, s, len); in buf_write()
1770 static void check_for_gpl_usage(enum export exp, const char *m, const char *s) in check_for_gpl_usage() argument
1777 "uses GPL-only symbol '%s'\n", m, e, s); in check_for_gpl_usage()
1781 "uses GPL-only symbol marked UNUSED '%s'\n", m, e, s); in check_for_gpl_usage()
1785 "uses future GPL-only symbol '%s'\n", m, e, s); in check_for_gpl_usage()
1795 static void check_for_unused(enum export exp, const char *m, const char *s) in check_for_unused() argument
1803 "uses symbol '%s' marked UNUSED\n", m, e, s); in check_for_unused()
1813 struct symbol *s, *exp; in check_exports() local
1815 for (s = mod->unres; s; s = s->next) { in check_exports()
1817 exp = find_symbol(s->name); in check_exports()
1868 struct symbol *s, *exp; in add_versions() local
1871 for (s = mod->unres; s; s = s->next) { in add_versions()
1872 exp = find_symbol(s->name); in add_versions()
1874 if (have_vmlinux && !s->weak) { in add_versions()
1877 s->name, mod->name); in add_versions()
1880 s->name, mod->name); in add_versions()
1886 s->module = exp->module; in add_versions()
1887 s->crc_valid = exp->crc_valid; in add_versions()
1888 s->crc = exp->crc; in add_versions()
1899 for (s = mod->unres; s; s = s->next) { in add_versions()
1900 if (!s->module) in add_versions()
1902 if (!s->crc_valid) { in add_versions()
1904 s->name, mod->name); in add_versions()
1907 buf_printf(b, "\t{ %#8x, \"%s\" },\n", s->crc, s->name); in add_versions()
1918 struct symbol *s; in add_depends() local
1930 for (s = mod->unres; s; s = s->next) { in add_depends()
1932 if (!s->module) in add_depends()
1935 if (s->module->seen) in add_depends()
1938 s->module->seen = 1; in add_depends()
1939 p = strrchr(s->module->name, '/'); in add_depends()
1943 p = s->module->name; in add_depends()
2020 struct symbol *s; in read_dump() local
2042 s = sym_add_exported(symname, mod, export_no(export)); in read_dump()
2043 s->kernel = kernel; in read_dump()
2044 s->preloaded = 1; in read_dump()