Run-time instrumentation indirect sampling by instruction operation code
First Claim
1. A computer implemented method for implementing run-time instrumentation indirect sampling by instruction operation code, the 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 a method for implementing run-time instrumentation indirect sampling by instruction operation code. The method 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. The method also includes recognizing a sample point 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 method further includes storing the run-time instrumentation information in a run-time instrumentation program buffer as a reporting group.
134 Citations
6 Claims
-
1. A computer implemented method for implementing run-time instrumentation indirect sampling by instruction operation code, the 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)
-
Specification