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

Peter Zijlstra <[email protected]>
Newsgroups org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-perf-users,org.kernel.vger.linux-trace-kernel
Message-ID <[email protected]>
On Wed, Aug 05, 2026 at 03:34:04PM -0400, Steven Rostedt wrote:
> On Mon, 3 Aug 2026 09:03:56 +0200
> Peter Zijlstra <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.