Patent ID: 9158660
Filing Date: 2015-10-13
Classification: G06F

Abstract:
1. A computer program product for enabling and disabling execution of a run-time instrumentation facility on a processor, the computer program product comprising: a non-transitory storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: fetching an instruction of a currently executing thread in a multi-threaded environment for execution by the processor in a first state, the instruction one of a run-time instrumentation facility off (RIOFF) instruction and a run-time instrumentation facility on (RION) instruction, the fetching by a processor; based on determining, by the processor, that the run-time instrumentation facility permits execution of the instruction in the first state and that controls associated with the run-time instrumentation facility are valid, executing the instruction, the executing comprising any one of: wherein the PSW is associated with the executing thread, and a state of the run-time instrumentation facility for the executing thread is maintained in the PSW across dispatches of the executing thread.