Home
last modified time | relevance | path

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

12

/linux-6.12.1/kernel/debug/kdb/
Dkdb_support.c39 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()
[all …]
Dkdb_main.c544 kdb_symtab_t symtab; in kdbgetaddrarg() local
593 found = kdbgetsymval(symname, &symtab); in kdbgetaddrarg()
595 addr = symtab.sym_start; in kdbgetaddrarg()
604 found = kdbnearsym(addr, &symtab); in kdbgetaddrarg()
613 *offset = addr - symtab.sym_start; in kdbgetaddrarg()
1523 kdb_symtab_t symtab; in kdb_md_line() local
1544 kdbnearsym(word, &symtab); in kdb_md_line()
1546 memset(&symtab, 0, sizeof(symtab)); in kdb_md_line()
1547 if (symtab.sym_name) { in kdb_md_line()
1548 kdb_symbol_print(word, &symtab, 0); in kdb_md_line()
[all …]
/linux-6.12.1/security/selinux/ss/
Dpolicydb.h46 struct symtab permissions; /* common permissions */
54 struct symtab permissions; /* class-specific permission symbol table */
240 struct symtab symtab[SYM_NUM]; member
241 #define p_commons symtab[SYM_COMMONS]
242 #define p_classes symtab[SYM_CLASSES]
243 #define p_roles symtab[SYM_ROLES]
244 #define p_types symtab[SYM_TYPES]
245 #define p_users symtab[SYM_USERS]
246 #define p_bools symtab[SYM_BOOLS]
247 #define p_levels symtab[SYM_LEVELS]
[all …]
Dsymtab.h16 struct symtab { struct
21 int symtab_init(struct symtab *s, u32 size); argument
23 int symtab_insert(struct symtab *s, char *name, void *datum);
24 void *symtab_search(struct symtab *s, const char *name);
Dsymtab.c42 int symtab_init(struct symtab *s, u32 size) in symtab_init()
48 int symtab_insert(struct symtab *s, char *name, void *datum) in symtab_insert()
53 void *symtab_search(struct symtab *s, const char *name) in symtab_search()
/linux-6.12.1/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 …]
Drecordmcount.h191 static unsigned int get_symindex(Elf_Sym const *sym, Elf32_Word const *symtab, in get_symindex() argument
202 offset = (unsigned long)sym - (unsigned long)symtab; in get_symindex()
237 unsigned const nhdr, Elf32_Word **symtab, in find_symtab() argument
243 *symtab = NULL; in find_symtab()
248 *symtab = (void *)ehdr + relhdr->sh_offset; in find_symtab()
252 if (*symtab && *symtab_shndx) in find_symtab()
521 Elf32_Word const *symtab, in find_secsym_ndx() argument
534 if (txtndx == get_symindex(symp, symtab, symtab_shndx) in find_secsym_ndx()
619 Elf32_Word *symtab; in do_func() local
652 find_symtab(ehdr, shdr0, nhdr, &symtab, &symtab_shndx); in do_func()
[all …]
/linux-6.12.1/scripts/gcc-plugins/
Dgcc-common.h179 #define cgraph_n_nodes symtab->cgraph_count
180 #define cgraph_max_uid symtab->cgraph_max_uid
208 symtab->change_decl_assembler_name(decl, name); in change_decl_assembler_name()
258 return symtab->add_cgraph_insertion_hook(hook, data); in cgraph_add_function_insertion_hook()
263 symtab->remove_cgraph_insertion_hook(entry); in cgraph_remove_function_insertion_hook()
268 return symtab->add_cgraph_removal_hook(hook, data); in cgraph_add_node_removal_hook()
273 symtab->remove_cgraph_removal_hook(entry); in cgraph_remove_node_removal_hook()
278 return symtab->add_cgraph_duplication_hook(hook, data); in cgraph_add_node_duplication_hook()
283 symtab->remove_cgraph_duplication_hook(entry); in cgraph_remove_node_duplication_hook()
288 symtab->call_cgraph_duplication_hooks(node, node2); in cgraph_call_node_duplication_hooks()
[all …]
/linux-6.12.1/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()
164 sym = symtab + r_sym; in apply_relocate_add()
/linux-6.12.1/arch/s390/kernel/
Dmodule.c109 Elf_Shdr *symtab; in module_frob_arch_sections() local
117 symtab = NULL; in module_frob_arch_sections()
121 symtab = sechdrs + i; in module_frob_arch_sections()
124 if (!symtab) { in module_frob_arch_sections()
130 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
135 symbols = (void *) hdr + symtab->sh_offset; in module_frob_arch_sections()
136 strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset; in module_frob_arch_sections()
222 static int apply_rela(Elf_Rela *rela, Elf_Addr base, Elf_Sym *symtab, in apply_rela() argument
238 val = symtab[r_sym].st_value; in apply_rela()
420 me->name, strtab + symtab[r_sym].st_name, in apply_rela()
[all …]
/linux-6.12.1/tools/objtool/
Delf.c435 struct section *symtab, *symtab_shndx, *sec; in read_symbols() local
442 symtab = find_section_by_name(elf, ".symtab"); in read_symbols()
443 if (symtab) { in read_symbols()
448 symbols_nr = sec_num_entries(symtab); in read_symbols()
473 if (!gelf_getsymshndx(symtab->data, shndx_data, i, &sym->sym, in read_symbols()
479 sym->name = elf_strptr(elf->elf, symtab->sh.sh_link, in read_symbols()
595 static int elf_update_symbol(struct elf *elf, struct section *symtab, in elf_update_symbol() argument
600 Elf64_Xword entsize = symtab->sh.sh_entsize; in elf_update_symbol()
609 s = elf_getscn(elf->elf, symtab->idx); in elf_update_symbol()
661 mark_sec_changed(elf, symtab, true); in elf_update_symbol()
[all …]
Dorc_dump.c26 Elf_Data *data, *symtab = NULL, *rela_orc_ip = NULL; in orc_dump() local
87 symtab = data; in orc_dump()
101 if (!symtab || !strtab_idx || !orc || !orc_ip) in orc_dump()
117 if (!gelf_getsym(symtab, GELF_R_SYM(rela.r_info), &sym)) { in orc_dump()
/linux-6.12.1/tools/testing/selftests/vDSO/
Dparse_vdso.c54 ELF(Sym) *symtab;
126 vdso_info.symtab = 0; in vdso_init_from_sysinfo_ehdr()
137 vdso_info.symtab = (ELF(Sym) *) in vdso_init_from_sysinfo_ehdr()
158 if (!vdso_info.symstrings || !vdso_info.symtab || !hash) in vdso_init_from_sysinfo_ehdr()
222 ELF(Sym) *sym = &vdso_info.symtab[chain]; in vdso_sym()
/linux-6.12.1/kernel/module/
Dkallsyms.c187 rcu_dereference(mod->kallsyms)->symtab = (void *)symsec->sh_addr; in add_kallsyms()
198 mod->core_kallsyms.symtab = dst = data_base + info->symoffs; in add_kallsyms()
202 src = rcu_dereference(mod->kallsyms)->symtab; in add_kallsyms()
249 return kallsyms->strtab + kallsyms->symtab[symnum].st_name; in kallsyms_symbol_name()
274 bestval = kallsyms_symbol_value(&kallsyms->symtab[best]); in find_kallsyms_symbol()
281 const Elf_Sym *sym = &kallsyms->symtab[i]; in find_kallsyms_symbol()
396 const Elf_Sym *sym = &kallsyms->symtab[symnum]; in module_get_kallsym()
419 const Elf_Sym *sym = &kallsyms->symtab[i]; in __find_kallsyms_symbol_value()
499 const Elf_Sym *sym = &kallsyms->symtab[i]; in module_kallsyms_on_each_symbol()
/linux-6.12.1/arch/x86/tools/
Drelocs.c42 Elf_Sym *symtab; member
295 Elf_Sym *symtab; in sym_lookup() local
302 symtab = sec->symtab; in sym_lookup()
305 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
356 Elf_Sym *symtab = secs[shsymtabndx].symtab; in sym_index() local
365 offset = (unsigned long)sym - (unsigned long)symtab; in sym_index()
518 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs()
519 if (!sec->symtab) in read_symtabs()
525 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) in read_symtabs()
529 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs()
[all …]
/linux-6.12.1/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-6.12.1/tools/perf/util/
Dgenelf.c77 static Elf_Sym symtab[]={ variable
382 symtab[1].st_size = csize; in jit_write_elf()
383 symtab[1].st_value = GEN_ELF_TEXT_OFFSET; in jit_write_elf()
399 d->d_buf = symtab; in jit_write_elf()
401 d->d_size = sizeof(symtab); in jit_write_elf()
Dsymsrc.h28 Elf_Scn *symtab; member
/linux-6.12.1/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-6.12.1/tools/testing/selftests/sgx/
Dload.c139 Elf64_Sym *symtab = NULL; in encl_get_entry() local
151 symtab = (Elf64_Sym *)((char *)encl->bin + sections[i].sh_offset); in encl_get_entry()
164 if (!symtab || !sym_names) in encl_get_entry()
168 Elf64_Sym *sym = &symtab[i]; in encl_get_entry()
Dmain.c70 static bool vdso_get_symtab(void *addr, struct vdso_symtab *symtab) in vdso_get_symtab() argument
74 symtab->elf_symtab = vdso_get_dyn(addr, dyntab, DT_SYMTAB); in vdso_get_symtab()
75 if (!symtab->elf_symtab) in vdso_get_symtab()
78 symtab->elf_symstrtab = vdso_get_dyn(addr, dyntab, DT_STRTAB); in vdso_get_symtab()
79 if (!symtab->elf_symstrtab) in vdso_get_symtab()
82 symtab->elf_hashtab = vdso_get_dyn(addr, dyntab, DT_HASH); in vdso_get_symtab()
83 if (!symtab->elf_hashtab) in vdso_get_symtab()
115 static Elf64_Sym *vdso_symtab_get(struct vdso_symtab *symtab, const char *name) in vdso_symtab_get() argument
117 Elf64_Word bucketnum = symtab->elf_hashtab[0]; in vdso_symtab_get()
118 Elf64_Word *buckettab = &symtab->elf_hashtab[2]; in vdso_symtab_get()
[all …]
/linux-6.12.1/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-6.12.1/scripts/genksyms/
Dgenksyms.c26 static struct symbol *symtab[HASH_BUCKETS]; variable
157 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol()
228 for (sym = symtab[h]; sym; sym = sym->hash_next) { in __add_symbol()
266 for (psym = &symtab[h]; *psym; psym = &(*psym)->hash_next) { in __add_symbol()
283 sym->hash_next = symtab[h]; in __add_symbol()
284 symtab[h] = sym; in __add_symbol()
/linux-6.12.1/tools/lib/bpf/
Dlinker.c273 struct dst_sec *symtab = &linker->secs[linker->symtab_sec_idx]; in add_new_sym() local
275 size_t sym_cnt = symtab->sec_sz / sizeof(*sym); in add_new_sym()
277 syms = libbpf_reallocarray(symtab->raw_data, sym_cnt + 1, sizeof(*sym)); in add_new_sym()
284 symtab->raw_data = syms; in add_new_sym()
285 symtab->sec_sz += sizeof(*sym); in add_new_sym()
286 symtab->shdr->sh_size += sizeof(*sym); in add_new_sym()
287 symtab->data->d_size += sizeof(*sym); in add_new_sym()
1256 struct src_sec *symtab = &obj->secs[obj->symtab_sec_idx]; in linker_append_elf_syms() local
1257 Elf64_Sym *sym = symtab->data->d_buf; in linker_append_elf_syms()
1258 int i, n = symtab->shdr->sh_size / symtab->shdr->sh_entsize, err; in linker_append_elf_syms()
[all …]
/linux-6.12.1/arch/riscv/include/asm/
Dkexec.h64 const Elf_Shdr *symtab);

12