rethook: x86: Add rethook x86 implementation
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 15 Mar 2022 14:01:02 +0000 (23:01 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 18 Mar 2022 03:16:35 +0000 (20:16 -0700)
commit75caf33eda242e2f34f61e475d666359749ae5ff
tree8167fd219798741f011e7950a1205435f8f5c580
parent54ecbe6f1ed5138c895bdff55608cf502755b20e
rethook: x86: Add rethook x86 implementation

Add rethook for x86 implementation. Most of the code has been copied from
kretprobes on x86.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Tested-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/164735286243.1084943.7477055110527046644.stgit@devnote2
arch/x86/Kconfig
arch/x86/include/asm/unwind.h
arch/x86/kernel/Makefile
arch/x86/kernel/kprobes/common.h
arch/x86/kernel/rethook.c [new file with mode: 0644]