Method and device for monitoring memory

A memory and memory allocation technology, applied in hardware monitoring, memory address/allocation/relocation, etc., can solve problems such as not being able to meet large memory monitoring

Inactive Publication Date: 2009-10-21
HUAWEI TECH CO LTD
View PDF0 Cites 60 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since most CPUs only support monitoring of limited memory addresses, it cannot meet the needs of large memory monitoring

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for monitoring memory
  • Method and device for monitoring memory
  • Method and device for monitoring memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 4

[0071] Embodiment 4 provides a memory monitoring device, which may be called a memory monitoring tool. The structure of the memory monitoring device is attached Figure 5 shown.

[0072] Figure 5 The memory monitoring device includes: an access protection setting module 500 , a memory allocation and release monitoring module 510 and an abnormal interruption module 520 . Optionally, the memory monitoring device may further include: an instrumentation module 530 , an access protection control module 540 , a marking module 550 and an alarm module 560 .

[0073] The access protection setting module 500 is configured to set the memory management unit access protection for the memory to be monitored. The memory to be monitored may be all the memory in the network device, or part of the memory in the network device. The memory to be monitored can be determined according to actual needs, for example, it can be determined that all memory needs to be monitored according to actual n...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for monitoring a memory. The memory monitoring method comprises the following steps: setting memory management unit access protection for the memory needing to be monitored, recording a memory allocating massage by aiming at the application and release operations of a program packet to the memory, and triggering an abnormity processing operation based on the memory management unit access protection when the program packet executes data reading or writing operation to the memory; acquiring a reading or writing data destination address, and judging whether the memory access operation of the reading or writing data exceeds the limit according to the destination address and the memory allocating message, if so, recording a site message of the memory access operation exceeding the limit, and permitting the program packet to continuously carry out the following flow according to a contained program code; otherwise, permitting the program packet to continuously carry out the following flow according to the contained program code. The technical proposal can monitor the site message that the memory reading and writing data exceeds the limit in real time and achieve real-time monitoring of the memory; and the size of a monitored storage area is not restricted.

Description

technical field [0001] The invention relates to the technical field of electronic equipment, in particular to memory monitoring technology. Background technique [0002] In an embedded real-time system, due to problems such as memory accessing out of bounds or writing to released memory, it is necessary to monitor the memory. The current memory monitoring methods mainly include the following four types: [0003] Method 1. The memory monitoring method based on filling the magic number, that is, filling the magic number in the memory that needs to be monitored, and judging whether the memory has been illegally rewritten by applying for memory, releasing the memory, or regularly checking whether the magic number has been rewritten. This method cannot capture the scene information that the memory is illegally rewritten in time. [0004] Method 2: A memory monitoring method based on modifying the program flow, that is, adding checking codes in the program flow, so that the size...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30G06F12/02
Inventor 叶凌群苏赫
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products