Run-time-instrumentation controls emit instruction
First Claim
1. A computer implemented method for executing a run-time-instrumentation controls emit (RIEMIT) instruction, the RIEMIT instruction executable in either a supervisor state or a lesser-privileged state, the method comprising:
- configuring a processor to capture run-time-instrumentation information of a stream of instructions in a computer program, the configuring including accessing a program status word (PSW) associated with the computer program to update a bit in the PSW to indicate that run-time instrumentation data should be captured by the processor, the stream of instructions comprising the RIEMIT instruction, and the computer program is one of a plurality of computer programs for execution by the processor each having an associated PSW;
fetching the RIEMIT instruction;
executing, by the processor, the RIEMIT instruction, the executing comprising;
determining that current run-time-instrumentation controls are configured to permit capturing of run-time-instrumentation information for storing run-time-instrumentation records in a run-time-instrumentation program buffer; and
storing an RIEMIT instruction specified value as an emit record of a reporting group in the run-time-instrumentation program buffer.
1 Assignment
0 Petitions
Accused Products
Abstract
Aspects relate to executing a run-time-instrumentation EMIT (RIEMIT) instruction. A processor is configured to capture the run-time-instrumentation information of a stream of instructions. The RIEMIT instruction is fetched and executed. It is determined if the current run-time-instrumentation controls are configured to permit capturing and storing of run-time-instrumentation information in a run-time-instrumentation program buffer. If the controls are configured to store run-time-instrumentation instructions, then a RIEMIT instruction specified value is stored as an emit record of a reporting group in the run-time-instrumentation program buffer.
133 Citations
7 Claims
-
1. A computer implemented method for executing a run-time-instrumentation controls emit (RIEMIT) instruction, the RIEMIT instruction executable in either a supervisor state or a lesser-privileged state, the method comprising:
-
configuring a processor to capture run-time-instrumentation information of a stream of instructions in a computer program, the configuring including accessing a program status word (PSW) associated with the computer program to update a bit in the PSW to indicate that run-time instrumentation data should be captured by the processor, the stream of instructions comprising the RIEMIT instruction, and the computer program is one of a plurality of computer programs for execution by the processor each having an associated PSW; fetching the RIEMIT instruction; executing, by the processor, the RIEMIT instruction, the executing comprising; determining that current run-time-instrumentation controls are configured to permit capturing of run-time-instrumentation information for storing run-time-instrumentation records in a run-time-instrumentation program buffer; and storing an RIEMIT instruction specified value as an emit record of a reporting group in the run-time-instrumentation program buffer. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
Specification