| /linux/arch/riscv/kernel/vdso/ |
| H A 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 vdso-syms += getrandom 21 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o 47 ifneq ($(filter vgettimeofday, $(vdso-syms)),) 83 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
|
| H A D | .gitignore | 4 vdso-syms.S
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | kprobe_multi_test.c | 124 const char *syms[8] = { in test_link_api_syms() 135 opts.kprobe_multi.syms = syms; in test_link_api_syms() 136 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms() 202 const char *syms[8] = { in test_attach_api_syms() 213 opts.syms = syms; in test_attach_api_syms() 214 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms() 224 const char *syms[2] = { in test_attach_api_fails() 253 /* fail_2 - both addrs and syms se in test_attach_api_fails() 123 const char *syms[8] = { test_link_api_syms() local 201 const char *syms[8] = { test_attach_api_syms() local 223 const char *syms[2] = { test_attach_api_fails() local 497 char *name = NULL, *ksym_name, **syms = NULL; get_syms() local 670 char **syms = NULL; test_kprobe_multi_bench_attach() local [all...] |
| H A D | kprobe_multi_testmod_test.c | 71 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 D | uprobe_multi_test.c | 361 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 …]
|
| H A 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()
|
| H A D | fill_link_info.c | 381 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 D | trace_helpers.c | 28 struct ksym *syms; 44 ksyms->syms[ksyms->sym_cnt].addr = addr; in ksyms__add_symbol() 45 ksyms->syms[ksyms->sym_cnt].name = tmp; in ksyms__add_symbol() 57 if (!ksyms->syms) { in free_kallsyms_local() 63 free(ksyms->syms[i].name); in free_kallsyms_local() 64 free(ksyms->syms); in free_kallsyms_local() 93 ret = libbpf_ensure_mem((void **) &ksyms->syms, &ksyms->sym_cap, in load_kallsyms_local_common() 102 qsort(ksyms->syms, ksyms->sym_cnt, sizeof(struct ksym), cmp_cb); in load_kallsyms_local_common() 147 result = key - ksyms->syms[mid].addr; in ksym_search_local() 153 return &ksyms->syms[mi in ksym_search_local() 26 struct ksym *syms; global() member [all...] |
| /linux/arch/arm64/kernel/ |
| H A 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() 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 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/arch/riscv/kernel/compat_vdso/ |
| H A 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 67 $(OBJCOPY) $(patsubst %, -G __compat_vdso_%, $(compat_vdso-syms)) $@.tmp $@ && \
|
| /linux/arch/sparc/vdso/ |
| H A 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/arch/x86/entry/vdso/ |
| H A D | .gitignore | 4 vdso32-syscall-syms.lds 5 vdso32-sysenter-syms.lds 6 vdso32-int80-syms.lds
|
| /linux/arch/sh/kernel/vsyscall/ |
| H A D | Makefile | 2 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 D | libbfd.c | 38 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()
|
| H A D | symbol-elf.c | 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() 1481 Elf_Data *syms, *opddata = NULL; in dso__load_sym_internal() local 1511 syms = elf_getdata(sec, NULL); in dso__load_sym_internal() 1512 if (syms == NULL) in dso__load_sym_internal() [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | module_64.c | 389 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/scripts/ |
| H A D | link-vmlinux.sh | 162 kallsyms_sysmap=${1}.syms 220 true > .tmp_vmlinux0.syms 221 kallsyms .tmp_vmlinux0.syms .tmp_vmlinux0.kallsyms
|
| H A D | makelst | 20 t1=`$3 --syms $1 | grep .text | grep -m1 " F "`
|
| /linux/include/linux/ |
| H A D | fprobe.h | 95 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/kernel/trace/ |
| H A D | fprobe.c | 647 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument 657 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations() 659 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations() 889 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument 894 if (!fp || !syms || num <= 0) in register_fprobe_syms() 897 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
|
| /linux/kernel/ |
| H A D | kexec_file.c | 1143 const Elf_Sym *syms; in kexec_purgatory_find_symbol() local 1161 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol() 1165 if (ELF_ST_BIND(syms[k].st_info) != STB_GLOBAL) in kexec_purgatory_find_symbol() 1168 if (strcmp(strtab + syms[k].st_name, name) != 0) in kexec_purgatory_find_symbol() 1171 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol() 1172 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol() 1174 name, syms[k].st_shndx); in kexec_purgatory_find_symbol() 1179 return &syms[k]; in kexec_purgatory_find_symbol()
|
| /linux/arch/csky/kernel/vdso/ |
| H A D | .gitignore | 4 vdso-syms.S
|
| /linux/tools/perf/tests/ |
| H A 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/kernel/module/ |
| H A D | main.c | 362 static bool find_exported_symbol_in_section(const struct symsearch *syms, in find_exported_symbol_in_section() argument 368 if (!fsa->gplok && syms->license == GPL_ONLY) in find_exported_symbol_in_section() 371 sym = bsearch(fsa->name, syms->start, syms->stop - syms->start, in find_exported_symbol_in_section() 377 fsa->crc = symversion(syms->crcs, sym - syms->start); in find_exported_symbol_in_section() 379 fsa->license = syms->license; in find_exported_symbol_in_section() 407 { mod->syms, mod->syms + mod->num_syms, mod->crcs, in find_symbol() 1475 { mod->syms, mod->num_syms }, in verify_exported_symbols() 2309 Elf_Sym *syms = (void *)info->hdr + sym_shdr->sh_offset; in elf_validity_cache_strtab() local 2329 for (i = 0; i < sym_shdr->sh_size / sizeof(*syms); i++) { in elf_validity_cache_strtab() 2330 if (syms[i].st_name >= str_shdr->sh_size) { in elf_validity_cache_strtab() [all …]
|