Home
last modified time | relevance | path

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

12

/linux/arch/riscv/kernel/vdso/
H A DMakefile7 vdso-syms = rt_sigreturn
9 vdso-syms += vgettimeofday
11 vdso-syms += getcpu
12 vdso-syms += flush_icache
13 vdso-syms += hwprobe
14 vdso-syms += sys_hwprobe
17 vdso-syms += getrandom
30 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o
70 ifneq ($(filter vgettimeofday, $(vdso-syms)),)
101 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
H A D.gitignore4 vdso-syms.S
/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
258 /* fail_2 - both addrs and syms se in test_attach_api_fails()
678 const char *syms[1] = { "bpf_fentry_shadow_test" }; test_attach_probe_dup_sym() local
[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.c366 const char *syms[3] = { in test_attach_api_syms()
372 opts.syms = syms; in test_attach_api_syms()
373 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
600 const char *syms[4] = { in attach_uprobe_fail_refctr()
607 opts.syms = syms; in attach_uprobe_fail_refctr()
608 opts.cnt = ARRAY_SIZE(syms); in attach_uprobe_fail_refctr()
629 const char *syms[3] = { in attach_uprobe_fail_refctr()
641 err = elf_resolve_syms_offsets("/proc/self/exe", 2, (const char **) &syms, in attach_uprobe_fail_refctr()
365 const char *syms[3] = { test_attach_api_syms() local
569 const char *syms[4] = { attach_uprobe_fail_trap() local
598 const char *syms[3] = { attach_uprobe_fail_refctr() local
670 const char *syms[3] = { __test_link_api() local
[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()
294 const char *syms[3] = { in uprobe_multi_attach_api_subtest()
305 opts.syms = syms; in uprobe_multi_attach_api_subtest()
306 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.c398 opts.syms = kmulti_syms; in test_kprobe_multi_fill_link_info()
782 const char *syms[3] = { in test_uprobe_multi_fill_link_info() local
806 err = elf_resolve_syms_offsets("/proc/self/exe", 3, syms, in test_uprobe_multi_fill_link_info()
811 opts.syms = syms; in test_uprobe_multi_fill_link_info()
814 opts.cnt = ARRAY_SIZE(syms); in test_uprobe_multi_fill_link_info()
/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[star in ksym_search_local()
612 char *name = NULL, *ksym_name, **syms = NULL; bpf_get_ksyms() local
[all...]
/linux/arch/arm64/kernel/
H A Dmodule-plts.c168 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts()
192 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
260 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt()
264 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in partition_branch_plt_relas()
274 static int partition_branch_plt_relas(Elf64_Sym *syms, Elf64_Rela *rela, in partition_branch_plt_relas()
280 if (branch_rela_needs_plt(syms, &rela[i], dstidx)) in module_frob_arch_sections()
282 else if (branch_rela_needs_plt(syms, &rela[j], dstidx)) in module_frob_arch_sections()
296 Elf64_Sym *syms = NULL; in module_frob_arch_sections()
316 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
323 if (!syms) { in module_frob_arch_sections()
157 count_plts(Elf64_Sym * syms,Elf64_Rela * rela,int num,Elf64_Word dstidx,Elf_Shdr * dstsec) count_plts() argument
249 branch_rela_needs_plt(Elf64_Sym * syms,Elf64_Rela * rela,Elf64_Word dstidx) branch_rela_needs_plt() argument
263 partition_branch_plt_relas(Elf64_Sym * syms,Elf64_Rela * rela,int numrels,Elf64_Word dstidx) partition_branch_plt_relas() argument
285 Elf64_Sym *syms = NULL; module_frob_arch_sections() local
[all...]
/linux/samples/fprobe/
H A Dfprobe_example.c64 const char **syms; in sample_entry_handler()
92 syms = kcalloc(count, sizeof(char *), GFP_KERNEL); in fprobe_init()
93 if (!syms) { in fprobe_init() local
100 syms[i] = strsep(&p, ","); in fprobe_init()
102 ret = register_fprobe_syms(&sample_probe, syms, count); in fprobe_init()
103 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.c51 asymbol **syms; in perf_bfd_unlock()
123 asymbol **syms; in find_address_in_section()
137 syms = malloc(storage); in find_address_in_section()
139 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in find_address_in_section()
141 symcount = bfd_canonicalize_symtab(abfd, syms); in find_address_in_section()
144 free(syms); in find_address_in_section()
148 a2l->syms = syms; in find_address_in_section()
185 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in addr2line_init()
234 zfree(&a2l->syms); in libbfd__addr2line()
38 asymbol **syms; global() member
93 asymbol **syms; slurp_symtab() local
[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))
612 Elf_Data *syms, *symstrs; in dso__synthesize_plt_symbols() local
706 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols()
707 if (syms == NULL) in dso__synthesize_plt_symbols()
747 gelf_getsym(syms, get_rel_symidx(&ri, idx), &sym); in dso__synthesize_plt_symbols()
1532 Elf_Data *syms, *opddata = NULL; in dso__load_sym_internal()
1562 syms in dso__load_sym_internal()
1483 Elf_Data *syms, *opddata = NULL; dso__load_sym_internal() local
2093 struct list_head syms; global() member
[all...]
/linux/tools/lib/bpf/
H A Delf.c85 Elf_Data *syms; member
122 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new()
123 if (!iter->syms) { in elf_sym_iter_new()
128 iter->nr_syms = iter->syms->d_size / sh.sh_entsize; in elf_sym_iter_new()
165 if (!gelf_getsym(iter->syms, idx, sym)) in elf_sym_iter_next()
403 * Return offsets in @poffsets for symbols specified in @syms array argument.
408 const char **syms, unsigned long **poffsets, in elf_resolve_syms_offsets() argument
430 symbols[i].name = syms[i]; in elf_resolve_syms_offsets()
/linux/scripts/
H A Dlink-vmlinux.sh157 kallsyms "${1}" "${1}.kallsyms" "${1}.syms"
158 kallsyms_sysmap=${1}.syms
216 true > .tmp_vmlinux0.syms
217 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);
109 static inline int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
/linux/kernel/trace/
H A Dfprobe.c813 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument
823 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations()
825 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations()
1044 * @syms: An array of target symbols.
1045 * @num: The number of entries of @syms.
1047 * Register @fp to the symbols given by @syms array. This will be useful if
1052 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
1057 if (!fp || !syms || num <= 0) in register_fprobe_syms()
1060 addrs = get_ftrace_locations(syms, nu in register_fprobe_syms()
[all...]
/linux/kernel/module/
H A Dmain.c375 static bool find_exported_symbol_in_section(const struct symsearch *syms, in find_exported_symbol_in_section()
382 sym = bsearch(fsa->name, syms->start, syms->stop - syms->start, in find_exported_symbol_in_section()
387 sym_flags = *(syms->flagstab + (sym - syms->start));
392 fsa->crc = symversion(syms->crcs, sym - syms->start); in find_symbol()
405 const struct symsearch syms = { in find_symbol()
413 if (find_exported_symbol_in_section(&syms, NUL in find_symbol()
363 find_exported_symbol_in_section(const struct symsearch * syms,struct module * owner,struct find_symbol_arg * fsa) find_exported_symbol_in_section() argument
393 const struct symsearch syms = { find_symbol() local
406 const struct symsearch syms = { find_symbol() local
2380 Elf_Sym *syms = (void *)info->hdr + sym_shdr->sh_offset; elf_validity_cache_strtab() local
[all...]
/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