x86,rethook,kprobes: Replace kretprobe with rethook on x86
Replaces the kretprobe code with rethook on x86. With this patch, kretprobe on x86 uses the rethook instead of kretprobe specific trampoline code. Signed-off-by:Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Tested-by:
Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/bpf/164826163692.2455864.13745421016848209527.stgit@devnote2
Showing
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
- arch/x86/include/asm/unwind.h 11 additions, 12 deletionsarch/x86/include/asm/unwind.h
- arch/x86/kernel/Makefile 1 addition, 0 deletionsarch/x86/kernel/Makefile
- arch/x86/kernel/kprobes/common.h 1 addition, 0 deletionsarch/x86/kernel/kprobes/common.h
- arch/x86/kernel/kprobes/core.c 0 additions, 107 deletionsarch/x86/kernel/kprobes/core.c
- arch/x86/kernel/rethook.c 125 additions, 0 deletionsarch/x86/kernel/rethook.c
- arch/x86/kernel/unwind_orc.c 5 additions, 5 deletionsarch/x86/kernel/unwind_orc.c
Please register or sign in to comment