--- v3
+++ v5
@@ -1,25 +1,22 @@
Hi,
-Here is the 3rd version of the series for adding new wprobe (watch probe)
+Here is the 5th version of the series for adding new wprobe (watch probe)
which provides memory access tracing event. Moreover, this can be used
via event trigger. Thus it can trace memory access on a dynamically
allocated objects too.
The previous version is here:
-https://lore.kernel.org/all/175708427997.64001.11661389635019507808.stgit@devnote2/
+https://lore.kernel.org/all/175785897434.234168.6798590787777427098.stgit@devnote2/
-In this version, I fixed to enclose the register-API dependent code in
-trace_probe.c with CONFIG_HAVE_FUNCTION_ARG_ACCESS_API, since
-CONFIG_WPROBE_EVENTS does not depend on that config but enables common
-CONFIG_PROBE_EVENTS[1/7]. And fixed event_trigger_data memory leak bug
-and add FIELD option to clear_wprobe trigger[4/7]. Also, fixed a syntax
-test error[6/7] and add a new test case for event trigger [7/7].
+This version updates the document about wprobe according to Randy's comment
+and modify config for test cases.
+This still include Jinchao's x86 HWBP patches[1][2] as [2/8][3/8].
-I'm using Jinchao's arch_reinstall_hw_breakpoint patch[1], but since Peter
-pointed that is almost a copy of arch_install_hw_breakpoint, it will be
-updated later.
+[1] https://lore.kernel.org/all/20250912101145.465708-2-wangjinchao600@gmail.com/
+[2] https://lore.kernel.org/all/20250912101145.465708-3-wangjinchao600@gmail.com/
-[1] https://lore.kernel.org/all/20250904002126.1514566-6-wangjinchao600@gmail.com/
+Usage
+-----
The basic usage of this wprobe is similar to other probes;
@@ -110,8 +107,9 @@
---
-Jinchao Wang (1):
- x86/HWBP: introduce arch_reinstall_hw_breakpoint() for atomic context
+Jinchao Wang (2):
+ x86/hw_breakpoint: Unify breakpoint install/uninstall
+ x86/hw_breakpoint: Add arch_reinstall_hw_breakpoint
Masami Hiramatsu (Google) (6):
tracing: wprobe: Add watchpoint probe event based on hardware breakpoint
@@ -123,25 +121,26 @@
Documentation/trace/index.rst | 1
- Documentation/trace/wprobetrace.rst | 157 +++
+ Documentation/trace/wprobetrace.rst | 155 +++
arch/Kconfig | 10
arch/x86/Kconfig | 1
- arch/x86/include/asm/hw_breakpoint.h | 1
- arch/x86/kernel/hw_breakpoint.c | 50 +
+ arch/x86/include/asm/hw_breakpoint.h | 8
+ arch/x86/kernel/hw_breakpoint.c | 148 ++-
include/linux/hw_breakpoint.h | 6
include/linux/trace_events.h | 3
- kernel/events/hw_breakpoint.c | 36 +
- kernel/trace/Kconfig | 24
+ kernel/events/hw_breakpoint.c | 37 +
+ kernel/trace/Kconfig | 23
kernel/trace/Makefile | 1
kernel/trace/trace.c | 9
kernel/trace/trace.h | 5
kernel/trace/trace_probe.c | 22
kernel/trace/trace_probe.h | 8
kernel/trace/trace_wprobe.c | 1115 ++++++++++++++++++++
+ tools/testing/selftests/ftrace/config | 2
.../ftrace/test.d/dynevent/add_remove_wprobe.tc | 68 +
.../test.d/dynevent/wprobes_syntax_errors.tc | 20
.../ftrace/test.d/trigger/trigger-wprobe.tc | 48 +
- 19 files changed, 1582 insertions(+), 3 deletions(-)
+ 20 files changed, 1625 insertions(+), 65 deletions(-)
create mode 100644 Documentation/trace/wprobetrace.rst
create mode 100644 kernel/trace/trace_wprobe.c
create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/add_remove_wprobe.tc