A method and system for reverting a process in an in-line instrumented
state to an uninstrumented state. In one embodiment, the present
invention modifies selected text segment portions from the process to be
uninstrumented. The present embodiment then unmaps instrumented code
space such that the instrumented code space is inaccessible to the
process. In this embodiment, provided an instruction pointer resides in
the instrumented code space, the present invention updates the
instruction pointer to uninstrumented code space. The present embodiment
also executes the process and, provided the process generates a fault by
seeking to access an address in instrumented code space, provides a
corresponding address in uninstrumented code space. In one embodiment,
the present invention then continues execution at the address in
instrumented code space.