Home
last modified time | relevance | path

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

123

/arch/arm64/include/asm/
Dkvm_asm.h90 #define DECLARE_KVM_VHE_SYM(sym) extern char sym[] argument
91 #define DECLARE_KVM_NVHE_SYM(sym) extern char kvm_nvhe_sym(sym)[] argument
97 #define DECLARE_KVM_HYP_SYM(sym) \ argument
98 DECLARE_KVM_VHE_SYM(sym); \
99 DECLARE_KVM_NVHE_SYM(sym)
101 #define DECLARE_KVM_VHE_PER_CPU(type, sym) \ argument
102 DECLARE_PER_CPU(type, sym)
103 #define DECLARE_KVM_NVHE_PER_CPU(type, sym) \ argument
104 DECLARE_PER_CPU(type, kvm_nvhe_sym(sym))
106 #define DECLARE_KVM_HYP_PER_CPU(type, sym) \ argument
[all …]
Dhyp_image.h18 #define kvm_nvhe_sym(sym) __kvm_nvhe_##sym argument
20 #define kvm_nvhe_sym(sym) sym argument
61 #define KVM_NVHE_ALIAS(sym) kvm_nvhe_sym(sym) = sym; argument
/arch/powerpc/include/asm/
Dftrace.h78 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument
81 return !strcmp(sym + 1, name) || in arch_syscall_match_sym_name()
82 (!strncmp(sym, ".__se_sys", 9) && !strcmp(sym + 6, name)) || in arch_syscall_match_sym_name()
83 (!strncmp(sym, ".ppc_", 5) && !strcmp(sym + 5, name + 4)) || in arch_syscall_match_sym_name()
84 (!strncmp(sym, ".ppc32_", 7) && !strcmp(sym + 7, name + 4)) || in arch_syscall_match_sym_name()
85 (!strncmp(sym, ".ppc64_", 7) && !strcmp(sym + 7, name + 4)); in arch_syscall_match_sym_name()
88 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument
90 return !strcmp(sym, name) || in arch_syscall_match_sym_name()
91 (!strncmp(sym, "__se_sys", 8) && !strcmp(sym + 5, name)) || in arch_syscall_match_sym_name()
92 (!strncmp(sym, "ppc_", 4) && !strcmp(sym + 4, name + 4)) || in arch_syscall_match_sym_name()
[all …]
/arch/arm/include/asm/
Dftrace.h60 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument
63 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name()
64 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name()
65 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name()
66 sym = "sys_statfs64"; in arch_syscall_match_sym_name()
67 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name()
68 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name()
69 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name()
70 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name()
73 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
Dmodule.h52 static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym) in kallsyms_symbol_value() argument
54 if (ELF_ST_TYPE(sym->st_info) == STT_FUNC) in kallsyms_symbol_value()
55 return sym->st_value & ~1; in kallsyms_symbol_value()
57 return sym->st_value; in kallsyms_symbol_value()
/arch/x86/include/asm/
Dftrace.h84 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument
90 return !strcmp(sym + 3, name + 3) || in arch_syscall_match_sym_name()
91 (!strncmp(sym, "__x64_", 6) && !strcmp(sym + 9, name + 3)) || in arch_syscall_match_sym_name()
92 (!strncmp(sym, "__ia32_", 7) && !strcmp(sym + 10, name + 3)) || in arch_syscall_match_sym_name()
93 (!strncmp(sym, "__do_sys", 8) && !strcmp(sym + 8, name + 3)); in arch_syscall_match_sym_name()
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/x86/tools/
Drelocs.c263 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument
267 if (sym->st_name) { in sym_name()
268 name = sym_strtab + sym->st_name; in sym_name()
271 name = sec_name(sym->st_shndx); in sym_name()
284 Elf_Sym *sym; in sym_lookup() local
293 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
294 if (!sym->st_name) in sym_lookup()
296 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
297 return sym; in sym_lookup()
494 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local
[all …]
/arch/x86/entry/
Dsyscall_x32.c10 #define __SYSCALL(nr, sym) extern long __x64_##sym(const struct pt_regs *); argument
14 #define __SYSCALL(nr, sym) __x64_##sym, argument
Dsyscall_64.c10 #define __SYSCALL(nr, sym) extern long __x64_##sym(const struct pt_regs *); argument
14 #define __SYSCALL(nr, sym) __x64_##sym, argument
Dsyscall_32.c16 #define __SYSCALL(nr, sym) extern long __ia32_##sym(const struct pt_regs *); argument
21 #define __SYSCALL(nr, sym) __ia32_##sym, argument
/arch/x86/um/
Dsys_call_table_32.c30 #define __SYSCALL(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, … argument
34 #define __SYSCALL(nr, sym) sym, argument
Dsys_call_table_64.c38 #define __SYSCALL(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, … argument
42 #define __SYSCALL(nr, sym) sym, argument
/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/csky/kernel/
Dmodule.c54 Elf32_Sym *sym; in apply_relocate_add() local
62 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
68 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add()
72 *location = rel[i].r_addend + sym->st_value in apply_relocate_add()
83 ((rel[i].r_addend + sym->st_value) >> 16); in apply_relocate_add()
88 ((rel[i].r_addend + sym->st_value) & 0xffff); in apply_relocate_add()
/arch/hexagon/kernel/
Dmodule.c72 Elf32_Sym *sym; in apply_relocate_add() local
87 sym = sym_base + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add()
93 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
97 sym->st_name ? in apply_relocate_add()
98 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
110 sym->st_name ? in apply_relocate_add()
111 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
/arch/arm64/kernel/
Dsys.c52 #define __SYSCALL(nr, sym) asmlinkage long __arm64_##sym(const struct pt_regs *); argument
56 #define __SYSCALL(nr, sym) [nr] = __arm64_##sym, argument
/arch/arm/kernel/
Dmodule.c83 Elf32_Sym *sym; in apply_relocate() local
98 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate()
99 symname = strtab + sym->st_name; in apply_relocate()
117 *(u32 *)loc += sym->st_value; in apply_relocate()
123 if (sym->st_value & 3) { in apply_relocate()
134 offset += sym->st_value - loc; in apply_relocate()
154 sym->st_value); in apply_relocate()
176 offset += sym->st_value - loc; in apply_relocate()
181 sym->st_value); in apply_relocate()
189 *(u32 *)loc += sym->st_value - loc; in apply_relocate()
[all …]
/arch/x86/kernel/
Dmachine_kexec_64.c401 Elf64_Sym *sym; in arch_kexec_apply_relocations_add() local
442 sym = (void *)pi->ehdr + symtabsec->sh_offset; in arch_kexec_apply_relocations_add()
443 sym += ELF64_R_SYM(rel[i].r_info); in arch_kexec_apply_relocations_add()
445 if (sym->st_name) in arch_kexec_apply_relocations_add()
446 name = strtab + sym->st_name; in arch_kexec_apply_relocations_add()
448 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add()
451 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add()
452 sym->st_size); in arch_kexec_apply_relocations_add()
454 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add()
459 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add()
[all …]
/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/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/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/s390/include/asm/
Dftrace.h59 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument
67 return !strcmp(sym + 7, name) || !strcmp(sym + 8, name); in arch_syscall_match_sym_name()
/arch/parisc/kernel/
Dmodule.c64 me->name, strtab + sym->st_name, (unsigned long)val, bits); \
526 Elf32_Sym *sym; in apply_relocate_add() local
545 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
547 if (!sym->st_value) { in apply_relocate_add()
549 me->name, strtab + sym->st_name); in apply_relocate_add()
555 val = sym->st_value; in apply_relocate_add()
561 strtab + sym->st_name, in apply_relocate_add()
625 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
640 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
671 Elf64_Sym *sym; in apply_relocate_add() local
[all …]
/arch/xtensa/kernel/
Dmodule.c55 Elf32_Sym *sym; in apply_relocate_add() local
65 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add()
67 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
91 strtab + sym->st_name); in apply_relocate_add()
115 strtab + sym->st_name); in apply_relocate_add()

123