Home
last modified time | relevance | path

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

12

/Linux-v5.4/tools/testing/selftests/bpf/
Dtrace_helpers.c14 static struct ksym syms[MAX_SYMS]; variable
38 syms[i].addr = (long) addr; in load_kallsyms()
39 syms[i].name = strdup(func); in load_kallsyms()
44 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms()
60 result = key - syms[mid].addr; in ksym_search()
66 return &syms[mid]; in ksym_search()
69 if (start >= 1 && syms[start - 1].addr < key && in ksym_search()
70 key < syms[start].addr) in ksym_search()
72 return &syms[start - 1]; in ksym_search()
75 return &syms[0]; in ksym_search()
[all …]
/Linux-v5.4/arch/riscv/kernel/vdso/
DMakefile5 vdso-syms = rt_sigreturn
7 vdso-syms += gettimeofday
8 vdso-syms += clock_gettime
9 vdso-syms += clock_getres
11 vdso-syms += getcpu
12 vdso-syms += flush_icache
15 obj-vdso = $(patsubst %, %.o, $(vdso-syms))
21 obj-y += vdso.o vdso-syms.o
44 LDFLAGS_vdso-syms.o := -r -R
45 $(obj)/vdso-syms.o: $(obj)/vdso-dummy.o FORCE
[all …]
/Linux-v5.4/arch/x86/entry/vdso/
Dvdso2c.h22 INT_BITS syms[NSYMS] = {}; in BITSFUNC() local
102 if (syms[k]) { in BITSFUNC()
113 syms[k] = GET_LE(&sym->st_value); in BITSFUNC()
120 INT_BITS symval = syms[special_pages[i]]; in BITSFUNC()
128 if (symval + 4096 < syms[sym_vvar_start]) in BITSFUNC()
135 if (syms[sym_vvar_start] % 4096) in BITSFUNC()
171 if (required_syms[i].export && syms[i]) in BITSFUNC()
173 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
D.gitignore3 vdso32-syscall-syms.lds
4 vdso32-sysenter-syms.lds
5 vdso32-int80-syms.lds
/Linux-v5.4/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-v5.4/arch/arm/kernel/
Dmodule-plts.c136 static unsigned int count_plts(const Elf32_Sym *syms, Elf32_Addr base, in count_plts() argument
161 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts()
194 Elf32_Sym *syms = NULL; in module_frob_arch_sections() local
206 syms = (Elf32_Sym *)s->sh_addr; in module_frob_arch_sections()
213 if (!syms) { in module_frob_arch_sections()
234 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
237 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
/Linux-v5.4/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-v5.4/arch/arm64/kernel/
Dmodule-plts.c159 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts() argument
186 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts()
260 Elf64_Sym *syms = NULL; in module_frob_arch_sections() local
278 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections()
285 if (!syms) { in module_frob_arch_sections()
306 core_plts += count_plts(syms, rels, numrels, in module_frob_arch_sections()
309 init_plts += count_plts(syms, rels, numrels, in module_frob_arch_sections()
/Linux-v5.4/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-v5.4/Documentation/
Ddontdiff236 vdso-syms.lds
238 vdso32-int80-syms.lds
239 vdso32-syms.lds
240 vdso32-syscall-syms.lds
241 vdso32-sysenter-syms.lds
/Linux-v5.4/tools/perf/util/
Dsrcline.c140 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()
210 a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma, in find_address_in_section()
258 zfree(&a2l->syms); in addr2line_cleanup()
Dsymbol-elf.c109 #define elf_symtab__for_each_symbol(syms, nr_syms, idx, sym) \ argument
110 for (idx = 0, gelf_getsym(syms, idx, &sym);\
112 idx++, gelf_getsym(syms, idx, &sym))
289 Elf_Data *reldata, *syms, *symstrs; in dso__synthesize_plt_symbols() local
335 syms = elf_getdata(scn_dynsym, NULL); in dso__synthesize_plt_symbols()
336 if (syms == NULL) in dso__synthesize_plt_symbols()
388 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
414 gelf_getsym(syms, symidx, &sym); in dso__synthesize_plt_symbols()
963 Elf_Data *syms, *opddata = NULL; in dso__load_sym() local
1009 syms = elf_getdata(sec, NULL); in dso__load_sym()
[all …]
Dparse-events.c2528 struct event_symbol *syms, unsigned max, in print_symbol_events() argument
2541 syms -= max; in print_symbol_events()
2544 for (i = 0; i < max; i++, syms++) { in print_symbol_events()
2546 if (event_glob != NULL && syms->symbol != NULL && in print_symbol_events()
2547 !(strglobmatch(syms->symbol, event_glob) || in print_symbol_events()
2548 (syms->alias && strglobmatch(syms->alias, event_glob)))) in print_symbol_events()
2559 if (!name_only && strlen(syms->alias)) in print_symbol_events()
2560 snprintf(name, MAX_NAME_LEN, "%s OR %s", syms->symbol, syms->alias); in print_symbol_events()
2562 strlcpy(name, syms->symbol, MAX_NAME_LEN); in print_symbol_events()
Dparse-events.h207 struct event_symbol *syms, unsigned max,
Dprobe-event.c2827 struct symbol **syms) in find_probe_functions() argument
2861 if (syms && found < probe_conf.max_probes) in find_probe_functions()
2862 syms[found - 1] = sym; in find_probe_functions()
2886 struct symbol **syms = NULL; in find_probe_trace_events_from_map() local
2900 syms = malloc(sizeof(struct symbol *) * probe_conf.max_probes); in find_probe_trace_events_from_map()
2901 if (!syms) { in find_probe_trace_events_from_map()
2910 num_matched_functions = find_probe_functions(map, pp->function, syms); in find_probe_trace_events_from_map()
2944 sym = syms[j]; in find_probe_trace_events_from_map()
3021 free(syms); in find_probe_trace_events_from_map()
/Linux-v5.4/arch/powerpc/kernel/
Dmodule_64.c304 static void dedotify(Elf64_Sym *syms, unsigned int numsyms, char *strtab) in dedotify() argument
309 if (syms[i].st_shndx == SHN_UNDEF) { in dedotify()
310 char *name = strtab + syms[i].st_name; in dedotify()
313 syms[i].st_shndx = SHN_ABS; in dedotify()
314 syms[i].st_name++; in dedotify()
325 Elf64_Sym *syms; in find_dot_toc() local
327 syms = (Elf64_Sym *)sechdrs[symindex].sh_addr; in find_dot_toc()
331 if (syms[i].st_shndx == SHN_ABS in find_dot_toc()
332 && strcmp(strtab + syms[i].st_name, "TOC.") == 0) in find_dot_toc()
333 return &syms[i]; in find_dot_toc()
/Linux-v5.4/scripts/
Dmakelst20 t1=`$3 --syms $1 | grep .text | grep -m1 " F "`
/Linux-v5.4/arch/unicore32/mm/
DMakefile9 obj-$(CONFIG_MODULES) += proc-syms.o
/Linux-v5.4/kernel/
Dkexec_file.c1066 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()
Dmodule.c405 bool (*fn)(const struct symsearch *syms, in each_symbol_in_section() argument
453 { mod->syms, mod->syms + mod->num_syms, mod->crcs, in each_symbol_section()
496 static bool check_exported_symbol(const struct symsearch *syms, in check_exported_symbol() argument
503 if (syms->licence == GPL_ONLY) in check_exported_symbol()
505 if (syms->licence == WILL_BE_GPL_ONLY && fsa->warn) { in check_exported_symbol()
513 if (syms->unused && fsa->warn) { in check_exported_symbol()
525 fsa->crc = symversion(syms->crcs, symnum); in check_exported_symbol()
526 fsa->sym = &syms->start[symnum]; in check_exported_symbol()
564 static bool find_exported_symbol_in_section(const struct symsearch *syms, in find_exported_symbol_in_section() argument
571 sym = bsearch(fsa->name, syms->start, syms->stop - syms->start, in find_exported_symbol_in_section()
[all …]
/Linux-v5.4/tools/perf/tests/
Dhists_common.c76 struct fake_sym *syms; member
140 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dopal.c726 const __be64 *syms; in opal_export_symmap() local
734 syms = of_get_property(fw, "symbol-map", &size); in opal_export_symmap()
735 if (!syms || size != 2 * sizeof(__be64)) in opal_export_symmap()
739 symbol_map_attr.private = __va(be64_to_cpu(syms[0])); in opal_export_symmap()
740 symbol_map_attr.size = be64_to_cpu(syms[1]); in opal_export_symmap()
/Linux-v5.4/arch/arm/mm/
DMakefile18 obj-$(CONFIG_MODULES) += proc-syms.o
/Linux-v5.4/include/linux/
Dmodule.h364 const struct kernel_symbol *syms; member
/Linux-v5.4/Documentation/livepatch/
Dmodule-elf-format.rst200 they are local or unexported global syms). Since the module loader only
201 resolves exported syms, and not every symbol referenced by the new patched

12