Transformation of a program-event-recording event into a run-time instrumentation event
First Claim
1. A computer program product for transforming a program-event-recording event into a run-time instrumentation event, 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;
configuring a run-time-instrumentation control based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction enabling run-time instrumentation pro gram-event-recording (PER) controls;
granting permission to configure run-time instrumentation control values from a lower-privileged program;
granting permission to configure PER control registers from the lower-privileged program when the run-time instrumentation PER controls are enabled;
enabling run-time instrumentation for collecting instrumentation information of an instruction stream executing on a processor;
detecting, by the processor, a PER event, the PER event associated with the instruction stream executing on the processor by intercepting a PER interruption condition associated with the PER event such that the instruction stream executing on the processor is not interrupted by a PER interruption associated with the PER interruption condition to prevent removal of knowledge of the PER event from a program associated with the instruction stream; and
writing a PER event record to a collection buffer as a run-time instrumentation event based on detecting the PER event, the PER event record identifying the PER event.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the invention relate to transforming a program-event-recording event into a run-time instrumentation event. An aspect of the invention includes enabling run-time instrumentation for collecting instrumentation information of an instruction stream executing on a processor. Detecting is performed, by the processor, of a program-event-recording (PER) event, the PER event associated with the instruction stream executing on the processor. A PER event record is written to a collection buffer as a run-time instrumentation event based on detecting the PER event, the PER event record identifying the PER event.
-
Citations
17 Claims
-
1. A computer program product for transforming a program-event-recording event into a run-time instrumentation event, 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; configuring a run-time-instrumentation control based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction enabling run-time instrumentation pro gram-event-recording (PER) controls; granting permission to configure run-time instrumentation control values from a lower-privileged program; granting permission to configure PER control registers from the lower-privileged program when the run-time instrumentation PER controls are enabled; enabling run-time instrumentation for collecting instrumentation information of an instruction stream executing on a processor; detecting, by the processor, a PER event, the PER event associated with the instruction stream executing on the processor by intercepting a PER interruption condition associated with the PER event such that the instruction stream executing on the processor is not interrupted by a PER interruption associated with the PER interruption condition to prevent removal of knowledge of the PER event from a program associated with the instruction stream; and writing a PER event record to a collection buffer as a run-time instrumentation event based on detecting the PER event, the PER event record identifying the PER event. - View Dependent Claims (2, 3, 4, 5, 6)
-
7. A system for transforming a program-event-recording event into a run-time instrumentation event, the system comprising:
-
a collection buffer; and a processor comprising a run-time instrumentation module, the run-time instrumentation module configured to perform a method comprising; configuring a run-time-instrumentation control based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction enabling run-time instrumentation program-event-recording (PER) controls; granting permission to configure run-time instrumentation control values from a lower-privileged program; granting permission to configure PER control registers from the lower-privileged program when the run-time instrumentation PER controls are enabled; enabling run-time instrumentation for collecting instrumentation information of an instruction stream executing on the processor; detecting, by the processor, a PER event, the PER event associated with the instruction stream executing on the processor by intercepting a PER interruption condition associated with the PER event such that the instruction stream executing on the processor is not interrupted by a PER interruption associated with the PER interruption condition to prevent removal of knowledge of the PER event from a program associated with the instruction stream; and writing a PER event record to the collection buffer as a run-time instrumentation event based on detecting the PER event, the PER event record identifying the PER event. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program product for transforming a program-event-recording event into a run-time instrumentation event, 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; configuring a run-time-instrumentation control based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction enabling run-time instrumentation program-event-recording (PER) controls; setting a K-bit based on executing the LRIC instruction to grant permission for execution of a modify run-time instrumentation controls (MRIC) instruction to configure run-time instrumentation control values from a lower-privileged program; setting a PK-bit based on executing the LRIC instruction to grant permission for execution of the MRIC instruction to configure PER control registers from the lower-privileged program when the run-time instrumentation PER controls are enabled and the K-bit is set; enabling run-time instrumentation for collecting instrumentation information of an instruction stream executing on a processor; detecting, by the processor, a PER event, the PER event associated with the instruction stream executing on the processor; and writing a PER event record to a collection buffer as a run-time instrumentation event based on detecting the PER event, the PER event record identifying the PER event. - View Dependent Claims (14, 15, 16, 17)
Specification