A method, apparatus, and computer instructions for generating coverage
data during execution of code in the data processing system. During
execution of the code, a determination is made as to whether an access
indicator is associated with an instruction in response to executing the
instruction in the code by a processor in the data processing system. If
the access indicator is associated with the instruction, a state of the
access indicator is changed, by the processor, when the instruction is
executed. In this manner, coverage data for executed instructions is
generated by the processor during execution of the code.