Lines Matching refs:symtab
39 int kdbgetsymval(const char *symname, kdb_symtab_t *symtab) in kdbgetsymval() argument
41 kdb_dbg_printf(AR, "symname=%s, symtab=%px\n", symname, symtab); in kdbgetsymval()
42 memset(symtab, 0, sizeof(*symtab)); in kdbgetsymval()
43 symtab->sym_start = kallsyms_lookup_name(symname); in kdbgetsymval()
44 if (symtab->sym_start) { in kdbgetsymval()
46 symtab->sym_start); in kdbgetsymval()
81 int kdbnearsym(unsigned long addr, kdb_symtab_t *symtab) in kdbnearsym() argument
88 kdb_dbg_printf(AR, "addr=0x%lx, symtab=%px\n", addr, symtab); in kdbnearsym()
89 memset(symtab, 0, sizeof(*symtab)); in kdbnearsym()
94 symtab->sym_name = kallsyms_lookup(addr, &symbolsize , &offset, in kdbnearsym()
95 (char **)(&symtab->mod_name), namebuf); in kdbnearsym()
97 symtab->sym_name = NULL; in kdbnearsym()
100 symtab->sym_start = addr - offset; in kdbnearsym()
101 symtab->sym_end = symtab->sym_start + symbolsize; in kdbnearsym()
102 ret = symtab->sym_name != NULL && *(symtab->sym_name) != '\0'; in kdbnearsym()
104 if (symtab->mod_name == NULL) in kdbnearsym()
105 symtab->mod_name = "kernel"; in kdbnearsym()
107 ret, symtab->sym_start, symtab->mod_name, symtab->sym_name, symtab->sym_name); in kdbnearsym()
201 kdb_symtab_t symtab, *symtab_p2; in kdb_symbol_print() local
205 symtab_p2 = &symtab; in kdb_symbol_print()