Home
last modified time | relevance | path

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

123

/linux-6.15/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 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o
35 ifneq ($(filter vgettimeofday, $(vdso-syms)),)
70 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) [email protected] $@ && \
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c134 opts.kprobe_multi.syms = syms; in test_link_api_syms()
212 opts.syms = syms; in test_attach_api_syms()
254 opts.syms = syms; in test_attach_api_fails()
269 opts.syms = NULL; in test_attach_api_fails()
284 opts.syms = NULL; in test_attach_api_fails()
299 opts.syms = NULL; in test_attach_api_fails()
564 *symsp = syms; in get_syms()
572 free(syms); in get_syms()
680 opts.syms = (const char **) syms; in test_kprobe_multi_bench_attach()
687 if (syms) in test_kprobe_multi_bench_attach()
[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 Dbpf_cookie.c183 const char *syms[8] = { in kprobe_multi_attach_api_subtest() local
211 opts.syms = syms; in kprobe_multi_attach_api_subtest()
212 opts.cnt = ARRAY_SIZE(syms); in kprobe_multi_attach_api_subtest()
276 const char *syms[3] = { in uprobe_multi_attach_api_subtest() local
287 opts.syms = syms; in uprobe_multi_attach_api_subtest()
288 opts.cnt = ARRAY_SIZE(syms); in uprobe_multi_attach_api_subtest()
H A Duprobe_multi_test.c361 const char *syms[3] = { in test_attach_api_syms() local
367 opts.syms = syms; in test_attach_api_syms()
368 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
565 const char *syms[4] = { in attach_uprobe_fail_trap() local
572 opts.syms = syms; in attach_uprobe_fail_trap()
573 opts.cnt = ARRAY_SIZE(syms); in attach_uprobe_fail_trap()
594 const char *syms[3] = { in attach_uprobe_fail_refctr() local
606 err = elf_resolve_syms_offsets("/proc/self/exe", 2, (const char **) &syms, in attach_uprobe_fail_refctr()
666 const char *syms[3] = { in __test_link_api() local
674 err = elf_resolve_syms_offsets(path, 3, syms, (unsigned long **) &offsets, STT_FUNC); in __test_link_api()
[all …]
/linux-6.15/tools/testing/selftests/bpf/
H A Dtrace_helpers.c26 struct ksym *syms; member
43 ksyms->syms[ksyms->sym_cnt].name = tmp; in ksyms__add_symbol()
55 if (!ksyms->syms) { in free_kallsyms_local()
61 free(ksyms->syms[i].name); in free_kallsyms_local()
62 free(ksyms->syms); in free_kallsyms_local()
151 return &ksyms->syms[mid]; in ksym_search_local()
155 key < ksyms->syms[start].addr) in ksym_search_local()
157 return &ksyms->syms[start - 1]; in ksym_search_local()
160 return &ksyms->syms[0]; in ksym_search_local()
172 ks = &ksyms->syms[mid]; in search_kallsyms_custom_local()
[all …]
/linux-6.15/arch/arm64/kernel/
H A Dmodule-plts.c181 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()
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
302 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
309 if (!syms) { in module_frob_arch_sections()
330 nents = partition_branch_plt_relas(syms, rels, numrels, in module_frob_arch_sections()
336 core_plts += count_plts(syms, rels, numrels, in module_frob_arch_sections()
[all …]
/linux-6.15/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-6.15/arch/s390/boot/
H A DMakefile35 obj-all := $(obj-y) piggy.o syms.o
40 targets += vmlinux.bin.zst info.bin syms.bin vmlinux.syms $(obj-all)
72 LDFLAGS_vmlinux.syms := $(LDFLAGS_vmlinux-y) --oformat $(LD_BFD) -e startup -T
73 $(obj)/vmlinux.syms: $(obj)/vmlinux.lds $(OBJECTS) FORCE
81 $(obj)/syms.bin: $(obj)/vmlinux.syms FORCE
84 …OPYFLAGS_syms.o := -I binary -O elf64-s390 -B s390:64-bit --rename-section .data=.decompressor.syms
85 $(obj)/syms.o: $(obj)/syms.bin FORCE
H A Dvmlinux.lds.S93 .decompressor.syms : {
97 *(.decompressor.syms) argument
/linux-6.15/arch/csky/kernel/vdso/
H A DMakefile7 vdso-syms += rt_sigreturn
10 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o
22 obj-y += vdso.o vdso-syms.o
34 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE
49 $(patsubst %, -G __vdso_%, $(vdso-syms)) [email protected] $@ && \
/linux-6.15/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)) [email protected] $@ && \
/linux-6.15/arch/x86/entry/vdso/
H A D.gitignore4 vdso32-syscall-syms.lds
5 vdso32-sysenter-syms.lds
6 vdso32-int80-syms.lds
H 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()
198 if (required_syms[i].export && syms[i]) in BITSFUNC()
200 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
/linux-6.15/arch/sparc/vdso/
H 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-6.15/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()
234 if (!syms) { in module_frob_arch_sections()
255 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
258 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
/linux-6.15/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-6.15/tools/perf/util/
H A Dprint-events.c331 unsigned int type, const struct event_symbol *syms, in print_symbol_events() argument
346 if (syms[i].symbol == NULL) in print_symbol_events()
352 if (strlen(syms[i].alias)) { in print_symbol_events()
355 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms[i].symbol, syms[i].alias); in print_symbol_events()
358 strlist__add(evt_name_list, syms[i].symbol); in print_symbol_events()
H A Dsrcline.c208 asymbol **syms; member
230 asymbol **syms; in slurp_symtab() local
244 syms = malloc(storage); in slurp_symtab()
246 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab()
248 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab()
251 free(syms); in slurp_symtab()
255 a2l->syms = syms; in slurp_symtab()
292 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
340 zfree(&a2l->syms); in addr2line_cleanup()
/linux-6.15/tools/lib/bpf/
H A Delf.c86 Elf_Data *syms; member
123 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new()
124 if (!iter->syms) { in elf_sym_iter_new()
129 iter->nr_syms = iter->syms->d_size / sh.sh_entsize; in elf_sym_iter_new()
166 if (!gelf_getsym(iter->syms, idx, sym)) in elf_sym_iter_next()
409 const char **syms, unsigned long **poffsets, in elf_resolve_syms_offsets() argument
431 symbols[i].name = syms[i]; in elf_resolve_syms_offsets()
/linux-6.15/scripts/
H A Dlink-vmlinux.sh164 kallsyms_sysmap=${1}.syms
215 true > .tmp_vmlinux0.syms
216 kallsyms .tmp_vmlinux0.syms .tmp_vmlinux0.kallsyms
/linux-6.15/include/linux/
H A Dfprobe.h94 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num);
106 static inline int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
/linux-6.15/arch/powerpc/kernel/
H A Dmodule_64.c390 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument
395 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify()
396 char *name = strtab + syms[i].st_name; in dedotify()
399 syms[i].st_shndx = SHN_ABS; in dedotify()
400 syms[i].st_name++; in dedotify()
411 Elf64_Sym *syms; in find_dot_toc() local
413 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc()
417 if (syms[i].st_shndx == SHN_ABS in find_dot_toc()
418 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc()
419 return &syms[i]; in find_dot_toc()
/linux-6.15/kernel/trace/
H A Dfprobe.c523 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument
533 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations()
535 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations()
748 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
753 if (!fp || !syms || num <= 0) in register_fprobe_syms()
756 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
/linux-6.15/kernel/
H A Dkexec_file.c1094 const Elf_Sym *syms; in kexec_purgatory_find_symbol() local
1112 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol()
1116 if (ELF_ST_BIND(syms[k].st_info) != STB_GLOBAL) in kexec_purgatory_find_symbol()
1119 if (strcmp(strtab + syms[k].st_name, name) != 0) in kexec_purgatory_find_symbol()
1122 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol()
1123 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
1125 name, syms[k].st_shndx); in kexec_purgatory_find_symbol()
1130 return &syms[k]; in kexec_purgatory_find_symbol()

123