riscv: Add uprobes supported
This patch adds support for uprobes on riscv architecture. Just like kprobe, it support single-step and simulate instructions. Signed-off-by:Guo Ren <guoren@linux.alibaba.com> Reviewed-by:
Pekka Enberg <penberg@kernel.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by:
Palmer Dabbelt <palmerdabbelt@google.com>
Showing
- arch/riscv/Kconfig 3 additions, 0 deletionsarch/riscv/Kconfig
- arch/riscv/include/asm/processor.h 1 addition, 0 deletionsarch/riscv/include/asm/processor.h
- arch/riscv/include/asm/thread_info.h 3 additions, 1 deletionarch/riscv/include/asm/thread_info.h
- arch/riscv/include/asm/uprobes.h 40 additions, 0 deletionsarch/riscv/include/asm/uprobes.h
- arch/riscv/kernel/probes/Makefile 1 addition, 0 deletionsarch/riscv/kernel/probes/Makefile
- arch/riscv/kernel/probes/uprobes.c 186 additions, 0 deletionsarch/riscv/kernel/probes/uprobes.c
- arch/riscv/kernel/signal.c 3 additions, 0 deletionsarch/riscv/kernel/signal.c
- arch/riscv/kernel/traps.c 10 additions, 0 deletionsarch/riscv/kernel/traps.c
- arch/riscv/mm/fault.c 6 additions, 0 deletionsarch/riscv/mm/fault.c
arch/riscv/include/asm/uprobes.h
0 → 100644
arch/riscv/kernel/probes/uprobes.c
0 → 100644
Please register or sign in to comment