Home
last modified time | relevance | path

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

123

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dkprobe_multi_test.c119 const char *syms[8] = { in test_link_api_syms() local
130 opts.kprobe_multi.syms = syms; in test_link_api_syms()
131 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms()
197 const char *syms[8] = { in test_attach_api_syms() local
208 opts.syms = syms; in test_attach_api_syms()
209 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms()
219 const char *syms[2] = { in test_attach_api_fails() local
248 opts.syms = syms; in test_attach_api_fails()
249 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails()
262 opts.syms = NULL; in test_attach_api_fails()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/
Dtrace_helpers.c18 static struct ksym syms[MAX_SYMS]; variable
50 syms[i].addr = (long) addr; in load_kallsyms()
51 syms[i].name = strdup(func); in load_kallsyms()
56 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms()
72 result = key - syms[mid].addr; in ksym_search()
78 return &syms[mid]; in ksym_search()
81 if (start >= 1 && syms[start - 1].addr < key && in ksym_search()
82 key < syms[start].addr) in ksym_search()
84 return &syms[start - 1]; in ksym_search()
87 return &syms[0]; in ksym_search()
[all …]
/Linux-v6.1/tools/perf/util/
Dprint-events.c376 static void print_tool_event(const struct event_symbol *syms, const char *event_glob, in print_tool_event() argument
379 if (syms->symbol == NULL) in print_tool_event()
382 if (event_glob && !(strglobmatch(syms->symbol, event_glob) || in print_tool_event()
383 (syms->alias && strglobmatch(syms->alias, event_glob)))) in print_tool_event()
387 printf("%s ", syms->symbol); in print_tool_event()
391 if (syms->alias && strlen(syms->alias)) in print_tool_event()
392 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms->symbol, syms->alias); in print_tool_event()
394 strlcpy(name, syms->symbol, MAX_NAME_LEN); in print_tool_event()
410 struct event_symbol *syms, unsigned int max, in print_symbol_events() argument
423 syms -= max; in print_symbol_events()
[all …]
Dsrcline.c145 asymbol **syms; member
167 asymbol **syms; in slurp_symtab() local
181 syms = malloc(storage); in slurp_symtab()
183 symcount = bfd_canonicalize_dynamic_symtab(abfd, syms); in slurp_symtab()
185 symcount = bfd_canonicalize_symtab(abfd, syms); in slurp_symtab()
188 free(syms); in slurp_symtab()
192 a2l->syms = syms; in slurp_symtab()
229 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
277 zfree(&a2l->syms); in addr2line_cleanup()
Dsymbol-elf.c112 #define elf_symtab__for_each_symbol(syms, nr_syms, idx, sym) \ argument
113 for (idx = 0, gelf_getsym(syms, idx, &sym);\
115 idx++, gelf_getsym(syms, idx, &sym))
323 Elf_Data *reldata, *syms, *symstrs; in dso__synthesize_plt_symbols() local
369 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols()
370 if (syms == NULL) in dso__synthesize_plt_symbols()
422 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
448 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
1119 Elf_Data *syms, *opddata = NULL; in dso__load_sym_internal() local
1146 syms = elf_getdata(sec, NULL); in dso__load_sym_internal()
[all …]
/Linux-v6.1/arch/riscv/kernel/vdso/
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)),)
72 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
D.gitignore4 vdso-syms.S
/Linux-v6.1/arch/arm64/kernel/
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 …]
/Linux-v6.1/samples/fprobe/
Dfprobe_example.c88 const char **syms; in fprobe_init() local
116 syms = kcalloc(count, sizeof(char *), GFP_KERNEL); in fprobe_init()
117 if (!syms) { in fprobe_init()
124 syms[i] = strsep(&p, ","); in fprobe_init()
126 ret = register_fprobe_syms(&sample_probe, syms, count); in fprobe_init()
127 kfree(syms); in fprobe_init()
/Linux-v6.1/arch/csky/kernel/vdso/
DMakefile9 vdso-syms += rt_sigreturn
10 vdso-syms += vgettimeofday
13 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o
25 obj-y += vdso.o vdso-syms.o
41 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE
56 $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
D.gitignore4 vdso-syms.S
/Linux-v6.1/arch/s390/boot/
DMakefile45 obj-all := $(obj-y) piggy.o syms.o
50 targets += vmlinux.bin.zst info.bin syms.bin vmlinux.syms $(obj-all)
78 LDFLAGS_vmlinux.syms := --oformat $(LD_BFD) -e startup -T
79 $(obj)/vmlinux.syms: $(obj)/vmlinux.lds $(OBJECTS) FORCE
87 $(obj)/syms.bin: $(obj)/vmlinux.syms FORCE
90 …OPYFLAGS_syms.o := -I binary -O elf64-s390 -B s390:64-bit --rename-section .data=.decompressor.syms
91 $(obj)/syms.o: $(obj)/syms.bin FORCE
Dvmlinux.lds.S88 .decompressor.syms : {
92 *(.decompressor.syms) argument
/Linux-v6.1/arch/riscv/kernel/compat_vdso/
DMakefile7 compat_vdso-syms = rt_sigreturn
8 compat_vdso-syms += getcpu
9 compat_vdso-syms += flush_icache
18 obj-compat_vdso = $(patsubst %, %.o, $(compat_vdso-syms)) note.o
63 $(OBJCOPY) $(patsubst %, -G __compat_vdso_%, $(compat_vdso-syms)) $@.tmp $@ && \
/Linux-v6.1/arch/x86/entry/vdso/
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()
217 if (required_syms[i].export && syms[i]) in BITSFUNC()
219 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
D.gitignore4 vdso32-syscall-syms.lds
5 vdso32-sysenter-syms.lds
6 vdso32-int80-syms.lds
/Linux-v6.1/arch/sparc/vdso/
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-v6.1/kernel/trace/
Dfprobe.c97 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument
107 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations()
109 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations()
274 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
279 if (!fp || !syms || num <= 0) in register_fprobe_syms()
282 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
/Linux-v6.1/arch/arm/kernel/
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()
/Linux-v6.1/arch/ia64/kernel/
DMakefile.gate6 obj-y += gate-syms.o
22 LDFLAGS_gate-syms.o := -r -R
23 $(obj)/gate-syms.o: $(obj)/gate-dummy.o FORCE
/Linux-v6.1/arch/sh/kernel/vsyscall/
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
/Linux-v6.1/arch/powerpc/kernel/
Dmodule_64.c239 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument
244 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify()
245 char *name = strtab + syms[i].st_name; in dedotify()
248 syms[i].st_shndx = SHN_ABS; in dedotify()
249 syms[i].st_name++; in dedotify()
260 Elf64_Sym *syms; in find_dot_toc() local
262 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc()
266 if (syms[i].st_shndx == SHN_ABS in find_dot_toc()
267 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc()
268 return &syms[i]; in find_dot_toc()
/Linux-v6.1/Documentation/
Ddontdiff240 vdso-syms.lds
242 vdso32-int80-syms.lds
243 vdso32-syms.lds
244 vdso32-syscall-syms.lds
245 vdso32-sysenter-syms.lds
/Linux-v6.1/include/linux/
Dfprobe.h59 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num);
70 static inline int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
/Linux-v6.1/scripts/
Dlink-vmlinux.sh173 mksysmap ${kallsyms_vmlinux} ${kallsyms_vmlinux}.syms
174 kallsyms ${kallsyms_vmlinux}.syms ${kallsyms_S}
288 if ! cmp -s System.map ${kallsyms_vmlinux}.syms; then

123