Method and device for recording memory access operation information
First Claim
1. A method for recording memory access operation information, comprising:
- recording memory access operations between a processor and a memory during a target running process to form a memory access sequence information of the target running process, wherein each of the memory access operation information in the memory access sequence information includes a memory access type, a memory access address and a memory access data; and
determining a final storage state of the memory during the target running process according to the memory access sequence information of the target running process, wherein the final storage state refers to a final storage state of a memory space operated by the processor during the target running process,wherein determining the final storage state of the memory during the target running process according to the memory access sequence information of the target running process comprises;
obtaining a first memory access operation information in the memory access sequence information;
writing the first memory access operation information into a first buffer when the memory access type of the first memory access operation information is a write operation; and
obtaining the final storage state from the first buffer,wherein writing the first memory access operation information into the first buffer when the memory access type of the first memory access operation information is a write operation comprises;
determining whether the memory access address of the first memory access operation information is already recorded in the first buffer;
writing the first memory access operation information into the first buffer to overwrite a previous memory access operation information when the memory access address of the first memory access operation information is already recorded in the first buffer; and
inserting the first memory access operation information into the first buffer when the memory access address of the first memory access operation information is not recorded in the first buffer.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and a device for recording memory access operation information are provided by the present disclosure. The method comprises: recording memory access operations between a processor and a memory during a target running process to form an memory access sequence information of the target running process, wherein each of the memory access operation information in the memory access sequence information includes a memory access type, a memory access address and a memory access data; and determining a final storage state of the memory during the target running process according to the memory access sequence information of the target running process. According to the embodiments of the present disclosure, the final storage state of the memory during the target running process may be obtained by using less storage resources, and the hardware overhead is reduced.
-
Citations
16 Claims
-
1. A method for recording memory access operation information, comprising:
-
recording memory access operations between a processor and a memory during a target running process to form a memory access sequence information of the target running process, wherein each of the memory access operation information in the memory access sequence information includes a memory access type, a memory access address and a memory access data; and determining a final storage state of the memory during the target running process according to the memory access sequence information of the target running process, wherein the final storage state refers to a final storage state of a memory space operated by the processor during the target running process, wherein determining the final storage state of the memory during the target running process according to the memory access sequence information of the target running process comprises; obtaining a first memory access operation information in the memory access sequence information; writing the first memory access operation information into a first buffer when the memory access type of the first memory access operation information is a write operation; and obtaining the final storage state from the first buffer, wherein writing the first memory access operation information into the first buffer when the memory access type of the first memory access operation information is a write operation comprises; determining whether the memory access address of the first memory access operation information is already recorded in the first buffer; writing the first memory access operation information into the first buffer to overwrite a previous memory access operation information when the memory access address of the first memory access operation information is already recorded in the first buffer; and inserting the first memory access operation information into the first buffer when the memory access address of the first memory access operation information is not recorded in the first buffer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A device for recording memory access operation information, comprising:
-
a memory access operation recording unit, configured to record memory access operations between a processor and a memory during a target running process to form a memory access sequence information of the target running process, wherein each of the memory access operation information in the memory access sequence information includes a memory access type, a memory access address and a memory access data; and a data organization unit, configured to determine a final storage state of the memory during the target running process according to the memory access sequence information of the target running process, wherein the final storage state refers to a final storage state of a memory space operated by the processor during the target running process, wherein the data organization unit comprises;
a first memory access operation information obtaining module, a first processing module, a first buffer, and a final storage state obtaining module;
whereinthe first memory access operation information obtaining module is configured to obtain a first memory access operation information in the memory access sequence information; the first processing module is configured to write the first memory access operation information into the first buffer when the memory access type of the first memory access operation information is a write operation; and the final storage state obtaining module is configured to obtain the final storage state from the first buffer, wherein the first processing module is configured to; determine whether the memory access address of the first memory access operation information is already recorded in the first buffer; write the first memory access operation information into the first buffer to overwrite a previous memory access operation information when the memory access address of the first memory access operation information is already recorded in the first buffer; and insert the first memory access operation information into the first buffer when the memory access address of the first memory access operation information is not recorded in the first buffer. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification