/linux/arch/x86/kernel/ |
H A D | static_call.c | 114 static void __static_call_validate(u8 *insn, bool tail, bool tramp) in __static_call_validate() argument 118 if (tramp && memcmp(insn+5, tramp_ud, 3)) { in __static_call_validate() 157 void arch_static_call_transform(void *site, void *tramp, void *func, bool tail) in arch_static_call_transform() argument 161 if (tramp) { in arch_static_call_transform() 162 __static_call_validate(tramp, true, true); in arch_static_call_transform() 163 __static_call_transform(tramp, __sc_insn(!func, true), func, false); in arch_static_call_transform() 175 noinstr void __static_call_update_early(void *tramp, void *func) in __static_call_update_early() argument 179 __text_gen_insn(tramp, JMP32_INSN_OPCODE, tramp, func, JMP32_INSN_SIZE); in __static_call_update_early() 195 bool __static_call_fixup(void *tramp, u8 op, void *dest) in __static_call_fixup() argument 197 unsigned long addr = (unsigned long)tramp; in __static_call_fixup() [all …]
|
H A D | uprobes.c | 362 unsigned long tramp = uprobe_get_trampoline_vaddr(); in trampoline_check_ip() local 364 return tramp + (uretprobe_syscall_check - uretprobe_trampoline_entry); in trampoline_check_ip()
|
/linux/include/linux/ |
H A D | static_call.h | 144 extern void arch_static_call_transform(void *site, void *tramp, void *func, bool tail); 177 s32 tramp; member 181 extern void __static_call_update(struct static_call_key *key, void *tramp, void *func); 258 void __static_call_update(struct static_call_key *key, void *tramp, void *func) in __static_call_update() argument 262 arch_static_call_transform(NULL, tramp, func, false); in __static_call_update() 337 void __static_call_update(struct static_call_key *key, void *tramp, void *func) in __static_call_update() argument
|
/linux/arch/loongarch/kernel/ |
H A D | module-sections.c | 108 Elf_Shdr *got_sec, *plt_sec, *plt_idx_sec, *tramp = NULL; in module_frob_arch_sections() local 121 tramp = sechdrs + i; in module_frob_arch_sections() 177 if (tramp) { in module_frob_arch_sections() 178 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections() 179 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 180 tramp->sh_addralign = __alignof__(struct plt_entry); in module_frob_arch_sections() 181 tramp->sh_size = NR_FTRACE_PLTS * sizeof(struct plt_entry); in module_frob_arch_sections()
|
/linux/arch/microblaze/kernel/ |
H A D | signal.c | 48 unsigned long tramp[2]; /* signal trampoline */ member 54 unsigned long tramp[2]; /* signal trampoline */ member 184 frame->tramp + 0); in setup_rt_frame() 186 err |= __put_user(0xb9cc0008, frame->tramp + 1); in setup_rt_frame() 190 regs->r15 = ((unsigned long)frame->tramp)-8; in setup_rt_frame() 192 address = ((unsigned long)frame->tramp); in setup_rt_frame() 200 address += ((unsigned long)frame->tramp) & ~PAGE_MASK; in setup_rt_frame()
|
/linux/arch/arm64/kernel/ |
H A D | module-plts.c | 286 Elf_Shdr *pltsec, *tramp = NULL; in module_frob_arch_sections() local 300 tramp = sechdrs + i; in module_frob_arch_sections() 359 if (tramp) { in module_frob_arch_sections() 360 tramp->sh_type = SHT_NOBITS; in module_frob_arch_sections() 361 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections() 362 tramp->sh_addralign = __alignof__(struct plt_entry); in module_frob_arch_sections() 363 tramp->sh_size = NR_FTRACE_PLTS * sizeof(struct plt_entry); in module_frob_arch_sections()
|
H A D | vmlinux.lds.S | 118 *(.entry.tramp.text) \ 121 *(.entry.tramp.rodata)
|
/linux/kernel/ |
H A D | static_call_inline.c | 134 void __static_call_update(struct static_call_key *key, void *tramp, void *func) in __static_call_update() argument 147 arch_static_call_transform(NULL, tramp, func, false); in __static_call_update() 354 unsigned long tramp; in tramp_key_lookup() local 356 tramp = (long)tramp_key->tramp + (long)&tramp_key->tramp; in tramp_key_lookup() 357 if (tramp == addr) in tramp_key_lookup()
|
/linux/arch/powerpc/kernel/ |
H A D | signal_64.c | 61 unsigned int tramp[TRAMP_SIZE]; member 624 static long setup_trampoline(unsigned int syscall, unsigned int __user *tramp) in setup_trampoline() argument 630 err |= __put_user(PPC_RAW_BCTRL(), &tramp[0]); in setup_trampoline() 631 err |= __put_user(PPC_RAW_ADDI(_R1, _R1, __SIGNAL_FRAMESIZE), &tramp[1]); in setup_trampoline() 633 err |= __put_user(PPC_RAW_LI(_R0, syscall), &tramp[2]); in setup_trampoline() 634 err |= __put_user(PPC_RAW_SC(), &tramp[3]); in setup_trampoline() 638 err |= __put_user(0, &tramp[i]); in setup_trampoline() 641 flush_icache_range((unsigned long) &tramp[0], in setup_trampoline() 642 (unsigned long) &tramp[TRAMP_SIZE]); in setup_trampoline() 927 err |= setup_trampoline(__NR_rt_sigreturn, &frame->tramp[0]); in handle_rt_signal64() [all …]
|
H A D | signal_32.c | 743 unsigned long tramp; in handle_rt_signal32() local 786 tramp = VDSO32_SYMBOL(tsk->mm->context.vdso, sigtramp_rt32); in handle_rt_signal32() 788 tramp = (unsigned long)mctx->mc_pad; in handle_rt_signal32() 800 regs->link = tramp; in handle_rt_signal32() 843 unsigned long tramp; in handle_signal32() local 882 tramp = VDSO32_SYMBOL(tsk->mm->context.vdso, sigtramp32); in handle_signal32() 884 tramp = (unsigned long)mctx->mc_pad; in handle_signal32() 891 regs->link = tramp; in handle_signal32()
|
/linux/arch/x86/include/asm/ |
H A D | static_call.h | 66 extern bool __static_call_fixup(void *tramp, u8 op, void *dest); 68 extern void __static_call_update_early(void *tramp, void *func);
|
/linux/arch/hexagon/kernel/ |
H A D | signal.c | 22 unsigned long tramp[2]; member 114 err |= __put_user(0x7800d166, &frame->tramp[0]); in setup_rt_frame() 115 err |= __put_user(0x5400c004, &frame->tramp[1]); in setup_rt_frame()
|
/linux/arch/parisc/include/asm/ |
H A D | rt_sigframe.h | 6 unsigned int tramp[2]; /* holds original return address */ member
|
/linux/arch/parisc/kernel/ |
H A D | signal32.h | 40 unsigned int tramp[2]; /* holds original return address */ member
|
/linux/tools/testing/selftests/bpf/test_kmods/ |
H A D | bpf_testmod.c | 1429 void **tramp; in bpf_testmod_init() local 1460 tramp = (void **)&__bpf_testmod_ops.tramp_1; in bpf_testmod_init() 1461 while (tramp <= (void **)&__bpf_testmod_ops.tramp_40) in bpf_testmod_init() 1462 *tramp++ = bpf_testmod_tramp; in bpf_testmod_init()
|