public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH -next 0/2] riscv: ptrace: implement PTRACE_{PEEK,POKE}USR
@ 2022-08-22  3:01 Yipeng Zou
  2022-08-22  3:01 ` [PATCH -next 1/2] riscv: ptrace: Implement PTRACE_{PEEK,POKE}USR Yipeng Zou
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yipeng Zou @ 2022-08-22  3:01 UTC (permalink / raw)
  To: linux-riscv, oleg, paul.walmsley, palmer, aou, guoren; +Cc: zouyipeng

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


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-08  1:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-22  3:01 [PATCH -next 0/2] riscv: ptrace: implement PTRACE_{PEEK,POKE}USR Yipeng Zou
2022-08-22  3:01 ` [PATCH -next 1/2] riscv: ptrace: Implement PTRACE_{PEEK,POKE}USR Yipeng Zou
2022-08-22  3:01 ` [PATCH -next 2/2] riscv: ptrace: Implement Compat PTRACE_{PEEK,POKE}USR Yipeng Zou
2022-08-22  8:19 ` [PATCH -next 0/2] riscv: ptrace: implement PTRACE_{PEEK,POKE}USR Andreas Schwab
2022-10-06  1:26   ` Palmer Dabbelt
2022-10-08  1:24     ` Yipeng Zou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox