Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 25 of 73) sorted by relevance

123

/arch/arm/include/asm/
Dftrace.h64 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument
67 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name()
68 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name()
69 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name()
70 sym = "sys_statfs64"; in arch_syscall_match_sym_name()
71 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name()
72 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name()
73 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name()
74 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name()
77 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
/arch/arm64/include/asm/
Dkvm_asm.h40 #define kvm_ksym_ref(sym) \ argument
42 void *val = &sym; \
44 val = phys_to_virt((u64)&sym - kimage_voffset); \
74 #define __hyp_this_cpu_ptr(sym) \ argument
76 void *__ptr = hyp_symbol_addr(sym); \
78 (typeof(&sym))__ptr; \
81 #define __hyp_this_cpu_read(sym) \ argument
83 *__hyp_this_cpu_ptr(sym); \
88 .macro hyp_adr_this_cpu reg, sym, tmp
89 adr_l \reg, \sym
[all …]
Dassembler.h195 .macro adr_l, dst, sym
197 adrp \dst, \sym
198 add \dst, \dst, :lo12:\sym
200 movz \dst, #:abs_g3:\sym
201 movk \dst, #:abs_g2_nc:\sym
202 movk \dst, #:abs_g1_nc:\sym
203 movk \dst, #:abs_g0_nc:\sym
214 .macro ldr_l, dst, sym, tmp=
217 adrp \dst, \sym
218 ldr \dst, [\dst, :lo12:\sym]
[all …]
/arch/x86/tools/
Drelocs.c256 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument
260 if (sym->st_name) { in sym_name()
261 name = sym_strtab + sym->st_name; in sym_name()
264 name = sec_name(sym->st_shndx); in sym_name()
277 Elf_Sym *sym; in sym_lookup() local
286 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
287 if (!sym->st_name) in sym_lookup()
289 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
290 return sym; in sym_lookup()
473 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local
[all …]
/arch/tile/kernel/
Dhvglue.S3 .macro gensym sym, val, size
5 .global _\sym
6 .type _\sym,function
7 _\sym:
8 .size _\sym,\size
10 .globl \sym
11 .set \sym,_\sym
/arch/x86/entry/
Dsyscall_64.c10 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument
14 #define __SYSCALL_64(nr, sym, qual) [nr] = sym, argument
Dsyscall_32.c10 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument
14 #define __SYSCALL_I386(nr, sym, qual) [nr] = sym, argument
/arch/x86/um/
Dsys_call_table_32.c29 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument
33 #define __SYSCALL_I386(nr, sym, qual) [ nr ] = sym, argument
Dsys_call_table_64.c39 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument
43 #define __SYSCALL_64(nr, sym, qual) [ nr ] = sym, argument
Duser-offsets.c13 #define __SYSCALL_I386(nr, sym, qual) [nr] = 1, argument
18 #define __SYSCALL_64(nr, sym, qual) [nr] = 1, argument
24 #define DEFINE(sym, val) \ argument
25 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
27 #define DEFINE_LONGS(sym, val) \ argument
28 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long)))
/arch/m68k/kernel/
Dmodule.c30 Elf32_Sym *sym; in apply_relocate() local
41 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate()
47 *location += sym->st_value; in apply_relocate()
51 *location += sym->st_value - (uint32_t)location; in apply_relocate()
70 Elf32_Sym *sym; in apply_relocate_add() local
81 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
87 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add()
91 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; in apply_relocate_add()
/arch/frv/kernel/
Dasm-offsets.c18 #define DEF_PTREG(sym, reg) OFFSET(sym, pt_regs, reg) argument
19 #define DEF_IREG(sym, reg) OFFSET(sym, user_context, reg) argument
20 #define DEF_FREG(sym, reg) OFFSET(sym, user_context, reg) argument
21 #define DEF_0REG(sym, reg) OFFSET(sym, frv_frame0, reg) argument
/arch/powerpc/oprofile/cell/
Dvma_map.c119 Elf32_Sym sym; in create_vma_map() local
180 if (shdr.sh_entsize != sizeof (sym)) in create_vma_map()
191 for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { in create_vma_map()
192 if (copy_from_user(&sym, spu_elf_start + in create_vma_map()
194 j * sizeof (sym), in create_vma_map()
195 sizeof (sym))) in create_vma_map()
200 sym.st_name, in create_vma_map()
205 ovly_table_sym = sym.st_value; in create_vma_map()
207 ovly_buf_table_sym = sym.st_value; in create_vma_map()
209 ovly_table_end_sym = sym.st_value; in create_vma_map()
[all …]
/arch/hexagon/kernel/
Dmodule.c85 Elf32_Sym *sym; in apply_relocate_add() local
100 sym = sym_base + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
106 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
110 sym->st_name ? in apply_relocate_add()
111 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
123 sym->st_name ? in apply_relocate_add()
124 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
/arch/arm/kernel/
Dmodule.c73 Elf32_Sym *sym; in apply_relocate() local
88 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate()
89 symname = strtab + sym->st_name; in apply_relocate()
107 *(u32 *)loc += sym->st_value; in apply_relocate()
113 if (sym->st_value & 3) { in apply_relocate()
124 offset += sym->st_value - loc; in apply_relocate()
144 sym->st_value); in apply_relocate()
166 offset += sym->st_value - loc; in apply_relocate()
171 sym->st_value); in apply_relocate()
184 offset += sym->st_value; in apply_relocate()
[all …]
/arch/unicore32/kernel/
Dmodule.c44 Elf32_Sym *sym; in apply_relocate() local
56 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate()
75 *(u32 *)loc += sym->st_value; in apply_relocate()
85 offset += sym->st_value - loc; in apply_relocate()
92 relindex, i, strtab + sym->st_name); in apply_relocate()
/arch/x86/include/asm/
Datomic64_32.h17 #define __ATOMIC64_DECL(sym) void atomic64_##sym(atomic64_t *, ...) argument
21 #define ATOMIC64_DECL_ONE(sym) __ATOMIC64_DECL(sym); \ argument
22 ATOMIC64_EXPORT(atomic64_##sym)
30 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8) argument
36 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8); \ argument
37 ATOMIC64_DECL_ONE(sym##_386)
/arch/sparc/kernel/
Dmodule.c61 Elf_Sym *sym; in module_frob_arch_sections() local
71 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
75 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections()
76 if (ELF_ST_TYPE(sym[i].st_info) == STT_REGISTER) in module_frob_arch_sections()
77 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
91 Elf_Sym *sym; in apply_relocate_add() local
109 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
111 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
/arch/mips/kernel/
Dvpe.c432 Elf32_Sym *sym; in apply_relocations() local
445 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocations()
448 if (!sym->st_value) { in apply_relocations()
450 me->name, strtab + sym->st_name); in apply_relocations()
454 v = sym->st_value; in apply_relocations()
461 strtab + sym->st_name); in apply_relocations()
483 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in simplify_symbols() local
497 switch (sym[i].st_shndx) { in simplify_symbols()
503 size = sym[i].st_value; in simplify_symbols()
504 sym[i].st_value = bssbase; in simplify_symbols()
[all …]
/arch/parisc/kernel/
Dmodule.c84 me->name, strtab + sym->st_name, (unsigned long)val, bits); \
546 Elf32_Sym *sym; in apply_relocate_add() local
565 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
567 if (!sym->st_value) { in apply_relocate_add()
569 me->name, strtab + sym->st_name); in apply_relocate_add()
575 val = sym->st_value; in apply_relocate_add()
581 strtab + sym->st_name, in apply_relocate_add()
645 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
660 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
691 Elf64_Sym *sym; in apply_relocate_add() local
[all …]
/arch/score/kernel/
Dmodule.c42 Elf32_Sym *sym; in apply_relocate() local
53 sym = ((Elf32_Sym *)symsec->sh_addr) + r_offset; in apply_relocate()
69 *(unsigned long *)loc += sym->st_value; in apply_relocate()
85 uvalue = sym->st_value + offset; in apply_relocate()
109 uvalue = (sym->st_value + offset) >> 1; in apply_relocate()
/arch/x86/kernel/
Dmachine_kexec_64.c439 Elf64_Sym *sym; in arch_kexec_apply_relocations_add() local
496 sym = (Elf64_Sym *)symtabsec->sh_offset + in arch_kexec_apply_relocations_add()
499 if (sym->st_name) in arch_kexec_apply_relocations_add()
500 name = strtab + sym->st_name; in arch_kexec_apply_relocations_add()
502 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
505 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add()
506 sym->st_size); in arch_kexec_apply_relocations_add()
508 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
513 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
518 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add()
[all …]
/arch/mips/boot/tools/
Drelocs.c119 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument
123 if (sym->st_name) in sym_name()
124 name = sym_strtab + sym->st_name; in sym_name()
126 name = sec_name(sym->st_shndx); in sym_name()
342 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local
344 sym->st_name = elf_word_to_cpu(sym->st_name); in read_symtabs()
345 sym->st_value = elf_addr_to_cpu(sym->st_value); in read_symtabs()
346 sym->st_size = elf_xword_to_cpu(sym->st_size); in read_symtabs()
347 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs()
468 Elf_Sym *sym, const char *symname)) in walk_relocs() argument
[all …]
/arch/x86/lib/
Dretpoline.S28 #define __EXPORT_THUNK(sym) _ASM_NOKPROBE(sym); EXPORT_SYMBOL(sym) argument
/arch/xtensa/kernel/
Dmodule.c57 Elf32_Sym *sym; in apply_relocate_add() local
68 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
70 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
94 strtab + sym->st_name); in apply_relocate_add()
118 strtab + sym->st_name); in apply_relocate_add()

123