Determining the status of run-time-instrumentation controls
First Claim
1. A computer program product for executing a test run-time-instrumentation controls (TRIC) instruction, the TRIC instruction executable in either a supervisor state or a lesser-privileged state, the TRIC instruction for determining whether run-time-instrumentation controls have changed, 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;
setting a set of run-time-instrumentation controls to an initial value using a privileged load run-time-instrumentation controls (LRIC) instruction;
fetching the TRIC instruction;
executing the TRIC instruction, the executing comprising;
determining whether the TRIC instruction is enabled;
based on determining that the TRIC instruction is enabled, determining whether the initial value set by the run-time-instrumentation controls has been changed;
based on determining that the initial value set by the run-time-instrumentation controls has been changed, setting a condition code to a first value; and
based on determining that the TRIC instruction is not-enabled, setting the condition code to a second value, the second value indicating execution of the TRIC instruction in a problem state is not permitted.
2 Assignments
0 Petitions
Accused Products
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 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.
-
Citations
14 Claims
-
1. A computer program product for executing a test run-time-instrumentation controls (TRIC) instruction, the TRIC instruction executable in either a supervisor state or a lesser-privileged state, the TRIC instruction for determining whether run-time-instrumentation controls have changed, 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; setting a set of run-time-instrumentation controls to an initial value using a privileged load run-time-instrumentation controls (LRIC) instruction; fetching the TRIC instruction; executing the TRIC instruction, the executing comprising; determining whether the TRIC instruction is enabled; based on determining that the TRIC instruction is enabled, determining whether the initial value set by the run-time-instrumentation controls has been changed; based on determining that the initial value set by the run-time-instrumentation controls has been changed, setting a condition code to a first value; and based on determining that the TRIC instruction is not-enabled, setting the condition code to a second value, the second value indicating execution of the TRIC instruction in a problem state is not permitted. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer system for modifying run-time-instrumentation controls from a lesser-privileged state, the system comprising:
a computer processor comprising a run-time-instrumentation module, the run-time-instrumentation module configured to perform a method comprising; setting a set of run-time-instrumentation controls to an initial value using a privileged load run-time-instrumentation controls (LRIC) instruction; fetching a test run-time-instrumentation controls (TRIC) instruction; executing the TRIC instruction, the executing comprising; determining whether the TRIC instruction is enabled; based on determining that the TRIC instruction is enabled, determining whether the initial value set by the run-time-instrumentation controls has been changed; based on determining that the initial value set by the run-time-instrumentation controls has been changed, setting a condition code to a first value; and based on determining that the TRIC instruction is not enabled, setting the condition code to a second value, the second value indicating execution of the TRIC instruction in a problem state is not permitted. - View Dependent Claims (9, 10, 11, 12, 13, 14)
Specification