• Home
  • Raw
  • Download

Lines Matching refs:s

226 	struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1));  in alloc_symbol()  local
228 memset(s, 0, sizeof(*s)); in alloc_symbol()
229 strcpy(s->name, name); in alloc_symbol()
230 s->weak = weak; in alloc_symbol()
231 s->next = next; in alloc_symbol()
232 s->is_static = 1; in alloc_symbol()
233 return s; in alloc_symbol()
250 struct symbol *s; in find_symbol() local
256 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol()
257 if (strcmp(s->name, name) == 0) in find_symbol()
258 return s; in find_symbol()
310 static enum export export_no(const char *s) in export_no() argument
314 if (!s) in export_no()
317 if (strcmp(export_list[i].str, s) == 0) in export_no()
396 struct symbol *s = find_symbol(symname); in sym_update_namespace() local
402 if (!s) { in sym_update_namespace()
408 free(s->namespace); in sym_update_namespace()
409 s->namespace = in sym_update_namespace()
420 struct symbol *s = find_symbol(name); in sym_add_exported() local
422 if (!s) { in sym_add_exported()
423 s = new_symbol(name, mod, export); in sym_add_exported()
424 } else if (!external_module || s->module->is_vmlinux || in sym_add_exported()
425 s->module == mod) { in sym_add_exported()
427 mod->name, name, s->module->name, in sym_add_exported()
428 s->module->is_vmlinux ? "" : ".ko"); in sym_add_exported()
431 s->module = mod; in sym_add_exported()
432 s->export = export; in sym_add_exported()
433 return s; in sym_add_exported()
438 struct symbol *s = find_symbol(name); in sym_set_crc() local
444 if (!s) in sym_set_crc()
447 s->crc = crc; in sym_set_crc()
448 s->crc_valid = 1; in sym_set_crc()
806 static int strrcmp(const char *s, const char *sub) in strrcmp() argument
810 if (!s || !sub) in strrcmp()
813 slen = strlen(s); in strrcmp()
822 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
1386 static char *sec2annotation(const char *s) in sec2annotation() argument
1388 if (match(s, init_exit_sections)) { in sec2annotation()
1394 if (*s == '.') in sec2annotation()
1395 s++; in sec2annotation()
1396 while (*s && *s != '.') in sec2annotation()
1397 *p++ = *s++; in sec2annotation()
1399 if (*s == '.') in sec2annotation()
1400 s++; in sec2annotation()
1401 if (strstr(s, "rodata") != NULL) in sec2annotation()
1403 else if (strstr(s, "data") != NULL) in sec2annotation()
1423 const char *const *s = list; in print_section_list() local
1425 while (*s) { in print_section_list()
1426 fprintf(stderr, "%s", *s); in print_section_list()
1427 s++; in print_section_list()
1428 if (*s) in print_section_list()
1994 static char *remove_dot(char *s) in remove_dot() argument
1996 size_t n = strcspn(s, "."); in remove_dot()
1998 if (n && s[n]) { in remove_dot()
1999 size_t m = strspn(s + n + 1, "0123456789"); in remove_dot()
2000 if (m && (s[n + m + 1] == '.' || s[n + m + 1] == 0)) in remove_dot()
2001 s[n] = 0; in remove_dot()
2004 if (strends(s, ".lto")) in remove_dot()
2005 s[strlen(s) - 4] = '\0'; in remove_dot()
2007 return s; in remove_dot()
2084 struct symbol *s = in read_symbols() local
2088 if (s) in read_symbols()
2089 s->is_static = 0; in read_symbols()
2152 void buf_write(struct buffer *buf, const char *s, int len) in buf_write() argument
2158 strncpy(buf->p + buf->pos, s, len); in buf_write()
2162 static void check_for_gpl_usage(enum export exp, const char *m, const char *s) in check_for_gpl_usage() argument
2167 m, s); in check_for_gpl_usage()
2171 m, s); in check_for_gpl_usage()
2175 m, s); in check_for_gpl_usage()
2185 static void check_for_unused(enum export exp, const char *m, const char *s) in check_for_unused() argument
2191 m, s); in check_for_unused()
2201 struct symbol *s, *exp; in check_exports() local
2203 for (s = mod->unres; s; s = s->next) { in check_exports()
2205 exp = find_symbol(s->name); in check_exports()
2207 if (have_vmlinux && !s->weak) in check_exports()
2210 s->name, mod->name); in check_exports()
2318 struct symbol *s, *exp; in add_versions() local
2320 for (s = mod->unres; s; s = s->next) { in add_versions()
2321 exp = find_symbol(s->name); in add_versions()
2324 s->module = exp->module; in add_versions()
2325 s->crc_valid = exp->crc_valid; in add_versions()
2326 s->crc = exp->crc; in add_versions()
2336 for (s = mod->unres; s; s = s->next) { in add_versions()
2337 if (!s->module) in add_versions()
2339 if (!s->crc_valid) { in add_versions()
2341 s->name, mod->name); in add_versions()
2344 if (strlen(s->name) >= MODULE_NAME_LEN) { in add_versions()
2346 s->name, mod->name); in add_versions()
2350 s->crc, s->name); in add_versions()
2358 struct symbol *s; in add_depends() local
2362 for (s = mod->unres; s; s = s->next) in add_depends()
2363 if (s->module) in add_depends()
2364 s->module->seen = s->module->is_vmlinux; in add_depends()
2368 for (s = mod->unres; s; s = s->next) { in add_depends()
2370 if (!s->module) in add_depends()
2373 if (s->module->seen) in add_depends()
2376 s->module->seen = 1; in add_depends()
2377 p = strrchr(s->module->name, '/'); in add_depends()
2381 p = s->module->name; in add_depends()
2469 struct symbol *s; in read_dump() local
2492 s = sym_add_exported(symname, mod, export_no(export)); in read_dump()
2493 s->is_static = 0; in read_dump()
2670 struct symbol *s; in main() local
2672 for (s = symbolhash[n]; s; s = s->next) { in main()
2673 if (s->is_static) in main()
2675 s->name, s->module->name, in main()
2676 export_str(s->export)); in main()