Run-time instrumentation indirect sampling by instruction operation code
First Claim
1. A computer program product for implementing run-time instrumentation indirect sampling by instruction operation code, 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;
initializing a run-time-instrumentation control based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction establishing a sampling mode and a sample-point instruction (SPI) control, wherein the SPI control is a field in a load control block loadable as an operand of the LRIC instruction, and the SPI control enables indirect sampling by instruction operation code as an additional sampling mode in combination with one or more of directed sampling and interval-based sampling;
reading sample-point instruction operation codes from a sample-point instruction array, the sample-point instruction array comprising a part of a register in a processor;
comparing, by the processor, the sample-point instruction operation codes to an operation code of an instruction from an instruction stream executing on the processor, the operation code defining an operation to be executed by the processor;
recognizing a sample point upon execution of the instruction, by the processor, with the operation code matching one of the sample-point instruction operation codes, wherein run-time instrumentation information is obtained from the sample point; and
storing the run-time instrumentation information in a run-time instrumentation program buffer as a reporting group.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the invention relate to implementing run-time instrumentation indirect sampling by instruction operation code. An aspect of the invention includes reading sample-point instruction operation codes from a sample-point instruction array, and comparing, by a processor, the sample-point instruction operation codes to an operation code of an instruction from an instruction stream executing on the processor. A sample point is recognized upon execution of the instruction with the operation code matching one of the sample-point instruction operation codes. The run-time instrumentation information is obtained from the sample point. The run-time instrumentation information is stored in a run-time instrumentation program buffer as a reporting group.
-
Citations
11 Claims
-
1. A computer program product for implementing run-time instrumentation indirect sampling by instruction operation code, 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; initializing a run-time-instrumentation control based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction establishing a sampling mode and a sample-point instruction (SPI) control, wherein the SPI control is a field in a load control block loadable as an operand of the LRIC instruction, and the SPI control enables indirect sampling by instruction operation code as an additional sampling mode in combination with one or more of directed sampling and interval-based sampling; reading sample-point instruction operation codes from a sample-point instruction array, the sample-point instruction array comprising a part of a register in a processor; comparing, by the processor, the sample-point instruction operation codes to an operation code of an instruction from an instruction stream executing on the processor, the operation code defining an operation to be executed by the processor; recognizing a sample point upon execution of the instruction, by the processor, with the operation code matching one of the sample-point instruction operation codes, wherein run-time instrumentation information is obtained from the sample point; and storing the run-time instrumentation information in a run-time instrumentation program buffer as a reporting group. - View Dependent Claims (2, 3, 4, 5, 6)
-
7. A system for implementing run-time instrumentation indirect sampling by instruction operation code, the system comprising:
-
a memory; and a processor comprising a run-time instrumentation module and a register comprising a sample-point instruction array, the processor configured to perform a method comprising; initializing a run-time-instrumentation control of the run-time instrumentation module based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction establishing a sampling mode and a sample-point instruction (SPI) control, wherein the SPI control is a field in a load control block loadable as an operand of the LRIC instruction, and the SPI control enables indirect sampling by instruction operation code as an additional sampling mode in combination with one or more of directed sampling and interval-based sampling; reading sample-point instruction operation codes from the sample-point instruction array; comparing, by the processor, the sample-point instruction operation codes to an operation code of an instruction from an instruction stream executing on the processor, the operation code defining an operation to be executed by the processor; recognizing a sample point upon execution of the instruction, by the processor, with the operation code matching one of the sample-point instruction operation codes, wherein run-time instrumentation information is obtained from the sample point; and storing the run-time instrumentation information in a run-time instrumentation program buffer in the memory as a reporting group. - View Dependent Claims (8, 9, 10, 11)
-
Specification