Run-time-instrumentation controls emit instruction
First Claim
1. A computer program product 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 computer program product comprising:
- a non-transitory tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising;
configuring a processor to capture run-time-instrumentation information of a stream of instructions in a computer program, the configuring including accessing 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.
2 Assignments
0 Petitions
Accused Products
Abstract
Aspects of the invention 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.
-
Citations
14 Claims
-
1. A computer program product 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 computer program product comprising:
-
a non-transitory tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising; configuring a processor to capture run-time-instrumentation information of a stream of instructions in a computer program, the configuring including accessing 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)
-
-
8. A computer system 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 system comprising:
-
a memory; and a computer processor comprising a run-time-instrumentation module, the run-time-instrumentation module configured to perform a method comprising; configuring the computer 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 computer 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 the RIEMIT instruction, the executing comprising; determining 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 (9, 10, 11, 12, 13, 14)
-
Specification