Home
last modified time | relevance | path

Searched refs:syms (Results 1 - 25 of 76) sorted by relevance

1234

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dkprobe_multi_test.c120 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
247 /* fail_2 - both addrs and syms se in test_attach_api_fails()
321 char *name = NULL, **syms = NULL; get_syms() local
416 char **syms = NULL; test_kprobe_multi_bench_attach() local
[all...]
H A Dkprobe_multi_testmod_test.c69 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()
H A Duprobe_multi_test.c226 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtrace_helpers.c17 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[ in ksym_search()
[all...]
/kernel/linux/linux-6.6/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
34 ifneq ($(filter vgettimeofday, $(vdso-syms)),)
74 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtrace_helpers.c22 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[ in ksym_search()
[all...]
/kernel/linux/linux-5.10/arch/riscv/kernel/vdso/
H A DMakefile9 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
32 ifneq ($(filter vgettimeofday, $(vdso-syms)),)
71 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
/kernel/linux/linux-6.6/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
39 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE
54 $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/x86/entry/vdso/
H A Dvdso2c.h21 INT_BITS syms[NSYMS] = {}; in go() local
100 if (syms[k]) { in go()
108 * on syms[k] being a signed type of the in go()
111 syms[k] = GET_LE(&sym->st_value); in go()
118 INT_BITS symval = syms[special_pages[i]]; in go()
126 if (symval + 4096 < syms[sym_vvar_start]) in go()
133 if (syms[sym_vvar_start] % 4096) in go()
169 if (required_syms[i].export && syms[i]) in go()
171 required_syms[i].name, (int64_t)syms[i]); in go()
/kernel/linux/linux-6.6/arch/s390/boot/
H A DMakefile45 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 OBJCOPYFLAGS_syms.o := -I binary -O elf64-s390 -B s390:64-bit --rename-section .data=.decompressor.syms
93 $(obj)/syms.o: $(obj)/syms
[all...]
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dmodule-plts.c161 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts() argument
188 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
257 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt() argument
261 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt()
271 static int partition_branch_plt_relas(Elf64_Sym *syms, Elf64_Rela *rela, in partition_branch_plt_relas() argument
280 if (branch_rela_needs_plt(syms, &rela[i], dstidx)) in partition_branch_plt_relas()
282 else if (branch_rela_needs_plt(syms, &rela[j], dstidx)) in partition_branch_plt_relas()
296 Elf64_Sym *syms = NULL; in module_frob_arch_sections() local
313 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
320 if (!syms) { in module_frob_arch_sections()
[all...]
/kernel/linux/linux-6.6/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()
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...]
/kernel/linux/linux-5.10/arch/sparc/vdso/
H A Dvdso2c.h23 INT_BITS syms[NSYMS] = {}; in go() local
91 if (syms[k]) { in go()
99 * on syms[k] being a signed type of the in go()
102 syms[k] = GET_BE(&sym->st_value); in go()
108 if (syms[sym_vvar_start] % 8192) in go()
137 if (required_syms[i].export && syms[i]) in go()
139 required_syms[i].name, (int64_t)syms[i]); in go()
/kernel/linux/linux-6.6/arch/sparc/vdso/
H A Dvdso2c.h23 INT_BITS syms[NSYMS] = {}; in go() local
91 if (syms[k]) { in go()
99 * on syms[k] being a signed type of the in go()
102 syms[k] = GET_BE(&sym->st_value); in go()
108 if (syms[sym_vvar_start] % 8192) in go()
137 if (required_syms[i].export && syms[i]) in go()
139 required_syms[i].name, (int64_t)syms[i]); in go()
/kernel/linux/linux-6.6/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
73 $(OBJCOPY) $(patsubst %, -G __compat_vdso_%, $(compat_vdso-syms)) $@.tmp $@ && \
/kernel/linux/linux-6.6/arch/x86/entry/vdso/
H A Dvdso2c.h56 INT_BITS syms[NSYMS] = {}; in go() local
137 if (syms[k]) { in go()
145 * on syms[k] being a signed type of the in go()
148 syms[k] = GET_LE(&sym->st_value); in go()
155 INT_BITS symval = syms[special_pages[i]]; in go()
163 if (symval + 4096 < syms[sym_vvar_start]) in go()
170 if (syms[sym_vvar_start] % 4096) in go()
218 if (required_syms[i].export && syms[i]) in go()
220 required_syms[i].name, (int64_t)syms[i]); in go()
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Dmodule-plts.c162 static unsigned int count_plts(const Elf32_Sym *syms, Elf32_Addr base, in count_plts() argument
187 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts()
220 Elf32_Sym *syms = NULL; in module_frob_arch_sections() local
232 syms = (Elf32_Sym *)s->sh_addr; in module_frob_arch_sections()
239 if (!syms) { in module_frob_arch_sections()
260 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
263 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Delf.c71 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()
286 * Return offsets in @poffsets for symbols specified in @syms array argument.
291 const char **syms, unsigned long **poffsets) in elf_resolve_syms_offsets()
312 symbols[i].name = syms[i]; in elf_resolve_syms_offsets()
290 elf_resolve_syms_offsets(const char *binary_path, int cnt, const char **syms, unsigned long **poffsets) elf_resolve_syms_offsets() argument
/kernel/linux/linux-6.6/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()
331 * @syms: An array of target symbols.
332 * @num: The number of entries of @syms.
334 * Register @fp to the symbols given by @syms array. This will be useful if
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, nu in register_fprobe_syms()
[all...]
/kernel/linux/linux-5.10/arch/sh/kernel/vsyscall/
H A DMakefile2 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
/kernel/linux/linux-6.6/arch/sh/kernel/vsyscall/
H A DMakefile2 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
/kernel/linux/linux-6.6/tools/perf/util/
H A Dprint-events.c352 unsigned int type, const struct event_symbol *syms, in print_symbol_events()
367 if (syms[i].symbol == NULL) in print_symbol_events()
373 if (strlen(syms[i].alias)) { in print_symbol_events()
376 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms[i].symbol, syms[i].alias); in print_symbol_events()
379 strlist__add(evt_name_list, syms[i].symbol); in print_symbol_events()
351 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
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dmodule_64.c254 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[ in find_dot_toc()
[all...]

Completed in 11 milliseconds

1234