ARM: rethook: Add rethook arm implementation
Add rethook arm implementation. Most of the code has been copied from kretprobes on arm. Since the arm's ftrace implementation is a bit special, this needs a special care using from fprobe. 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/164735289643.1084943.15184590256680485720.stgit@devnote2
Showing
- arch/arm/Kconfig 1 addition, 0 deletionsarch/arm/Kconfig
- arch/arm/include/asm/stacktrace.h 2 additions, 2 deletionsarch/arm/include/asm/stacktrace.h
- arch/arm/kernel/stacktrace.c 6 additions, 0 deletionsarch/arm/kernel/stacktrace.c
- arch/arm/probes/Makefile 1 addition, 0 deletionsarch/arm/probes/Makefile
- arch/arm/probes/rethook.c 103 additions, 0 deletionsarch/arm/probes/rethook.c
arch/arm/probes/rethook.c
0 → 100644