Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c122 const char *syms[8] = { in test_link_api_syms() local
133 opts.kprobe_multi.syms = syms; in test_link_api_syms()
134 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms()
200 const char *syms[8] = { in test_attach_api_syms() local
211 opts.syms = syms; in test_attach_api_syms()
212 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
222 const char *syms[2] = { in test_attach_api_fails() local
253 opts.syms = syms; in test_attach_api_fails()
254 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails()
268 opts.syms = NULL; in test_attach_api_fails()
[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.c350 const char *syms[3] = { in test_attach_api_fails()
356 opts.syms = syms; in test_attach_api_fails()
357 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails()
554 const char *syms[4] = { in test_bench_attach_usdt()
561 opts.syms = syms; in test_bench_attach_usdt()
562 opts.cnt = ARRAY_SIZE(syms); in test_bench_attach_usdt()
583 const char *syms[3] = { in test_uprobe_multi_test()
595 err = elf_resolve_syms_offsets("/proc/self/exe", 2, (const char **) &syms,
226 const char *syms[3] = { test_attach_api_syms() local
415 const char *syms[3] = { __test_link_api() local
[all...]
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 Dfill_link_info.c360 opts.syms = kmulti_syms; in test_kprobe_multi_fill_link_info()
517 const char *syms[3] = { in test_uprobe_multi_fill_link_info() local
541 err = elf_resolve_syms_offsets("/proc/self/exe", 3, syms, in test_uprobe_multi_fill_link_info()
546 opts.syms = syms; in test_uprobe_multi_fill_link_info()
549 opts.cnt = ARRAY_SIZE(syms); in test_uprobe_multi_fill_link_info()
/linux/tools/testing/selftests/bpf/
H A Dtrace_helpers.c26 struct ksym *syms;
42 ksyms->syms[ksyms->sym_cnt].addr = addr; in ksyms__add_symbol()
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()
91 ret = libbpf_ensure_mem((void **) &ksyms->syms, &ksyms->sym_cap, in load_kallsyms_local_common()
100 qsort(ksyms->syms, ksyms->sym_cnt, sizeof(struct ksym), cmp_cb); in load_kallsyms_local_common()
145 result = key - ksyms->syms[mid].addr; in ksym_search_local()
151 return &ksyms->syms[mi in ksym_search_local()
24 struct ksym *syms; global() member
[all...]
/linux/arch/arm64/kernel/
H A Dmodule-plts.c157 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
302 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
309 if (!syms) { in module_frob_arch_sections()
[all …]
/linux/arch/csky/kernel/vdso/
H A DMakefile7 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
35 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE
50 $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
/linux/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/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/x86/entry/vdso/
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()
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()
H A D.gitignore4 vdso32-syscall-syms.lds
5 vdso32-sysenter-syms.lds
6 vdso32-int80-syms.lds
/linux/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/kernel/trace/
H A Dfprobe.c159 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()
329 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
334 if (!fp || !syms || num <= 0) in register_fprobe_syms()
337 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
/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()
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/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 Dprint-events.c363 unsigned int type, const struct event_symbol *syms, in print_symbol_events()
378 if (syms[i].symbol == NULL) in print_symbol_events()
384 if (strlen(syms[i].alias)) { in print_symbol_events()
387 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms[i].symbol, syms[i].alias); in print_symbol_events()
390 strlist__add(evt_name_list, syms[i].symbol); in print_symbol_events()
347 print_symbol_events(const struct print_callbacks * print_cb,void * print_state,unsigned int type,const struct event_symbol * syms,unsigned int max) print_symbol_events() argument
H A Dsrcline.c208 asymbol **syms; in find_address_in_section()
230 asymbol **syms; in find_address_in_section()
244 syms = malloc(storage); in addr2line_init()
246 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in addr2line_init()
248 symcount = bfd_canonicalize_symtab(abfd, syms); in addr2line_init()
251 free(syms); in addr2line_init()
255 a2l->syms = syms; in addr2line_init()
292 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in inline_list__append_dso_a2l()
340 zfree(&a2l->syms); in addr2line()
151 asymbol **syms; global() member
173 asymbol **syms; slurp_symtab() local
[all...]
/linux/tools/lib/bpf/
H A Delf.c88 Elf_Data *syms;
125 iter->syms = elf_getdata(scn, 0); in elf_sym_iter_new()
126 if (!iter->syms) { in elf_sym_iter_new()
131 iter->nr_syms = iter->syms->d_size / sh.sh_entsize; in elf_sym_iter_new()
168 if (!gelf_getsym(iter->syms, idx, sym)) in elf_sym_iter_next()
406 * Return offsets in @poffsets for symbols specified in @syms array argument.
411 const char **syms, unsigned long **poffsets, in elf_resolve_syms_offsets()
433 symbols[i].name = syms[i]; in elf_resolve_syms_offsets()
85 Elf_Data *syms; global() member
408 elf_resolve_syms_offsets(const char * binary_path,int cnt,const char ** syms,unsigned long ** poffsets,int st_type) elf_resolve_syms_offsets() argument
/linux/lib/
H A Dtest_fprobe.c153 static const char *syms[] = {"fprobe_selftest_target", "fprobe_selftest_target2"}; in test_fprobe_syms() local
160 KUNIT_EXPECT_EQ(test, 0, register_fprobe_syms(&fp, syms, 2)); in test_fprobe_syms()
197 static const char *syms[] = {"fprobe_selftest_target", "fprobe_selftest_nest_target"}; in test_fprobe_nest() local
205 KUNIT_EXPECT_EQ(test, 0, register_fprobe_syms(&fp, syms, 2)); in test_fprobe_nest()
/linux/scripts/
H A Dlink-vmlinux.sh163 kallsyms_sysmap=${1}.syms
206 true > .tmp_vmlinux.kallsyms0.syms
207 kallsyms .tmp_vmlinux.kallsyms0.syms .tmp_vmlinux0.kallsyms
/linux/include/linux/
H A Dfprobe.h73 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num);
85 static inline int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
/linux/arch/s390/boot/
H A Dvmlinux.lds.S92 .decompressor.syms : {
96 *(.decompressor.syms) argument
/linux/kernel/
H A Dkexec_file.c1082 const Elf_Sym *syms; in kexec_purgatory_find_symbol() local
1100 syms = (void *)ehdr + sechdrs[i].sh_offset; in kexec_purgatory_find_symbol()
1104 if (ELF_ST_BIND(syms[k].st_info) != STB_GLOBAL) in kexec_purgatory_find_symbol()
1107 if (strcmp(strtab + syms[k].st_name, name) != 0) in kexec_purgatory_find_symbol()
1110 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol()
1111 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
1113 name, syms[k].st_shndx); in kexec_purgatory_find_symbol()
1118 return &syms[k]; in kexec_purgatory_find_symbol()
/linux/arch/riscv/kernel/vdso/
H A D.gitignore4 vdso-syms.S

123