LoongArch architecture development
 help / color / mirror / Atom feed
* [PATCH 0/3] LoongArch: ptrace: Fix some watchpoint function
@ 2024-05-29  1:30 Hui Li
  2024-05-29  1:30 ` [PATCH 1/3] LoongArch: ptrace: Fix watchpoint setting error Hui Li
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Hui Li @ 2024-05-29  1:30 UTC (permalink / raw)
  To: Huacai Chen; +Cc: loongarch, loongson-kernel

LoongArch defines hardware watchpoint functions for fetch and load/store
operations. After the software configures the watchpoints for fetch and
load/store, the processor hardware will monitor the access addresses of
the fetch and load/store operations and trigger a watchpoint exception
when the watchpoint setting conditions are met.

Fix some hardware watchpoint issues on user-space and kernel interface.

All changes are made according to the LoongArch Reference Manual:
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#control-and-status-registers-related-to-watchpoints

Testing for this series can use this gdb patch:
https://sourceware.org/pipermail/gdb-patches/2024-May/209371.html


Hui Li (3):
  LoongArch: ptrace: Fix watchpoint setting error
  LoongArch: Trigger user-space watchpoints correctly
  LoongArch: Fix multiple hardware watchpoint issues

 arch/loongarch/include/asm/hw_breakpoint.h |  2 +-
 arch/loongarch/kernel/hw_breakpoint.c      | 82 +++++++++++-----------
 arch/loongarch/kernel/ptrace.c             | 48 +++++++------
 3 files changed, 71 insertions(+), 61 deletions(-)

-- 
2.38.1


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

end of thread, other threads:[~2024-06-07  8:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29  1:30 [PATCH 0/3] LoongArch: ptrace: Fix some watchpoint function Hui Li
2024-05-29  1:30 ` [PATCH 1/3] LoongArch: ptrace: Fix watchpoint setting error Hui Li
2024-05-29  9:56   ` Jinyang He
2024-06-07  8:24     ` Hui Li
2024-05-29  1:30 ` [PATCH 2/3] LoongArch: Trigger user-space watchpoints correctly Hui Li
2024-05-29 11:33   ` Jinyang He
2024-06-07  8:27     ` Hui Li
2024-05-29  1:30 ` [PATCH 3/3] LoongArch: Fix multiple hardware watchpoint issues Hui Li
2024-05-29  1:54 ` [PATCH 0/3] LoongArch: ptrace: Fix some watchpoint function Huacai Chen

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