Home
last modified time | relevance | path

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

123

/arch/arm/include/asm/
Dftrace.h59 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument
62 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name()
63 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name()
64 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name()
65 sym = "sys_statfs64"; in arch_syscall_match_sym_name()
66 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name()
67 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name()
68 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name()
69 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name()
72 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
/arch/arm64/include/asm/
Dassembler.h194 .macro adr_l, dst, sym
196 adrp \dst, \sym
197 add \dst, \dst, :lo12:\sym
199 movz \dst, #:abs_g3:\sym
200 movk \dst, #:abs_g2_nc:\sym
201 movk \dst, #:abs_g1_nc:\sym
202 movk \dst, #:abs_g0_nc:\sym
213 .macro ldr_l, dst, sym, tmp=
216 adrp \dst, \sym
217 ldr \dst, [\dst, :lo12:\sym]
[all …]
Dkvm_asm.h36 #define kvm_ksym_ref(sym) \ argument
38 void *val = &sym; \
40 val = phys_to_virt((u64)&sym - kimage_voffset); \
/arch/x86/tools/
Drelocs.c255 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument
259 if (sym->st_name) { in sym_name()
260 name = sym_strtab + sym->st_name; in sym_name()
263 name = sec_name(sym->st_shndx); in sym_name()
276 Elf_Sym *sym; in sym_lookup() local
285 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
286 if (!sym->st_name) in sym_lookup()
288 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
289 return sym; in sym_lookup()
472 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local
[all …]
/arch/x86/um/shared/sysdep/
Dkernel-offsets.h7 #define DEFINE(sym, val) \ argument
8 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
12 #define OFFSET(sym, str, mem) \ argument
13 DEFINE(sym, offsetof(struct str, mem));
/arch/tile/kernel/
Dhvglue.S2 .macro gensym sym, val, size
4 .global _\sym
5 .type _\sym,function
6 _\sym:
7 .size _\sym,\size
9 .globl \sym
10 .set \sym,_\sym
/arch/x86/entry/
Dsyscall_64.c9 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument
13 #define __SYSCALL_64(nr, sym, qual) [nr] = sym, argument
Dsyscall_32.c9 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument
13 #define __SYSCALL_I386(nr, sym, qual) [nr] = sym, argument
/arch/x86/um/
Dsys_call_table_32.c28 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument
32 #define __SYSCALL_I386(nr, sym, qual) [ nr ] = sym, argument
Dsys_call_table_64.c38 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsign… argument
42 #define __SYSCALL_64(nr, sym, qual) [ nr ] = sym, argument
Duser-offsets.c12 #define __SYSCALL_I386(nr, sym, qual) [nr] = 1, argument
17 #define __SYSCALL_64(nr, sym, qual) [nr] = 1, argument
23 #define DEFINE(sym, val) \ argument
24 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
26 #define DEFINE_LONGS(sym, val) \ argument
27 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/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/frv/kernel/
Dasm-offsets.c17 #define DEF_PTREG(sym, reg) \ argument
18 asm volatile("\n->" #sym " %0 offsetof(struct pt_regs, " #reg ")" \
21 #define DEF_IREG(sym, reg) \ argument
22 asm volatile("\n->" #sym " %0 offsetof(struct user_context, " #reg ")" \
25 #define DEF_FREG(sym, reg) \ argument
26 asm volatile("\n->" #sym " %0 offsetof(struct user_context, " #reg ")" \
29 #define DEF_0REG(sym, reg) \ argument
30 asm volatile("\n->" #sym " %0 offsetof(struct frv_frame0, " #reg ")" \
/arch/arm64/kernel/
Dimage.h46 #define DEFINE_IMAGE_LE64(sym, data) \ argument
47 sym##_lo32 = DATA_LE32((data) & 0xffffffff); \
48 sym##_hi32 = DATA_LE32((data) >> 32)
86 #define KALLSYMS_HIDE(sym) ABSOLUTE(sym) argument
Dmodule-plts.c30 Elf64_Sym *sym) in module_emit_plt_entry() argument
34 u64 val = sym->st_value + rela->r_addend; in module_emit_plt_entry()
49 if (rela->r_addend == 0 && sym->st_size != 0) { in module_emit_plt_entry()
50 BUG_ON(sym->st_size < (u64)plt || sym->st_size >= (u64)&plt[i]); in module_emit_plt_entry()
51 return sym->st_size; in module_emit_plt_entry()
76 sym->st_size = (u64)&plt[i]; in module_emit_plt_entry()
/arch/x86/include/asm/
Datomic64_32.h16 #define __ATOMIC64_DECL(sym) void atomic64_##sym(atomic64_t *, ...) argument
20 #define ATOMIC64_DECL_ONE(sym) __ATOMIC64_DECL(sym); \ argument
21 ATOMIC64_EXPORT(atomic64_##sym)
29 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8) argument
35 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8); \ argument
36 ATOMIC64_DECL_ONE(sym##_386)
/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/arm/kernel/
Dmodule.c66 Elf32_Sym *sym; in apply_relocate() local
81 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate()
82 symname = strtab + sym->st_name; in apply_relocate()
100 *(u32 *)loc += sym->st_value; in apply_relocate()
106 if (sym->st_value & 3) { in apply_relocate()
117 offset += sym->st_value - loc; in apply_relocate()
137 sym->st_value); in apply_relocate()
158 offset = *(u32 *)loc + sym->st_value - loc; in apply_relocate()
168 offset += sym->st_value; in apply_relocate()
191 if (ELF32_ST_TYPE(sym->st_info) == STT_FUNC && in apply_relocate()
[all …]
/arch/x86/kernel/
Dmachine_kexec_64.c418 Elf64_Sym *sym; in arch_kexec_apply_relocations_add() local
475 sym = (Elf64_Sym *)symtabsec->sh_offset + in arch_kexec_apply_relocations_add()
478 if (sym->st_name) in arch_kexec_apply_relocations_add()
479 name = strtab + sym->st_name; in arch_kexec_apply_relocations_add()
481 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
484 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add()
485 sym->st_size); in arch_kexec_apply_relocations_add()
487 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
492 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
497 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add()
[all …]
/arch/sparc/kernel/
Dmodule.c60 Elf_Sym *sym; in module_frob_arch_sections() local
70 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections()
74 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections()
75 if (ELF_ST_TYPE(sym[i].st_info) == STT_REGISTER) in module_frob_arch_sections()
76 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections()
90 Elf_Sym *sym; in apply_relocate_add() local
108 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
110 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()
641 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
656 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
687 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()

123