/Linux-v5.10/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 17 static struct ksym syms[MAX_SYMS]; variable 41 syms[i].addr = (long) addr; in load_kallsyms() 42 syms[i].name = strdup(func); in load_kallsyms() 47 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms() 63 result = key - syms[mid].addr; in ksym_search() 69 return &syms[mid]; in ksym_search() 72 if (start >= 1 && syms[start - 1].addr < key && in ksym_search() 73 key < syms[start].addr) in ksym_search() 75 return &syms[start - 1]; in ksym_search() 78 return &syms[0]; in ksym_search() [all …]
|
/Linux-v5.10/arch/riscv/kernel/vdso/ |
D | Makefile | 9 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 29 obj-y += vdso.o vdso-syms.o 52 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE 68 $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
|
D | .gitignore | 4 vdso-syms.S
|
/Linux-v5.10/arch/arm64/kernel/ |
D | module-plts.c | 160 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts() argument 187 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() 270 static int partition_branch_plt_relas(Elf64_Sym *syms, Elf64_Rela *rela, in partition_branch_plt_relas() argument 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() [all …]
|
/Linux-v5.10/arch/x86/entry/vdso/ |
D | vdso2c.h | 21 INT_BITS syms[NSYMS] = {}; in BITSFUNC() local 100 if (syms[k]) { in BITSFUNC() 111 syms[k] = GET_LE(&sym->st_value); in BITSFUNC() 118 INT_BITS symval = syms[special_pages[i]]; in BITSFUNC() 126 if (symval + 4096 < syms[sym_vvar_start]) in BITSFUNC() 133 if (syms[sym_vvar_start] % 4096) in BITSFUNC() 169 if (required_syms[i].export && syms[i]) in BITSFUNC() 171 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-v5.10/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-v5.10/arch/arm/kernel/ |
D | module-plts.c | 137 static unsigned int count_plts(const Elf32_Sym *syms, Elf32_Addr base, in count_plts() argument 162 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts() 195 Elf32_Sym *syms = NULL; in module_frob_arch_sections() local 207 syms = (Elf32_Sym *)s->sh_addr; in module_frob_arch_sections() 214 if (!syms) { in module_frob_arch_sections() 235 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections() 238 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
|
/Linux-v5.10/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-v5.10/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-v5.10/arch/powerpc/kernel/ |
D | module_64.c | 254 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument 259 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify() 260 char *name = strtab + syms[i].st_name; in dedotify() 263 syms[i].st_shndx = SHN_ABS; in dedotify() 264 syms[i].st_name++; in dedotify() 275 Elf64_Sym *syms; in find_dot_toc() local 277 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc() 281 if (syms[i].st_shndx == SHN_ABS in find_dot_toc() 282 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc() 283 return &syms[i]; in find_dot_toc()
|
/Linux-v5.10/Documentation/ |
D | dontdiff | 238 vdso-syms.lds 240 vdso32-int80-syms.lds 241 vdso32-syms.lds 242 vdso32-syscall-syms.lds 243 vdso32-sysenter-syms.lds
|
/Linux-v5.10/tools/perf/util/ |
D | srcline.c | 140 asymbol **syms; member 162 asymbol **syms; in slurp_symtab() local 176 syms = malloc(storage); in slurp_symtab() 178 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab() 180 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab() 183 free(syms); in slurp_symtab() 187 a2l->syms = syms; in slurp_symtab() 224 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section() 272 zfree(&a2l->syms); in addr2line_cleanup()
|
D | symbol-elf.c | 111 #define elf_symtab__for_each_symbol(syms, nr_syms, idx, sym) \ argument 112 for (idx = 0, gelf_getsym(syms, idx, &sym);\ 114 idx++, gelf_getsym(syms, idx, &sym)) 291 Elf_Data *reldata, *syms, *symstrs; in dso__synthesize_plt_symbols() local 337 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols() 338 if (syms == NULL) in dso__synthesize_plt_symbols() 390 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols() 416 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols() 1053 Elf_Data *syms, *opddata = NULL; in dso__load_sym() local 1099 syms = elf_getdata(sec, NULL); in dso__load_sym() [all …]
|
D | parse-events.c | 2796 struct event_symbol *syms, unsigned max, in print_symbol_events() argument 2809 syms -= max; in print_symbol_events() 2812 for (i = 0; i < max; i++, syms++) { in print_symbol_events() 2814 if (event_glob != NULL && syms->symbol != NULL && in print_symbol_events() 2815 !(strglobmatch(syms->symbol, event_glob) || in print_symbol_events() 2816 (syms->alias && strglobmatch(syms->alias, event_glob)))) in print_symbol_events() 2827 if (!name_only && strlen(syms->alias)) in print_symbol_events() 2828 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms->symbol, syms->alias); in print_symbol_events() 2830 strlcpy(name, syms->symbol, MAX_NAME_LEN); in print_symbol_events()
|
D | probe-event.c | 2917 struct symbol **syms) in find_probe_functions() argument 2951 if (syms && found < probe_conf.max_probes) in find_probe_functions() 2952 syms[found - 1] = sym; in find_probe_functions() 2976 struct symbol **syms = NULL; in find_probe_trace_events_from_map() local 2990 syms = malloc(sizeof(struct symbol *) * probe_conf.max_probes); in find_probe_trace_events_from_map() 2991 if (!syms) { in find_probe_trace_events_from_map() 3000 num_matched_functions = find_probe_functions(map, pp->function, syms); in find_probe_trace_events_from_map() 3034 sym = syms[j]; in find_probe_trace_events_from_map() 3038 if (sym->start == syms[i]->start) { in find_probe_trace_events_from_map() 3121 free(syms); in find_probe_trace_events_from_map()
|
D | parse-events.h | 229 struct event_symbol *syms, unsigned max,
|
/Linux-v5.10/scripts/ |
D | makelst | 20 t1=`$3 --syms $1 | grep .text | grep -m1 " F "`
|
/Linux-v5.10/kernel/ |
D | kexec_file.c | 1066 const Elf_Sym *syms; in kexec_purgatory_find_symbol() local 1084 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol() 1088 if (ELF_ST_BIND(syms[k].st_info) != STB_GLOBAL) in kexec_purgatory_find_symbol() 1091 if (strcmp(strtab + syms[k].st_name, name) != 0) in kexec_purgatory_find_symbol() 1094 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol() 1095 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol() 1097 name, syms[k].st_shndx); in kexec_purgatory_find_symbol() 1102 return &syms[k]; in kexec_purgatory_find_symbol()
|
D | module.c | 411 bool (*fn)(const struct symsearch *syms, in each_symbol_in_section() argument 460 { mod->syms, mod->syms + mod->num_syms, mod->crcs, in each_symbol_section() 503 static bool check_exported_symbol(const struct symsearch *syms, in check_exported_symbol() argument 510 if (syms->license == GPL_ONLY) in check_exported_symbol() 512 if (syms->license == WILL_BE_GPL_ONLY && fsa->warn) { in check_exported_symbol() 520 if (syms->unused && fsa->warn) { in check_exported_symbol() 532 fsa->crc = symversion(syms->crcs, symnum); in check_exported_symbol() 533 fsa->sym = &syms->start[symnum]; in check_exported_symbol() 534 fsa->license = syms->license; in check_exported_symbol() 572 static bool find_exported_symbol_in_section(const struct symsearch *syms, in find_exported_symbol_in_section() argument [all …]
|
/Linux-v5.10/tools/perf/tests/ |
D | hists_common.c | 76 struct fake_sym *syms; member 140 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()
|
/Linux-v5.10/tools/lib/bpf/ |
D | Makefile | 148 VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \ 217 readelf --dyn-syms --wide $(OUTPUT)libbpf.so | \
|
/Linux-v5.10/arch/arm/mm/ |
D | Makefile | 18 obj-$(CONFIG_MODULES) += proc-syms.o
|
/Linux-v5.10/Documentation/livepatch/ |
D | module-elf-format.rst | 199 they are local or unexported global syms). Since the module loader only 200 resolves exported syms, and not every symbol referenced by the new patched
|
/Linux-v5.10/include/linux/ |
D | module.h | 378 const struct kernel_symbol *syms; member
|