Home
last modified time | relevance | path

Searched refs:symtab (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.4/kernel/debug/kdb/
Dkdb_support.c40 int kdbgetsymval(const char *symname, kdb_symtab_t *symtab) in kdbgetsymval() argument
44 symtab); in kdbgetsymval()
45 memset(symtab, 0, sizeof(*symtab)); in kdbgetsymval()
46 symtab->sym_start = kallsyms_lookup_name(symname); in kdbgetsymval()
47 if (symtab->sym_start) { in kdbgetsymval()
51 symtab->sym_start); in kdbgetsymval()
82 int kdbnearsym(unsigned long addr, kdb_symtab_t *symtab) in kdbnearsym() argument
91 kdb_printf("kdbnearsym: addr=0x%lx, symtab=%px\n", addr, symtab); in kdbnearsym()
92 memset(symtab, 0, sizeof(*symtab)); in kdbnearsym()
102 symtab->sym_name = kallsyms_lookup(addr, &symbolsize , &offset, in kdbnearsym()
[all …]
Dkdb_main.c506 kdb_symtab_t symtab; in kdbgetaddrarg() local
555 found = kdbgetsymval(symname, &symtab); in kdbgetaddrarg()
557 addr = symtab.sym_start; in kdbgetaddrarg()
566 found = kdbnearsym(addr, &symtab); in kdbgetaddrarg()
575 *offset = addr - symtab.sym_start; in kdbgetaddrarg()
1492 kdb_symtab_t symtab; in kdb_md_line() local
1513 kdbnearsym(word, &symtab); in kdb_md_line()
1515 memset(&symtab, 0, sizeof(symtab)); in kdb_md_line()
1516 if (symtab.sym_name) { in kdb_md_line()
1517 kdb_symbol_print(word, &symtab, 0); in kdb_md_line()
[all …]
/Linux-v5.4/security/selinux/ss/
Dpolicydb.h48 struct symtab permissions; /* common permissions */
56 struct symtab permissions; /* class-specific permission symbol table */
239 struct symtab symtab[SYM_NUM]; member
240 #define p_commons symtab[SYM_COMMONS]
241 #define p_classes symtab[SYM_CLASSES]
242 #define p_roles symtab[SYM_ROLES]
243 #define p_types symtab[SYM_TYPES]
244 #define p_users symtab[SYM_USERS]
245 #define p_bools symtab[SYM_BOOLS]
246 #define p_levels symtab[SYM_LEVELS]
[all …]
Dsymtab.h15 struct symtab { struct
20 int symtab_init(struct symtab *s, unsigned int size); argument
Dsymtab.c36 int symtab_init(struct symtab *s, unsigned int size) in symtab_init()
/Linux-v5.4/scripts/
Dinsert-sys-cert.c133 static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name) in find_elf_symbol() argument
142 link = symtab->sh_link; in find_elf_symbol()
143 symtab_start = (void *)hdr + symtab->sh_offset; in find_elf_symbol()
144 n = symtab->sh_size / symtab->sh_entsize; in find_elf_symbol()
157 static void get_symbol_from_table(Elf_Ehdr *hdr, Elf_Shdr *symtab, in get_symbol_from_table() argument
169 elf_sym = find_elf_symbol(hdr, symtab, name); in get_symbol_from_table()
286 Elf_Shdr *symtab = NULL; in main() local
346 symtab = get_symbol_table(hdr); in main()
347 if (!symtab) { in main()
368 get_symbol_from_table(hdr, symtab, CERT_SYM, &cert_sym); in main()
[all …]
Dsortextable.h99 const Elf_Sym *symtab; in do_func() local
155 symtab = (const Elf_Sym *)((const char *)ehdr + in do_func()
196 sort_needed_sym - symtab, in do_func()
/Linux-v5.4/arch/alpha/kernel/
Dmodule.c69 Elf64_Shdr *esechdrs, *symtab, *s, *got; in module_frob_arch_sections() local
73 symtab = got = NULL; in module_frob_arch_sections()
80 symtab = s; in module_frob_arch_sections()
86 if (!symtab) { in module_frob_arch_sections()
95 nsyms = symtab->sh_size / sizeof(Elf64_Sym); in module_frob_arch_sections()
139 Elf64_Sym *symtab, *sym; in apply_relocate_add() local
147 symtab = (Elf64_Sym *)sechdrs[symindex].sh_addr; in apply_relocate_add()
166 sym = symtab + r_sym; in apply_relocate_add()
/Linux-v5.4/arch/s390/kernel/
Dmodule.c112 Elf_Shdr *symtab; in module_frob_arch_sections() local
119 symtab = NULL; in module_frob_arch_sections()
123 symtab = sechdrs + i; in module_frob_arch_sections()
126 if (!symtab) { in module_frob_arch_sections()
132 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
137 symbols = (void *) hdr + symtab->sh_offset; in module_frob_arch_sections()
138 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
215 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() argument
230 val = symtab[r_sym].st_value; in apply_rela()
408 me->name, strtab + symtab[r_sym].st_name, in apply_rela()
[all …]
Dmachine_kexec_file.c268 const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() argument
281 sym = (void *)pi->ehdr + symtab->sh_offset; in arch_kexec_apply_relocations_add()
/Linux-v5.4/tools/objtool/
Dorc_dump.c75 Elf_Data *data, *symtab = NULL, *rela_orc_ip = NULL; in orc_dump() local
129 symtab = data; in orc_dump()
141 if (!symtab || !orc || !orc_ip) in orc_dump()
157 if (!gelf_getsym(symtab, GELF_R_SYM(rela.r_info), &sym)) { in orc_dump()
Delf.c209 struct section *symtab, *sec; in read_symbols() local
215 symtab = find_section_by_name(elf, ".symtab"); in read_symbols()
216 if (!symtab) { in read_symbols()
221 symbols_nr = symtab->sh.sh_size / symtab->sh.sh_entsize; in read_symbols()
234 if (!gelf_getsym(symtab->data, i, &sym->sym)) { in read_symbols()
239 sym->name = elf_strptr(elf->elf, symtab->sh.sh_link, in read_symbols()
/Linux-v5.4/tools/testing/selftests/vDSO/
Dparse_vdso.c70 ELF(Sym) *symtab;
136 vdso_info.symtab = 0; in vdso_init_from_sysinfo_ehdr()
147 vdso_info.symtab = (ELF(Sym) *) in vdso_init_from_sysinfo_ehdr()
168 if (!vdso_info.symstrings || !vdso_info.symtab || !hash) in vdso_init_from_sysinfo_ehdr()
232 ELF(Sym) *sym = &vdso_info.symtab[chain]; in vdso_sym()
/Linux-v5.4/scripts/gcc-plugins/
Dgcc-common.h718 #define cgraph_n_nodes symtab->cgraph_count
719 #define cgraph_max_uid symtab->cgraph_max_uid
747 symtab->change_decl_assembler_name(decl, name); in change_decl_assembler_name()
797 return symtab->add_cgraph_insertion_hook(hook, data); in cgraph_add_function_insertion_hook()
802 symtab->remove_cgraph_insertion_hook(entry); in cgraph_remove_function_insertion_hook()
807 return symtab->add_cgraph_removal_hook(hook, data); in cgraph_add_node_removal_hook()
812 symtab->remove_cgraph_removal_hook(entry); in cgraph_remove_node_removal_hook()
817 return symtab->add_cgraph_duplication_hook(hook, data); in cgraph_add_node_duplication_hook()
822 symtab->remove_cgraph_duplication_hook(entry); in cgraph_remove_node_duplication_hook()
827 symtab->call_cgraph_duplication_hooks(node, node2); in cgraph_call_node_duplication_hooks()
[all …]
/Linux-v5.4/arch/mips/vdso/
Dgenvdso.h61 void *shdrs, *symtab; in FUNC() local
96 symtab = vdso + FUNC(swap_uint)(shdr->sh_offset); in FUNC()
110 sym = symtab + (j * st_entsize); in FUNC()
/Linux-v5.4/arch/x86/tools/
Drelocs.c34 Elf_Sym *symtab; member
280 Elf_Sym *symtab; in sym_lookup() local
287 symtab = sec->symtab; in sym_lookup()
290 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
476 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
477 if (!sec->symtab) { in read_symtabs()
485 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs()
491 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs()
559 sym = &sec->symtab[j]; in print_absolute_symbols()
599 sh_symtab = sec_symtab->symtab; in print_absolute_relocs()
[all …]
/Linux-v5.4/tools/perf/util/
Dgenelf.c86 static Elf_Sym symtab[]={ variable
371 symtab[1].st_size = csize; in jit_write_elf()
372 symtab[1].st_value = GEN_ELF_TEXT_OFFSET; in jit_write_elf()
388 d->d_buf = symtab; in jit_write_elf()
390 d->d_size = sizeof(symtab); in jit_write_elf()
Dsymsrc.h28 Elf_Scn *symtab; member
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_rtsym.c44 struct nfp_rtsym symtab[]; member
130 cache->strtab = (void *)&cache->symtab[cache->num]; in __nfp_rtsym_table_read()
143 &cache->symtab[n], &rtsymtab[n]); in __nfp_rtsym_table_read()
183 return &rtbl->symtab[idx]; in nfp_rtsym_get()
202 if (strcmp(name, rtbl->symtab[n].name) == 0) in nfp_rtsym_lookup()
203 return &rtbl->symtab[n]; in nfp_rtsym_lookup()
/Linux-v5.4/scripts/genksyms/
Dgenksyms.c28 static struct symbol *symtab[HASH_BUCKETS]; variable
159 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol()
230 for (sym = symtab[h]; sym; sym = sym->hash_next) { in __add_symbol()
268 for (psym = &symtab[h]; *psym; psym = &(*psym)->hash_next) { in __add_symbol()
285 sym->hash_next = symtab[h]; in __add_symbol()
286 symtab[h] = sym; in __add_symbol()
/Linux-v5.4/arch/mips/boot/tools/
Drelocs.c27 Elf_Sym *symtab; member
328 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
329 if (!sec->symtab) in read_symtabs()
337 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != in read_symtabs()
342 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs()
488 sh_symtab = sec_symtab->symtab; in walk_relocs()
/Linux-v5.4/kernel/
Dkexec_file.c121 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations_add() argument
138 const Elf_Shdr *relsec, const Elf_Shdr *symtab) in arch_kexec_apply_relocations() argument
961 const Elf_Shdr *symtab; in kexec_apply_relocations() local
981 symtab = sechdrs + relsec->sh_link; in kexec_apply_relocations()
990 if (symtab->sh_link >= pi->ehdr->e_shnum) in kexec_apply_relocations()
1000 relsec, symtab); in kexec_apply_relocations()
1003 relsec, symtab); in kexec_apply_relocations()
/Linux-v5.4/include/linux/
Dkexec.h192 const Elf_Shdr *symtab);
196 const Elf_Shdr *symtab);
/Linux-v5.4/security/selinux/
DMakefile10 ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \
/Linux-v5.4/Documentation/livepatch/
Dmodule-elf-format.rst214 module->symtab.
219 "core" symbols) is made available through module->symtab (See layout_symtab()
224 and the original symbol indices (and thus the symtab ordering) must be
286 Symbol table '.symtab' contains 127 entries:
313 A livepatch module's symbol table is accessible through module->symtab.

12