Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c127 const char *syms[8] = { in test_link_api_syms() local
138 opts.kprobe_multi.syms = syms; in test_link_api_syms()
139 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms()
205 const char *syms[8] = { in test_attach_api_syms() local
216 opts.syms = syms; in test_attach_api_syms()
217 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
229 const char *syms[2] = { in test_attach_api_fails() local
260 opts.syms = syms; in test_attach_api_fails()
261 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails()
275 opts.syms = NULL; in test_attach_api_fails()
[all …]
H A Dkprobe_multi_testmod_test.c71 const char *syms[3] = { in test_testmod_attach_api_syms() local
77 opts.syms = syms; in test_testmod_attach_api_syms()
78 opts.cnt = ARRAY_SIZE(syms); in test_testmod_attach_api_syms()
H A Duprobe_multi_test.c365 const char *syms[3] = { in test_attach_api_syms() local
371 opts.syms = syms; in test_attach_api_syms()
372 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
569 const char *syms[4] = { in attach_uprobe_fail_trap() local
576 opts.syms = syms; in attach_uprobe_fail_trap()
577 opts.cnt = ARRAY_SIZE(syms); in attach_uprobe_fail_trap()
598 const char *syms[3] = { in attach_uprobe_fail_refctr() local
610 err = elf_resolve_syms_offsets("/proc/self/exe", 2, (const char **) &syms, in attach_uprobe_fail_refctr()
670 const char *syms[3] = { in __test_link_api() local
678 err = elf_resolve_syms_offsets(path, 3, syms, (unsigned long **) &offsets, STT_FUNC); in __test_link_api()
[all …]
H A Dbpf_cookie.c189 const char *syms[8] = { in kprobe_multi_attach_api_subtest()
222 opts.syms = syms; in kprobe_multi_attach_api_subtest()
223 opts.cnt = ARRAY_SIZE(syms); in kprobe_multi_attach_api_subtest()
287 const char *syms[3] = { in uprobe_multi_attach_api_subtest()
298 opts.syms = syms; in uprobe_multi_attach_api_subtest()
299 opts.cnt = ARRAY_SIZE(syms); in uprobe_multi_attach_api_subtest()
183 const char *syms[8] = { kprobe_multi_attach_api_subtest() local
276 const char *syms[3] = { uprobe_multi_attach_api_subtest() local
H A Dfill_link_info.c381 opts.syms = kmulti_syms; in test_kprobe_multi_fill_link_info()
547 const char *syms[3] = { in test_uprobe_multi_fill_link_info()
571 err = elf_resolve_syms_offsets("/proc/self/exe", 3, syms, in test_uprobe_multi_fill_link_info()
576 opts.syms = syms; in test_uprobe_multi_fill_link_info()
579 opts.cnt = ARRAY_SIZE(syms); in test_uprobe_multi_fill_link_info()
533 const char *syms[3] = { test_uprobe_multi_fill_link_info() local
/linux/tools/testing/selftests/bpf/
H A Dtrace_helpers.c38 ksyms->syms[ksyms->sym_cnt].addr = addr; in ksyms__add_symbol()
39 ksyms->syms[ksyms->sym_cnt].name = tmp; in ksyms__add_symbol()
53 if (!ksyms->syms) { in free_kallsyms_local()
59 free(ksyms->syms[i].name); in free_kallsyms_local()
60 free(ksyms->syms); in free_kallsyms_local()
89 ret = libbpf_ensure_mem((void **) &ksyms->syms, &ksyms->sym_cap, in load_kallsyms_local_common()
98 qsort(ksyms->syms, ksyms->sym_cnt, sizeof(struct ksym), cmp_cb); in load_kallsyms_local_common()
143 result = key - ksyms->syms[mid].addr; in ksym_search_local()
149 return &ksyms->syms[mid]; in ksym_search_local()
152 if (start >= 1 && ksyms->syms[start - 1].addr < key && in ksym_search_local()
[all …]
H A Dtrace_helpers.h28 struct ksym *syms; member
/linux/arch/arm64/kernel/
H A Dmodule-plts.c157 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts() argument
181 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
249 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt() argument
253 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt()
263 static int partition_branch_plt_relas(Elf64_Sym *syms, Elf64_Rela *rela, in partition_branch_plt_relas() argument
269 if (branch_rela_needs_plt(syms, &rela[i], dstidx)) in partition_branch_plt_relas()
271 else if (branch_rela_needs_plt(syms, &rela[j], dstidx)) in partition_branch_plt_relas()
285 Elf64_Sym *syms = NULL; in module_frob_arch_sections() local
305 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
312 if (!syms) { in module_frob_arch_sections()
[all …]
/linux/samples/fprobe/
H A Dfprobe_example.c93 const char **syms; in fprobe_init() local
121 syms = kcalloc(count, sizeof(char *), GFP_KERNEL); in fprobe_init()
122 if (!syms) { in fprobe_init()
129 syms[i] = strsep(&p, ","); in fprobe_init()
131 ret = register_fprobe_syms(&sample_probe, syms, count); in fprobe_init()
132 kfree(syms); in fprobe_init()
/linux/arch/riscv/kernel/compat_vdso/
H A DMakefile7 compat_vdso-syms = rt_sigreturn
8 compat_vdso-syms += getcpu
9 compat_vdso-syms += flush_icache
28 obj-compat_vdso = $(patsubst %, %.o, $(compat_vdso-syms)) note.o
67 $(OBJCOPY) $(patsubst %, -G __compat_vdso_%, $(compat_vdso-syms)) $@.tmp $@ && \
/linux/arch/arm/kernel/
H A Dmodule-plts.c157 static unsigned int count_plts(const Elf32_Sym *syms, Elf32_Addr base, in count_plts() argument
182 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts()
215 Elf32_Sym *syms = NULL; in module_frob_arch_sections() local
227 syms = (Elf32_Sym *)s->sh_addr; in module_frob_arch_sections()
246 if (!syms) { in module_frob_arch_sections()
267 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
270 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
/linux/arch/sh/kernel/vsyscall/
H A DMakefile2 obj-y += vsyscall.o vsyscall-syscall.o vsyscall-syms.o
33 LDFLAGS_vsyscall-syms.o := -r -R
34 $(obj)/vsyscall-syms.o: $(obj)/vsyscall-dummy.o FORCE
/linux/tools/perf/util/
H A Dlibbfd.c38 asymbol **syms; member
93 asymbol **syms; in slurp_symtab() local
107 syms = malloc(storage); in slurp_symtab()
109 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab()
111 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab()
114 free(syms); in slurp_symtab()
118 a2l->syms = syms; in slurp_symtab()
155 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
204 zfree(&a2l->syms); in addr2line_cleanup()
[all...]
H A Dsymbol-elf.c84 * @syms: struct elf_symtab instance to iterate
88 #define elf_symtab__for_each_symbol(syms, nr_syms, idx, sym) \ argument
89 for (idx = 0, gelf_getsym(syms, idx, &sym);\
91 idx++, gelf_getsym(syms, idx, &sym))
610 Elf_Data *syms, *symstrs; in dso__synthesize_plt_symbols()
704 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols()
705 if (syms == NULL) in dso__synthesize_plt_symbols()
745 gelf_getsym(syms, get_rel_symidx(&ri, idx), &sym); in dso__synthesize_plt_symbols()
1485 Elf_Data *syms, *opddata = NULL; in dso__load_sym_internal()
1515 syms in dso__load_sym_internal()
612 Elf_Data *syms, *symstrs; dso__synthesize_plt_symbols() local
1483 Elf_Data *syms, *opddata = NULL; dso__load_sym_internal() local
2093 struct list_head syms; global() member
[all...]
/linux/scripts/
H A Dlink-vmlinux.sh138 kallsyms_sysmap=${1}.syms
197 true > .tmp_vmlinux0.syms
198 kallsyms .tmp_vmlinux0.syms .tmp_vmlinux0.kallsyms
H A Dmakelst20 t1=`$3 --syms $1 | grep .text | grep -m1 " F "`
/linux/arch/powerpc/kernel/
H A Dmodule_64.c389 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument
394 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify()
395 char *name = strtab + syms[i].st_name; in dedotify()
398 syms[i].st_shndx = SHN_ABS; in dedotify()
399 syms[i].st_name++; in dedotify()
410 Elf64_Sym *syms; in find_dot_toc() local
412 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc()
416 if (syms[i].st_shndx == SHN_ABS in find_dot_toc()
417 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc()
418 return &syms[i]; in find_dot_toc()
/linux/include/linux/
H A Dfprobe.h95 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num);
108 static inline int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
/linux/arch/s390/boot/
H A Dvmlinux.lds.S93 .decompressor.syms : {
97 *(.decompressor.syms) argument
/linux/kernel/trace/
H A Dfprobe.c789 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument
799 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations()
801 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations()
1030 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
1035 if (!fp || !syms || num <= 0) in register_fprobe_syms()
1038 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
/linux/kernel/module/
H A Dmain.c363 static bool find_exported_symbol_in_section(const struct symsearch *syms, in find_exported_symbol_in_section() argument
370 sym = bsearch(fsa->name, syms->start, syms->stop - syms->start, in find_exported_symbol_in_section()
375 sym_flags = *(syms->flagstab + (sym - syms->start)); in find_exported_symbol_in_section()
380 fsa->crc = symversion(syms->crcs, sym - syms->start); in find_exported_symbol_in_section()
393 const struct symsearch syms = { in find_symbol() local
401 if (find_exported_symbol_in_section(&syms, NULL, fsa)) in find_symbol()
406 const struct symsearch syms = { in find_symbol() local
407 .start = mod->syms, in find_symbol()
408 .stop = mod->syms + mod->num_syms, in find_symbol()
416 if (find_exported_symbol_in_section(&syms, mod, fsa)) in find_symbol()
[all …]
/linux/arch/riscv/kernel/vdso/
H A D.gitignore4 vdso-syms.S
/linux/arch/csky/kernel/vdso/
H A D.gitignore4 vdso-syms.S
/linux/arch/riscv/kernel/vdso_cfi/
H A D.gitignore8 vdso-syms.S
/linux/tools/perf/tests/
H A Dhists_common.c76 struct fake_sym *syms; member
140 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()

12