arm64: rethook: Add arm64 rethook implementation
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 15 Mar 2022 14:01:13 +0000 (23:01 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 18 Mar 2022 03:16:41 +0000 (20:16 -0700)
commit83acdce6894908337ca82973149d9709d28204d7
tree634fb6ec687637194ea0e16135cae667f334f14f
parent75caf33eda242e2f34f61e475d666359749ae5ff
arm64: rethook: Add arm64 rethook implementation

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

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/164735287344.1084943.9787335632585653418.stgit@devnote2
arch/arm64/Kconfig
arch/arm64/include/asm/stacktrace.h
arch/arm64/kernel/probes/Makefile
arch/arm64/kernel/probes/rethook.c [new file with mode: 0644]
arch/arm64/kernel/probes/rethook_trampoline.S [new file with mode: 0644]
arch/arm64/kernel/stacktrace.c