Randomized testing within transactional execution
First Claim
Patent Images
1. A computer program product for controlling execution of transactions in a computing environment, said computer program product comprising:
- a non-transitory computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising;
initiating a transaction in a computing environment; and
determining, by control logic of a processor, whether the transaction is to be aborted, the determining employing one or more controls of a control register used by the processor, the one or more controls to indicate whether transactions are to be randomly selected to be aborted for testing purposes, wherein the control register comprises a transaction diagnostic control to be used in determining whether transactions are to be selected to be aborted, and a transaction diagnostic scope to indicate whether the transaction diagnostic control is to be applied, wherein a first value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied based on the processor being in a problem state or a supervisor state, and a second value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied exclusive to the processor being in the problem state.
1 Assignment
0 Petitions
Accused Products
Abstract
Task specific diagnostic controls are provided to facilitate the debugging of certain types of abort conditions. The diagnostic controls may be set to cause transactions to be selectively aborted, allowing a transaction to drive its abort handler routine for testing purposes. The controls include, for instance, a transaction diagnostic scope and a transaction diagnostic control. The transaction diagnostic scope indicates when the transaction diagnostic control is to be applied, and the transaction diagnostic control indicates whether transactions are to selectively aborted.
296 Citations
20 Claims
-
1. A computer program product for controlling execution of transactions in a computing environment, said computer program product comprising:
a non-transitory computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising; initiating a transaction in a computing environment; and determining, by control logic of a processor, whether the transaction is to be aborted, the determining employing one or more controls of a control register used by the processor, the one or more controls to indicate whether transactions are to be randomly selected to be aborted for testing purposes, wherein the control register comprises a transaction diagnostic control to be used in determining whether transactions are to be selected to be aborted, and a transaction diagnostic scope to indicate whether the transaction diagnostic control is to be applied, wherein a first value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied based on the processor being in a problem state or a supervisor state, and a second value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied exclusive to the processor being in the problem state. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. A computer system for controlling execution of transactions in a computing environment, said computer system comprising:
-
a memory; and a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising; initiating a transaction in a computing environment; and determining, by control logic of the processor, whether the transaction is to be aborted, the determining employing one or more controls of a control register used by the processor, the one or more controls to indicate whether transactions are to be randomly selected to be aborted for testing purposes, wherein the control register comprises a transaction diagnostic control to be used in determining whether transactions are to be selected to be aborted, and a transaction diagnostic scope to indicate whether the transaction diagnostic control is to be applied, wherein a first value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied based on the processor being in a problem state or a supervisor state, and a second value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied exclusive to the processor being in the problem state. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A computer-implemented method of controlling execution of transactions in a computing environment, said method comprising:
-
initiating a transaction in a computing environment; and determining, by control logic of a processor, whether the transaction is to be aborted, the determining employing one or more controls of a control register used by the processor, the one or more controls to indicate whether transactions are to be randomly selected to be aborted for testing purposes, wherein the control register comprises a transaction diagnostic control to be used in determining whether transactions are to be selected to be aborted, and a transaction diagnostic scope to indicate whether the transaction diagnostic control is to be applied, wherein a first value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied based on the processor being in a problem state or a supervisor state, and a second value of the transaction diagnostic scope indicates the transaction diagnostic control is to be applied exclusive to the processor being in the problem state. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification