×

Controlling operation of a run-time instrumentation facility

  • US 9,158,660 B2
  • Filed: 03/16/2012
  • Issued: 10/13/2015
  • Est. Priority Date: 03/16/2012
  • Status: Active Grant
First Claim
Patent Images

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;

    disabling the run-time instrumentation facility based on the instruction being the RIOFF instruction, the disabling including updating a run-time instrumentation facility state bit in a program status word (PSW) of the processor to indicate that run-time instrumentation data should not be captured by the processor; and

    enabling the run-time instrumentation facility based on the instruction being the RION instruction, the enabling including updating the run-time instrumentation facility state bit in the PSW to indicate that run-time instrumentation data should be captured by the processor,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.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×