Query sampling information instruction
First Claim
Patent Images
1. A method of executing a machine instruction in a central processing unit, the method comprising:
- obtaining a machine instruction for execution, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising;
an opcode field identifying a query sampling information operation, the query sampling information operation used to provide information about a central processing unit (CPU) measurement sampling facility used to capture at least one of basic sampling data relating to processing of a central processing unit or diagnostic sampling data; and
a field of the machine instruction, wherein contents of the field and contents of a register associated with the machine instruction are used to form an operand address; and
executing the machine instruction, the executing comprising;
placing information about the central processing unit (CPU) measurement sampling facility in an information block designated by the operand address, wherein the information block comprises at least one of a basic sampling data entry size and a diagnostic sampling data entry size, and wherein one or more of the basic sampling data entry size and the diagnostic sampling data entry size are to be used to determine a size of a data buffer (B) to be used for sampling.
1 Assignment
0 Petitions
Accused Products
Abstract
A measurement sampling facility takes snapshots of the central processing unit (CPU) on which it is executing at specified sampling intervals to collect data relating to tasks executing on the CPU. The collected data is stored in a buffer, and at selected times, an interrupt is provided to remove data from the buffer to enable reuse thereof. The interrupt is not taken after each sample, but in sufficient time to remove the data and minimize data loss.
-
Citations
20 Claims
-
1. A method of executing a machine instruction in a central processing unit, the method comprising:
-
obtaining a machine instruction for execution, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising; an opcode field identifying a query sampling information operation, the query sampling information operation used to provide information about a central processing unit (CPU) measurement sampling facility used to capture at least one of basic sampling data relating to processing of a central processing unit or diagnostic sampling data; and a field of the machine instruction, wherein contents of the field and contents of a register associated with the machine instruction are used to form an operand address; and executing the machine instruction, the executing comprising; placing information about the central processing unit (CPU) measurement sampling facility in an information block designated by the operand address, wherein the information block comprises at least one of a basic sampling data entry size and a diagnostic sampling data entry size, and wherein one or more of the basic sampling data entry size and the diagnostic sampling data entry size are to be used to determine a size of a data buffer (B) to be used for sampling. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A computer program product for executing a machine instruction in a central processing unit, the 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; obtaining a machine instruction for execution, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising; an opcode field identifying a query sampling information operation, the query sampling information operation used to provide information about a central processing unit (CPU) measurement sampling facility used to capture at least one of basic sampling data relating to processing of a central processing unit or diagnostic sampling data; and a field of the machine instruction, wherein contents of the field and contents of a register associated with the machine instruction are used to form an operand address; and executing the machine instruction, the executing comprising; placing information about the central processing unit (CPU) measurement sampling facility in an information block designated by the operand address, wherein the information block comprises at least one of a basic sampling data entry size and a diagnostic sampling data entry size, and wherein one or more of the basic sampling data entry size and the diagnostic sampling data entry size are to be used to determine a size of a data buffer (B) to be used for sampling. - View Dependent Claims (13, 14, 15)
-
16. A computer system for executing a machine instruction in a central processing unit, the computer system comprising:
-
a memory; and a processor in communications with the memory, wherein the computer system is configured to perform a method, said method comprising; obtaining a machine instruction for execution, the machine instruction being defined for computer execution according to a computer architecture, the machine instruction comprising; an opcode field identifying a query sampling information operation, the query sampling information operation used to provide information about a central processing unit (CPU) measurement sampling facility used to capture at least one of basic sampling data relating to processing of a central processing unit or diagnostic sampling data; and a field of the machine instruction, wherein contents of the field and contents of a register associated with the machine instruction are used to form an operand address; and executing the machine instruction, the executing comprising; placing information about the central processing unit (CPU) measurement sampling facility in an information block designated by the operand address, wherein the information block comprises at least one of a basic sampling data entry size and a diagnostic sampling data entry size, and wherein one or more of the basic sampling data entry size and the diagnostic sampling data entry size are to be used to determine a size of a data buffer (B) to be used for sampling. - View Dependent Claims (17, 18, 19, 20)
-
Specification