×

Method and device for recording memory access operation information

  • US 10,331,381 B2
  • Filed: 02/13/2018
  • Issued: 06/25/2019
  • Est. Priority Date: 02/20/2017
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×