• Home
  • Raw
  • Download

Lines Matching refs:s

205 	struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1));  in alloc_symbol()  local
207 memset(s, 0, sizeof(*s)); in alloc_symbol()
208 strcpy(s->name, name); in alloc_symbol()
209 s->weak = weak; in alloc_symbol()
210 s->next = next; in alloc_symbol()
211 s->is_static = 1; in alloc_symbol()
212 return s; in alloc_symbol()
231 struct symbol *s; in find_symbol() local
237 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol()
238 if (strcmp(s->name, name) == 0) in find_symbol()
239 return s; in find_symbol()
293 static enum export export_no(const char *s) in export_no() argument
297 if (!s) in export_no()
300 if (strcmp(export_list[i].str, s) == 0) in export_no()
363 struct symbol *s = find_symbol(symname); in sym_update_namespace() local
369 if (!s) { in sym_update_namespace()
375 free(s->namespace); in sym_update_namespace()
376 s->namespace = in sym_update_namespace()
387 struct symbol *s = find_symbol(name); in sym_add_exported() local
389 if (!s) { in sym_add_exported()
390 s = new_symbol(name, mod, export); in sym_add_exported()
392 if (!s->preloaded) { in sym_add_exported()
394 mod->name, name, s->module->name, in sym_add_exported()
395 is_vmlinux(s->module->name) ? "" : ".ko"); in sym_add_exported()
398 s->module = mod; in sym_add_exported()
401 s->preloaded = 0; in sym_add_exported()
402 s->vmlinux = is_vmlinux(mod->name); in sym_add_exported()
403 s->kernel = 0; in sym_add_exported()
404 s->export = export; in sym_add_exported()
405 return s; in sym_add_exported()
411 struct symbol *s = find_symbol(name); in sym_update_crc() local
413 if (!s) { in sym_update_crc()
414 s = new_symbol(name, mod, export); in sym_update_crc()
416 s->preloaded = 1; in sym_update_crc()
418 s->crc = crc; in sym_update_crc()
419 s->crc_valid = 1; in sym_update_crc()
455 char *s = line; in get_next_line() local
465 *s++ = *p++; in get_next_line()
470 *s = '\0'; in get_next_line()
825 static int strrcmp(const char *s, const char *sub) in strrcmp() argument
829 if (!s || !sub) in strrcmp()
832 slen = strlen(s); in strrcmp()
841 return memcmp(s + slen - sublen, sub, sublen); in strrcmp()
1400 static char *sec2annotation(const char *s) in sec2annotation() argument
1402 if (match(s, init_exit_sections)) { in sec2annotation()
1408 if (*s == '.') in sec2annotation()
1409 s++; in sec2annotation()
1410 while (*s && *s != '.') in sec2annotation()
1411 *p++ = *s++; in sec2annotation()
1413 if (*s == '.') in sec2annotation()
1414 s++; in sec2annotation()
1415 if (strstr(s, "rodata") != NULL) in sec2annotation()
1417 else if (strstr(s, "data") != NULL) in sec2annotation()
1437 const char *const *s = list; in print_section_list() local
1439 while (*s) { in print_section_list()
1440 fprintf(stderr, "%s", *s); in print_section_list()
1441 s++; in print_section_list()
1442 if (*s) in print_section_list()
1998 static char *remove_dot(char *s) in remove_dot() argument
2000 size_t n = strcspn(s, "."); in remove_dot()
2002 if (n && s[n]) { in remove_dot()
2003 size_t m = strspn(s + n + 1, "0123456789"); in remove_dot()
2004 if (m && (s[n + m] == '.' || s[n + m] == 0)) in remove_dot()
2005 s[n] = 0; in remove_dot()
2008 if (strends(s, ".lto")) in remove_dot()
2009 s[strlen(s) - 4] = '\0'; in remove_dot()
2011 return s; in remove_dot()
2079 struct symbol *s = in read_symbols() local
2083 if (s) in read_symbols()
2084 s->is_static = 0; in read_symbols()
2149 void buf_write(struct buffer *buf, const char *s, int len) in buf_write() argument
2155 strncpy(buf->p + buf->pos, s, len); in buf_write()
2159 static void check_for_gpl_usage(enum export exp, const char *m, const char *s) in check_for_gpl_usage() argument
2166 "uses GPL-only symbol '%s'\n", m, e, s); in check_for_gpl_usage()
2170 "uses GPL-only symbol marked UNUSED '%s'\n", m, e, s); in check_for_gpl_usage()
2174 "uses future GPL-only symbol '%s'\n", m, e, s); in check_for_gpl_usage()
2184 static void check_for_unused(enum export exp, const char *m, const char *s) in check_for_unused() argument
2192 "uses symbol '%s' marked UNUSED\n", m, e, s); in check_for_unused()
2202 struct symbol *s, *exp; in check_exports() local
2205 for (s = mod->unres; s; s = s->next) { in check_exports()
2207 exp = find_symbol(s->name); in check_exports()
2209 if (have_vmlinux && !s->weak) { in check_exports()
2212 s->name, mod->name); in check_exports()
2215 s->name, mod->name); in check_exports()
2316 struct symbol *s, *exp; in add_versions() local
2319 for (s = mod->unres; s; s = s->next) { in add_versions()
2320 exp = find_symbol(s->name); in add_versions()
2323 s->module = exp->module; in add_versions()
2324 s->crc_valid = exp->crc_valid; in add_versions()
2325 s->crc = exp->crc; in add_versions()
2335 for (s = mod->unres; s; s = s->next) { in add_versions()
2336 if (!s->module) in add_versions()
2338 if (!s->crc_valid) { in add_versions()
2340 s->name, mod->name); in add_versions()
2343 if (strlen(s->name) >= MODULE_NAME_LEN) { in add_versions()
2345 s->name, mod->name); in add_versions()
2350 s->crc, s->name); in add_versions()
2360 struct symbol *s; in add_depends() local
2364 for (s = mod->unres; s; s = s->next) in add_depends()
2365 if (s->module) in add_depends()
2366 s->module->seen = is_vmlinux(s->module->name); in add_depends()
2370 for (s = mod->unres; s; s = s->next) { in add_depends()
2372 if (!s->module) in add_depends()
2375 if (s->module->seen) in add_depends()
2378 s->module->seen = 1; in add_depends()
2379 p = strrchr(s->module->name, '/'); in add_depends()
2383 p = s->module->name; in add_depends()
2460 struct symbol *s; in read_dump() local
2485 s = sym_add_exported(symname, mod, export_no(export)); in read_dump()
2486 s->kernel = kernel; in read_dump()
2487 s->preloaded = 1; in read_dump()
2488 s->is_static = 0; in read_dump()
2684 struct symbol *s; in main() local
2686 for (s = symbolhash[n]; s; s = s->next) { in main()
2691 if (is_vmlinux(s->module->name) && !s->module->is_dot_o) in main()
2694 if (s->is_static) in main()
2696 s->name, s->module->name, in main()
2697 export_str(s->export)); in main()