instrumented.h: Introduce read-write instrumentation hooks