RISC-V: Implement ptrace regs and stack API
authorPatrick Stählin <me@packi.ch>
Thu, 17 Dec 2020 16:01:37 +0000 (16:01 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 14 Jan 2021 23:09:01 +0000 (15:09 -0800)
commitdcdc7a53a890218a16cd6e2a69e526bd96eb9399
tree8a99135a029e7ec405580149123919f2af81dfdf
parent46ad48e8a28da7cc37a16c7e7fc632ecf906e4bf
RISC-V: Implement ptrace regs and stack API

Needed for kprobes support. Copied and adapted from arm64 code.

Guo Ren fixup pt_regs type for linux-5.8-rc1.

Signed-off-by: Patrick Stählin <me@packi.ch>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Reviewed-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
arch/riscv/include/asm/ptrace.h
arch/riscv/kernel/ptrace.c