Re: [PATCH v11 04/11] tracing: wprobe: Add watchpoint probe event based on hardware breakpoint

From: Peter Zijlstra

Date: Wed Aug 05 2026 - 15:39:43 EST


On Wed, Aug 05, 2026 at 03:34:04PM -0400, Steven Rostedt wrote:
> On Mon, 3 Aug 2026 09:03:56 +0200
> Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> > > The new syntax is;
> > >
> > > w[:[GROUP/]EVENT] [r|w|rw]@[ADDR|SYM][:SIZE] [FETCH_ARGs]
> > >
> > > User also can use $addr to fetch the accessed address and $value to fetch
> > > the accessed memory value (shorthand for '+0($addr)'). No other variables
> > > are supported.
> >
> > This seems limited to kernel addresses only? Should not also userspace
> > addresses be supported?
>
> Hmm, how would that work? The address is global for all tasks, so if you
> add a user space address, what task would that be for? The one writing the
> probe?

Schedule the watchpoint along with the task of course. Given there is
breakpoint/perf integration this should be trivial.