Home
last modified time | relevance | path

Searched refs:syms (Results 1 – 25 of 34) sorted by relevance

12

/linux/tools/testing/selftests/bpf/
A Dtrace_helpers.c18 static struct ksym syms[MAX_SYMS]; variable
42 syms[i].addr = (long) addr; in load_kallsyms()
43 syms[i].name = strdup(func); in load_kallsyms()
64 result = key - syms[mid].addr; in ksym_search()
70 return &syms[mid]; in ksym_search()
73 if (start >= 1 && syms[start - 1].addr < key && in ksym_search()
74 key < syms[start].addr) in ksym_search()
76 return &syms[start - 1]; in ksym_search()
79 return &syms[0]; in ksym_search()
87 if (strcmp(syms[i].name, name) == 0) in ksym_get_addr()
[all …]
/linux/arch/s390/boot/compressed/
A DMakefile16 obj-all := $(obj-y) piggy.o syms.o
20 targets += info.bin syms.bin vmlinux.syms $(obj-all)
33 LDFLAGS_vmlinux.syms := --oformat $(LD_BFD) -e startup -T
34 $(obj)/vmlinux.syms: $(obj)/vmlinux.lds $(objtree)/arch/s390/boot/startup.a $(OBJECTS) FORCE
42 $(obj)/syms.bin: $(obj)/vmlinux.syms FORCE
45 …OPYFLAGS_syms.o := -I binary -O elf64-s390 -B s390:64-bit --rename-section .data=.decompressor.syms
46 $(obj)/syms.o: $(obj)/syms.bin FORCE
A Dvmlinux.lds.S79 .decompressor.syms : {
83 *(.decompressor.syms) argument
A D.gitignore4 vmlinux.syms
/linux/arch/arm64/kernel/
A Dmodule-plts.c187 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
256 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt() argument
260 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt()
279 if (branch_rela_needs_plt(syms, &rela[i], dstidx)) in partition_branch_plt_relas()
281 else if (branch_rela_needs_plt(syms, &rela[j], dstidx)) in partition_branch_plt_relas()
295 Elf64_Sym *syms = NULL; in module_frob_arch_sections() local
312 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
319 if (!syms) { in module_frob_arch_sections()
340 nents = partition_branch_plt_relas(syms, rels, numrels, in module_frob_arch_sections()
346 core_plts += count_plts(syms, rels, numrels, in module_frob_arch_sections()
[all …]
/linux/arch/csky/kernel/vdso/
A DMakefile9 vdso-syms += rt_sigreturn
10 vdso-syms += vgettimeofday
13 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o
25 obj-y += vdso.o vdso-syms.o
41 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE
56 $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
A D.gitignore4 vdso-syms.S
/linux/arch/riscv/kernel/vdso/
A DMakefile9 vdso-syms = rt_sigreturn
11 vdso-syms += vgettimeofday
13 vdso-syms += getcpu
14 vdso-syms += flush_icache
17 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o
68 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
A D.gitignore4 vdso-syms.S
/linux/arch/x86/entry/vdso/
A Dvdso2c.h56 INT_BITS syms[NSYMS] = {}; in BITSFUNC() local
137 if (syms[k]) { in BITSFUNC()
148 syms[k] = GET_LE(&sym->st_value); in BITSFUNC()
155 INT_BITS symval = syms[special_pages[i]]; in BITSFUNC()
163 if (symval + 4096 < syms[sym_vvar_start]) in BITSFUNC()
170 if (syms[sym_vvar_start] % 4096) in BITSFUNC()
217 if (required_syms[i].export && syms[i]) in BITSFUNC()
219 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
A D.gitignore4 vdso32-syscall-syms.lds
5 vdso32-sysenter-syms.lds
6 vdso32-int80-syms.lds
/linux/arch/sparc/vdso/
A Dvdso2c.h23 INT_BITS syms[NSYMS] = {}; in BITSFUNC() local
91 if (syms[k]) { in BITSFUNC()
102 syms[k] = GET_BE(&sym->st_value); in BITSFUNC()
108 if (syms[sym_vvar_start] % 8192) in BITSFUNC()
137 if (required_syms[i].export && syms[i]) in BITSFUNC()
139 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
/linux/arch/arm/kernel/
A Dmodule-plts.c162 static unsigned int count_plts(const Elf32_Sym *syms, Elf32_Addr base, in count_plts() argument
187 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts()
220 Elf32_Sym *syms = NULL; in module_frob_arch_sections() local
232 syms = (Elf32_Sym *)s->sh_addr; in module_frob_arch_sections()
239 if (!syms) { in module_frob_arch_sections()
260 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
263 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
/linux/arch/ia64/kernel/
A DMakefile.gate6 obj-y += gate-syms.o
22 LDFLAGS_gate-syms.o := -r -R
23 $(obj)/gate-syms.o: $(obj)/gate-dummy.o FORCE
/linux/arch/powerpc/kernel/
A Dmodule_64.c246 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument
251 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify()
252 char *name = strtab + syms[i].st_name; in dedotify()
255 syms[i].st_shndx = SHN_ABS; in dedotify()
256 syms[i].st_name++; in dedotify()
267 Elf64_Sym *syms; in find_dot_toc() local
269 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc()
273 if (syms[i].st_shndx == SHN_ABS in find_dot_toc()
274 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc()
275 return &syms[i]; in find_dot_toc()
/linux/arch/sh/kernel/vsyscall/
A DMakefile2 obj-y += vsyscall.o vsyscall-syscall.o vsyscall-syms.o
34 LDFLAGS_vsyscall-syms.o := -r -R
35 $(obj)/vsyscall-syms.o: $(obj)/vsyscall-dummy.o FORCE
/linux/Documentation/
A Ddontdiff239 vdso-syms.lds
241 vdso32-int80-syms.lds
242 vdso32-syms.lds
243 vdso32-syscall-syms.lds
244 vdso32-sysenter-syms.lds
/linux/tools/perf/util/
A Dsrcline.c145 asymbol **syms; member
167 asymbol **syms; in slurp_symtab() local
181 syms = malloc(storage); in slurp_symtab()
183 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab()
185 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab()
188 free(syms); in slurp_symtab()
192 a2l->syms = syms; in slurp_symtab()
229 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
277 zfree(&a2l->syms); in addr2line_cleanup()
A Dsymbol-elf.c115 idx++, gelf_getsym(syms, idx, &sym))
296 Elf_Data *reldata, *syms, *symstrs; in dso__synthesize_plt_symbols() local
342 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols()
343 if (syms == NULL) in dso__synthesize_plt_symbols()
395 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
421 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
1092 Elf_Data *syms, *opddata = NULL; in dso__load_sym_internal() local
1119 syms = elf_getdata(sec, NULL); in dso__load_sym_internal()
1120 if (syms == NULL) in dso__load_sym_internal()
1635 struct list_head syms; member
[all …]
/linux/kernel/
A Dkexec_file.c1078 const Elf_Sym *syms; in kexec_purgatory_find_symbol() local
1096 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol()
1100 if (ELF_ST_BIND(syms[k].st_info) != STB_GLOBAL) in kexec_purgatory_find_symbol()
1103 if (strcmp(strtab + syms[k].st_name, name) != 0) in kexec_purgatory_find_symbol()
1106 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol()
1107 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
1109 name, syms[k].st_shndx); in kexec_purgatory_find_symbol()
1114 return &syms[k]; in kexec_purgatory_find_symbol()
A Dmodule.c453 if (!fsa->gplok && syms->license == GPL_ONLY) in check_exported_symbol()
456 fsa->crc = symversion(syms->crcs, symnum); in check_exported_symbol()
457 fsa->sym = &syms->start[symnum]; in check_exported_symbol()
458 fsa->license = syms->license; in check_exported_symbol()
503 sym = bsearch(fsa->name, syms->start, syms->stop - syms->start, in find_exported_symbol_in_section()
507 sym - syms->start, data)) in find_exported_symbol_in_section()
538 { mod->syms, mod->syms + mod->num_syms, mod->crcs, in find_symbol()
2246 { mod->syms, mod->num_syms }, in verify_exported_symbols()
2619 ks = lookup_exported_symbol(name, mod->syms, mod->syms + mod->num_syms); in is_exported()
3315 mod->syms = section_objs(info, "__ksymtab", in find_module_sections()
[all …]
/linux/tools/perf/tests/
A Dhists_common.c76 struct fake_sym *syms; member
140 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()
/linux/scripts/
A Dmakelst20 t1=`$3 --syms $1 | grep .text | grep -m1 " F "`
/linux/tools/lib/bpf/
A Dlinker.c273 Elf64_Sym *syms, *sym; in add_new_sym() local
276 syms = libbpf_reallocarray(symtab->raw_data, sym_cnt + 1, sizeof(*sym)); in add_new_sym()
277 if (!syms) in add_new_sym()
280 sym = &syms[sym_cnt]; in add_new_sym()
283 symtab->raw_data = syms; in add_new_sym()
1249 Elf64_Sym *syms = symtab->raw_data; in get_sym_by_idx() local
1251 return &syms[sym_idx]; in get_sym_by_idx()
1273 struct glob_sym *syms, *sym; in add_glob_sym() local
1277 if (!syms) in add_glob_sym()
1280 sym = &syms[linker->glob_sym_cnt]; in add_glob_sym()
[all …]
A DMakefile130 VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \
193 readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \

Completed in 50 milliseconds

12