A method and system for enabling tracing of a repeat instruction are
provided. A repeat instruction is executed within a processor. In
response to detecting a repeat instruction flag set during a last
execution of the repeat instruction, an interrupt is initiated within the
processor. The processor enables reading a count of executions for the
repeat instruction from a storage unit within the processor by a trace
program or external hardware during the interrupt.