On 10/12/2015 01:39, Hollis Blanchard wrote: > > Not sure I understand. Do you mean something like this? > -trace_memory_region_ops_write(mr, addr, tmp, size); > +trace_memory_region_ops_write(mr, addr, mr->ops->write == > subpage_write, tmp, size);
There is also a mr->subpage that you can use. > Maybe this isn't the right tracepoint to begin with. I'm trying to trace > guest MMIO activity; is there a better place to intercept that? It's the right one, but the problem with tracepoints is that other people may use them for something other than what you envisioned. For them, including subpages may be the right thing. Adding a flag to the tracepoint is the middle ground. I'm okay also with the solution you proposed in the other message. Paolo