Lines Matching refs:s
238 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol() local
240 memset(s, 0, sizeof(*s)); in alloc_symbol()
241 strcpy(s->name, name); in alloc_symbol()
242 s->weak = weak; in alloc_symbol()
243 s->next = next; in alloc_symbol()
244 s->is_static = 1; in alloc_symbol()
245 return s; in alloc_symbol()
262 struct symbol *s; in find_symbol() local
268 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol()
269 if (strcmp(s->name, name) == 0) in find_symbol()
270 return s; in find_symbol()
319 static enum export export_no(const char *s) in export_no() argument
323 if (!s) in export_no()
326 if (strcmp(export_list[i].str, s) == 0) in export_no()
393 struct symbol *s = find_symbol(symname); in sym_update_namespace() local
399 if (!s) { in sym_update_namespace()
405 free(s->namespace); in sym_update_namespace()
406 s->namespace = in sym_update_namespace()
417 struct symbol *s = find_symbol(name); in sym_add_exported() local
419 if (!s) { in sym_add_exported()
420 s = new_symbol(name, mod, export); in sym_add_exported()
421 } else if (!external_module || s->module->is_vmlinux || in sym_add_exported()
422 s->module == mod) { in sym_add_exported()
424 mod->name, name, s->module->name, in sym_add_exported()
425 s->module->is_vmlinux ? "" : ".ko"); in sym_add_exported()
428 s->module = mod; in sym_add_exported()
429 s->export = export; in sym_add_exported()
430 return s; in sym_add_exported()
435 struct symbol *s = find_symbol(name); in sym_set_crc() local
441 if (!s) in sym_set_crc()
444 s->crc = crc; in sym_set_crc()
445 s->crc_valid = 1; in sym_set_crc()
800 static int strrcmp(const char *s, const char *sub) in strrcmp() argument
804 if (!s || !sub) in strrcmp()
807 slen = strlen(s); in strrcmp()
816 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
1381 static char *sec2annotation(const char *s) in sec2annotation() argument
1383 if (match(s, init_exit_sections)) { in sec2annotation()
1389 if (*s == '.') in sec2annotation()
1390 s++; in sec2annotation()
1391 while (*s && *s != '.') in sec2annotation()
1392 *p++ = *s++; in sec2annotation()
1394 if (*s == '.') in sec2annotation()
1395 s++; in sec2annotation()
1396 if (strstr(s, "rodata") != NULL) in sec2annotation()
1398 else if (strstr(s, "data") != NULL) in sec2annotation()
1418 const char *const *s = list; in print_section_list() local
1420 while (*s) { in print_section_list()
1421 fprintf(stderr, "%s", *s); in print_section_list()
1422 s++; in print_section_list()
1423 if (*s) in print_section_list()
1935 static char *remove_dot(char *s) in remove_dot() argument
1937 size_t n = strcspn(s, "."); in remove_dot()
1939 if (n && s[n]) { in remove_dot()
1940 size_t m = strspn(s + n + 1, "0123456789"); in remove_dot()
1941 if (m && (s[n + m + 1] == '.' || s[n + m + 1] == 0)) in remove_dot()
1942 s[n] = 0; in remove_dot()
1945 if (strends(s, ".lto")) in remove_dot()
1946 s[strlen(s) - 4] = '\0'; in remove_dot()
1948 return s; in remove_dot()
2025 struct symbol *s = in read_symbols() local
2029 if (s) in read_symbols()
2030 s->is_static = 0; in read_symbols()
2093 void buf_write(struct buffer *buf, const char *s, int len) in buf_write() argument
2099 strncpy(buf->p + buf->pos, s, len); in buf_write()
2103 static void check_for_gpl_usage(enum export exp, const char *m, const char *s) in check_for_gpl_usage() argument
2108 m, s); in check_for_gpl_usage()
2119 struct symbol *s, *exp; in check_exports() local
2121 for (s = mod->unres; s; s = s->next) { in check_exports()
2123 exp = find_symbol(s->name); in check_exports()
2125 if (!s->weak && nr_unresolved++ < MAX_UNRESOLVED_REPORTS) in check_exports()
2128 s->name, mod->name); in check_exports()
2237 struct symbol *s, *exp; in add_versions() local
2239 for (s = mod->unres; s; s = s->next) { in add_versions()
2240 exp = find_symbol(s->name); in add_versions()
2243 s->module = exp->module; in add_versions()
2244 s->crc_valid = exp->crc_valid; in add_versions()
2245 s->crc = exp->crc; in add_versions()
2255 for (s = mod->unres; s; s = s->next) { in add_versions()
2256 if (!s->module) in add_versions()
2258 if (!s->crc_valid) { in add_versions()
2260 s->name, mod->name); in add_versions()
2263 if (strlen(s->name) >= MODULE_NAME_LEN) { in add_versions()
2265 s->name, mod->name); in add_versions()
2269 s->crc, s->name); in add_versions()
2277 struct symbol *s; in add_depends() local
2281 for (s = mod->unres; s; s = s->next) in add_depends()
2282 if (s->module) in add_depends()
2283 s->module->seen = s->module->is_vmlinux; in add_depends()
2287 for (s = mod->unres; s; s = s->next) { in add_depends()
2289 if (!s->module) in add_depends()
2292 if (s->module->seen) in add_depends()
2295 s->module->seen = 1; in add_depends()
2296 p = strrchr(s->module->name, '/'); in add_depends()
2300 p = s->module->name; in add_depends()
2388 struct symbol *s; in read_dump() local
2411 s = sym_add_exported(symname, mod, export_no(export)); in read_dump()
2412 s->is_static = 0; in read_dump()
2582 struct symbol *s; in main() local
2584 for (s = symbolhash[n]; s; s = s->next) { in main()
2585 if (s->is_static) in main()
2587 s->name, s->module->name, in main()
2588 export_str(s->export)); in main()