This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [RFC] Systemtap translator support for hardware breakpoints on
roland wrote:
> [...]
> What I think you'd really want is:
> probe kernel.data($variable).write { ... }
> That means "variable" gets looked up by $ rules [...]
This is sensible, but will require a parser-level language change.
> [...]
> If you wanted:
> probe kernel.data($c).write
> i.e.:
> probe kernel.data(0x12c).write.length(4)
> you can't get it. To start with, the translator says .length(8) is your
> only option, you can't have it. Then it says 0x12c is not aligned to 8,
> you can't have it. [...]
The translator need not veto such a script request. It should be able
to fulfill it by rounding up/aligning down, then filtering the
resulting callbacks.
> [...]
> probe kernel.data($c).change { other_stuff() }
> [...]
Neat idea.
- FChE