Transformation of a program-event-recording event into a run-time instrumentation event
First Claim
1. A computer implemented method for transforming a program-event-recording event into a run-time instrumentation event, the 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.
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 a method for transforming a program-event-recording event into a run-time instrumentation event. The method includes enabling run-time instrumentation for collecting instrumentation information of an instruction stream executing on a processor. The method also includes detecting, by the processor, a program-event-recording (PER) event, the PER event associated with the instruction stream executing on the processor. The method further includes 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.
146 Citations
16 Claims
-
1. A computer implemented method for transforming a program-event-recording event into a run-time instrumentation event, the 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 (2, 3, 4, 5)
-
-
6. A computer implemented method for transforming a program-event-recording event into a run-time instrumentation event, the method comprising:
-
configuring, by a processor, 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 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 (7, 8, 9, 10, 11)
-
-
12. A computer implemented method for transforming a program-event-recording event into a run-time instrumentation event, the method comprising:
-
configuring, by a processor, 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; configuring the run-time-instrumentation control to recognize an instruction causing a PER event as a sample instruction 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, the PER event, wherein the PER event is 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; 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; and storing a reporting group to a run-time instrumentation program buffer, the reporting group comprising the PER event record and an instruction-type record identifying an instruction causing the PER event as the sample instruction. - View Dependent Claims (13, 14, 15, 16)
-
Specification