csky: Add kprobes supported
This patch enable kprobes, kretprobes, ftrace interface. It utilized
software breakpoint and single step debug exceptions, instructions
simulation on csky.
We use USR_BKPT replace origin instruction, and the kprobe handler
prepares an excutable memory slot for out-of-line execution with a
copy of the original instruction being probed. Most of instructions
could be executed by single-step, but some instructions need origin
pc value to execute and we need software simulate these instructions.
Signed-off-by: NGuo Ren <guoren@linux.alibaba.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
Showing
arch/csky/include/asm/kprobes.h
0 → 100644
arch/csky/include/asm/probes.h
0 → 100644
arch/csky/kernel/probes/Makefile
0 → 100644
arch/csky/kernel/probes/ftrace.c
0 → 100644
arch/csky/kernel/probes/kprobes.c
0 → 100644
想要评论请 注册 或 登录