Patent ID: 9400736
Filing Date: 2016-07-26
CPC Classification: G06F

Claim Text:
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.