[PATCH -next 0/2] riscv: ptrace: implement PTRACE_{PEEK,POKE}USR
Yipeng Zou
zouyipeng at huawei.com
Sun Aug 21 20:01:03 PDT 2022
The PTRACE_{PEEK,POKE}USR going to get/set tracee's user register.
This patch sets add PTRACE_{PEEK,POKE}USR and compat implement to
riscv.
I notice this issuse when transplanting some app form x86 to riscv
recently.
I don't know why these two function are not implemented now, and I
found few talk about that.
The {PEEK,POKE}USR are both defined in include\uapi\linux\ptrace.h,
So I was thinking maybe these two function shouled be implemented.
Yipeng Zou (2):
riscv: ptrace: Implement PTRACE_{PEEK,POKE}USR
riscv: ptrace: Implement Compat PTRACE_{PEEK,POKE}USR
arch/riscv/include/asm/compat.h | 13 ++++
arch/riscv/kernel/ptrace.c | 111 ++++++++++++++++++++++++++++++++
2 files changed, 124 insertions(+)
--
2.17.1
More information about the linux-riscv
mailing list