mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 17:14:40 +08:00
adf8a61a94
Since now there is kretprobe_trampoline_addr() for referring the address of kretprobe trampoline code, we don't need to access kretprobe_trampoline directly. Make it harder to refer by renaming it to __kretprobe_trampoline(). Link: https://lkml.kernel.org/r/163163045446.489837.14510577516938803097.stgit@devnote2 Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
20 lines
316 B
ArmAsm
20 lines
316 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <abi/entry.h>
|
|
|
|
ENTRY(__kretprobe_trampoline)
|
|
SAVE_REGS_FTRACE
|
|
|
|
mov a0, sp /* pt_regs */
|
|
|
|
jbsr trampoline_probe_handler
|
|
|
|
/* use the result as the return-address */
|
|
mov lr, a0
|
|
|
|
RESTORE_REGS_FTRACE
|
|
rts
|
|
ENDPROC(__kretprobe_trampoline)
|