Abstract:
The invention relates to determining the status of run-time-instrumentation controls. The status is determined by executing a test run-time-instrumentation controls (TRIC) instruction. The TRIC instruction is executed in either a supervisor state or a lesser-privileged state. The TRIC instruction determines whether the run-time-instrumentation controls have changed. The run-time-instrumentation controls are set to an initial value using a privileged load run-time-instrumentation controls (LRIC) instruction. The TRIC instruction is fetched and executed. If the TRIC instruction is enabled, then it is determined if the initial value set by the run-time-instrumentation controls has been changed. If the initial value set by the run-time-instrumentation controls has been changed, then a condition code is set to a first value.
Abstract:
An aspect includes run-time instrumentation reporting. An instruction stream is executed by a processor. Run-time instrumentation information of the executing instruction stream is captured by the processor. Run-time instrumentation records are created based on the captured run-time instrumentation information. A run-time instrumentation sample point of the executing instruction stream on the processor is detected. A reporting group is stored in a run-time instrumentation program buffer. The storing is based on the detecting and the storing includes: determining a current address of the run-time instrumentation program buffer, the determining based on instruction accessible run-time instrumentation controls; and storing the reporting group into the run-time instrumentation program buffer based on an origin address and the current address of the run-time instrumentation program buffer, the reporting group including the created run-time instrumentation records.
Abstract:
An aspect includes run-time instrumentation reporting. An instruction stream is executed by a processor. Run-time instrumentation information of the executing instruction stream is captured by the processor. Run-time instrumentation records are created based on the captured run-time instrumentation information. A run-time instrumentation sample point of the executing instruction stream on the processor is detected. A reporting group is stored in a run-time instrumentation program buffer. The storing is based on the detecting and the storing includes: determining a current address of the run-time instrumentation program buffer, the determining based on instruction accessible run-time instrumentation controls; and storing the reporting group into the run-time instrumentation program buffer based on an origin address and the current address of the run-time instrumentation program buffer, the reporting group including the created run-time instrumentation records.
Abstract:
Embodiments of the invention relate to run-time instrumentation reporting. An instruction stream is executed by a processor. Run-time instrumentation information of the executing instruction stream is captured by the processor. Run-time instrumentation records are created based on the captured run-time instrumentation information. A run-time instrumentation sample point of the executing instruction stream on the processor is detected. A reporting group is stored in a run-time instrumentation program buffer. The storing is based on the detecting and the storing includes: determining a current address of the run-time instrumentation program buffer, the determining based on instruction accessible run-time instrumentation controls; and storing the reporting group into the run-time instrumentation program buffer based on an origin address and the current address of the run-time instrumentation program buffer, the reporting group including the created run-time instrumentation records.
Abstract:
Embodiments of the invention relate to enabling and disabling execution of a run-time instrumentation facility. An instruction for execution by the processor in a lesser privileged state is fetched by the processor. It is determined, by the processor, that the run-time instrumentation facility permits execution of the instruction in the lesser-privileged state and that controls associated with the run-time instrumentation facility are valid. The run-time instrumentation facility is disabled based on the instruction being a run-time instrumentation facility off (RIOFF) instruction. The disabling includes updating a bit in a program status word (PSW) of the processor to indicate that run-time instrumentation data should not be captured by the processor. The run-time instrumentation facility is enabled based on the instruction being a run-time instrumentation facility on (RION) instruction. The enabling includes updating the bit in the PSW to indicate that run-time instrumentation data should be captured by the processor.
Abstract:
Embodiments of the invention relate to run-time instrumentation reporting. An instruction stream is executed by a processor. Run-time instrumentation information of the executing instruction stream is captured by the processor. Run-time instrumentation records are created based on the captured run-time instrumentation information. A run-time instrumentation sample point of the executing instruction stream on the processor is detected. A reporting group is stored in a run-time instrumentation program buffer. The storing is based on the detecting and the storing includes: determining a current address of the run-time instrumentation program buffer, the determining based on instruction accessible run-time instrumentation controls; and storing the reporting group into the run-time instrumentation program buffer based on an origin address and the current address of the run-time instrumentation program buffer, the reporting group including the created run-time instrumentation records.
Abstract:
Un procedimiento implementado por ordenador para la notificación de instrumentación en tiempo de ejecución, el procedimiento que comprende: ejecutar (1702) un flujo de instrucciones de un primer programa de ordenador, la ejecución mediante un procesador (106); determinar, en base al contenido de un campo de control de instrumentación en una palabra de estado de programa, PSW (512) del primer programa de ordenador, que debe capturarse la información de instrumentación en tiempo de ejecución de dicho flujo de instrucciones en ejecución, en el que el contenido de la PSW del primer programa de ordenador persiste durante las conmutaciones de contexto por parte del procesador; en respuesta a la determinación de que el campo de control de instrumentación indica que la instrumentación está habilitada, capturar (1704), mediante el procesador, la información de instrumentación en tiempo de ejecución de dicho flujo de instrucciones en ejecución; en base a dicha información de instrumentación en tiempo de ejecución capturada, crear (1706) registros de instrumentación en tiempo de ejecución; detectar (1708) un punto de muestra de instrumentación en tiempo de ejecución del flujo de instrucciones en ejecución en el procesador; y almacenar (1710) un grupo de notificación en una memoria intermedia del programa de instrumentación en tiempo de ejecución (522), el almacenamiento se basa en la detección de un punto de muestra de instrumentación en tiempo de ejecución, el almacenamiento que comprende: determinar una dirección actual (706) de la memoria intermedia del programa de instrumentación en tiempo de ejecución, la determinación basada en controles de instrumentación accesibles en tiempo de ejecución mediante instrucciones; y almacenar el grupo de notificación (900) en la memoria intermedia del programa de instrumentación en tiempo de ejecución en base a una dirección de origen (702) y la dirección actual de la memoria intermedia del programa de instrumentación en tiempo de ejecución, el grupo de notificación que comprende dichos registros de instrumentación en tiempo de ejecución creados.