/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | kprobe_multi_test.c | 120 const char *syms[8] = { in test_link_api_syms() local 131 opts.kprobe_multi.syms = syms; in test_link_api_syms() 132 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms() 198 const char *syms[8] = { in test_attach_api_syms() local 209 opts.syms = syms; in test_attach_api_syms() 210 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms() 220 const char *syms[2] = { in test_attach_api_fails() local 249 opts.syms = syms; in test_attach_api_fails() 250 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails() 263 opts.syms = NULL; in test_attach_api_fails() [all …]
|
D | kprobe_multi_testmod_test.c | 69 const char *syms[3] = { in test_testmod_attach_api_syms() local 75 opts.syms = syms; in test_testmod_attach_api_syms() 76 opts.cnt = ARRAY_SIZE(syms); in test_testmod_attach_api_syms()
|
D | uprobe_multi_test.c | 226 const char *syms[3] = { in test_attach_api_syms() local 232 opts.syms = syms; in test_attach_api_syms() 233 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms() 244 const char *syms[3] = { in __test_link_api() local 252 err = elf_resolve_syms_offsets(path, 3, syms, (unsigned long **) &offsets); in __test_link_api() 258 opts.uprobe_multi.cnt = ARRAY_SIZE(syms); in __test_link_api()
|
D | bpf_cookie.c | 183 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()
|
/linux-6.6.21/arch/riscv/kernel/vdso/ |
D | Makefile | 7 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 34 ifneq ($(filter vgettimeofday, $(vdso-syms)),) 74 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 22 static struct ksym syms[MAX_SYMS]; variable 52 syms[i].addr = (long) addr; in load_kallsyms_refresh() 53 syms[i].name = strdup(func); in load_kallsyms_refresh() 58 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms_refresh() 85 result = key - syms[mid].addr; in ksym_search() 91 return &syms[mid]; in ksym_search() 94 if (start >= 1 && syms[start - 1].addr < key && in ksym_search() 95 key < syms[start].addr) in ksym_search() 97 return &syms[start - 1]; in ksym_search() 100 return &syms[0]; in ksym_search() [all …]
|
/linux-6.6.21/arch/arm64/kernel/ |
D | module-plts.c | 157 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() 250 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt() argument 254 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt() 264 static int partition_branch_plt_relas(Elf64_Sym *syms, Elf64_Rela *rela, in partition_branch_plt_relas() argument 270 if (branch_rela_needs_plt(syms, &rela[i], dstidx)) in partition_branch_plt_relas() 272 else if (branch_rela_needs_plt(syms, &rela[j], dstidx)) in partition_branch_plt_relas() 286 Elf64_Sym *syms = NULL; in module_frob_arch_sections() local 303 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections() 310 if (!syms) { in module_frob_arch_sections() [all …]
|
/linux-6.6.21/arch/csky/kernel/vdso/ |
D | Makefile | 7 vdso-syms += rt_sigreturn 8 vdso-syms += vgettimeofday 11 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o 23 obj-y += vdso.o vdso-syms.o 39 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE 54 $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
|
/linux-6.6.21/samples/fprobe/ |
D | fprobe_example.c | 93 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.6.21/arch/s390/boot/ |
D | Makefile | 45 obj-all := $(obj-y) piggy.o syms.o 50 targets += vmlinux.bin.zst info.bin syms.bin vmlinux.syms $(obj-all) 80 LDFLAGS_vmlinux.syms := --oformat $(LD_BFD) -e startup -T 81 $(obj)/vmlinux.syms: $(obj)/vmlinux.lds $(OBJECTS) FORCE 89 $(obj)/syms.bin: $(obj)/vmlinux.syms FORCE 92 …OPYFLAGS_syms.o := -I binary -O elf64-s390 -B s390:64-bit --rename-section .data=.decompressor.syms 93 $(obj)/syms.o: $(obj)/syms.bin FORCE
|
D | vmlinux.lds.S | 88 .decompressor.syms : { 92 *(.decompressor.syms) argument
|
/linux-6.6.21/arch/x86/entry/vdso/ |
D | vdso2c.h | 56 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() 218 if (required_syms[i].export && syms[i]) in BITSFUNC() 220 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
|
D | .gitignore | 4 vdso32-syscall-syms.lds 5 vdso32-sysenter-syms.lds 6 vdso32-int80-syms.lds
|
/linux-6.6.21/arch/sparc/vdso/ |
D | vdso2c.h | 23 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.6.21/arch/riscv/kernel/compat_vdso/ |
D | Makefile | 7 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 73 $(OBJCOPY) $(patsubst %, -G __compat_vdso_%, $(compat_vdso-syms)) $@.tmp $@ && \
|
/linux-6.6.21/kernel/trace/ |
D | fprobe.c | 159 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument 169 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations() 171 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations() 339 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument 344 if (!fp || !syms || num <= 0) in register_fprobe_syms() 347 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
|
/linux-6.6.21/arch/arm/kernel/ |
D | module-plts.c | 157 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.6.21/arch/ia64/kernel/ |
D | Makefile.gate | 6 obj-y += gate-syms.o 22 LDFLAGS_gate-syms.o := -r -R 23 $(obj)/gate-syms.o: $(obj)/gate-dummy.o FORCE
|
/linux-6.6.21/arch/sh/kernel/vsyscall/ |
D | Makefile | 2 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-6.6.21/tools/lib/bpf/ |
D | elf.c | 71 Elf_Data *syms; member 105 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new() 106 if (!iter->syms) { in elf_sym_iter_new() 111 iter->nr_syms = iter->syms->d_size / sh.sh_entsize; in elf_sym_iter_new() 126 if (!gelf_getsym(iter->syms, idx, sym)) in elf_sym_iter_next() 291 const char **syms, unsigned long **poffsets) in elf_resolve_syms_offsets() argument 312 symbols[i].name = syms[i]; in elf_resolve_syms_offsets()
|
/linux-6.6.21/Documentation/ |
D | dontdiff | 239 vdso-syms.lds 241 vdso32-int80-syms.lds 242 vdso32-syms.lds 243 vdso32-syscall-syms.lds 244 vdso32-sysenter-syms.lds
|
/linux-6.6.21/tools/perf/util/ |
D | print-events.c | 341 unsigned int type, const struct event_symbol *syms, in print_symbol_events() argument 356 if (syms[i].symbol == NULL) in print_symbol_events() 362 if (strlen(syms[i].alias)) { in print_symbol_events() 365 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms[i].symbol, syms[i].alias); in print_symbol_events() 368 strlist__add(evt_name_list, syms[i].symbol); in print_symbol_events()
|
D | srcline.c | 151 asymbol **syms; member 173 asymbol **syms; in slurp_symtab() local 187 syms = malloc(storage); in slurp_symtab() 189 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab() 191 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab() 194 free(syms); in slurp_symtab() 198 a2l->syms = syms; in slurp_symtab() 235 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section() 283 zfree(&a2l->syms); in addr2line_cleanup()
|
/linux-6.6.21/include/linux/ |
D | fprobe.h | 67 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num); 79 static inline int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | module_64.c | 362 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument 367 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify() 368 char *name = strtab + syms[i].st_name; in dedotify() 371 syms[i].st_shndx = SHN_ABS; in dedotify() 372 syms[i].st_name++; in dedotify() 383 Elf64_Sym *syms; in find_dot_toc() local 385 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc() 389 if (syms[i].st_shndx == SHN_ABS in find_dot_toc() 390 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc() 391 return &syms[i]; in find_dot_toc()
|