Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for monitoring memory

A memory and monitored technology, which is applied in hardware monitoring, instrumentation, electrical digital data processing, etc., can solve problems such as limiting the use range of data breakpoints, limited number of debugging registers, and poor compatibility, so as to improve debugging and maintenance efficiency. Effect

Inactive Publication Date: 2012-03-21
HUAWEI TECH CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Existing solutions rely on hardware debugging resources. Because some CPU architectures do not have debugging registers, they do not support hardware breakpoints and have poor compatibility. At the same time, due to the limited number of debugging registers, the scope of use of data breakpoint detection is also limited.

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 1

[0057] With the CPU having a paging mechanism function as the realization premise of the first embodiment of the present invention; in addition, in the first embodiment, the paging size is set to 4KB;

[0058] The specific process is as figure 2 Shown:

[0059] 201. Put the memory addresses to be monitored in one or more debug pages, and set the page mark position of the debug pages as page fault or read-only;

[0060] 202. After the system starts, decide whether to mark the debug page as not existing in the memory according to the configuration situation, so as to realize the opening or closing of the data breakpoint function; in Embodiment 1 of the present invention, it is assumed that the debugging (debug) function has been opened, Therefore set the present bit to 0;

[0061] 203. When the CPU reads and writes the memory address in the debugging page, it will trigger a page fault exception instruction, and the system execution will switch to the page fault exception proc...

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 device for monitoring a memory. The method includes the steps of placing memory has to be monitered to a debug page, triggering a page-missing abornality commond when CPU reads and writes the memory address of the debug page, determing whether the page-missing abornality commond is caused by a memory address of which accessing is monitored, and processing the page-missing abornality commond according to a preset modulating process. The invention also provides a memory monitoring device. Through the technical solution of the invention, accessing other memory addresses other than the monitoring address can not trigger abnormity, thereby preventing mighty influence on system performance, and effectively improving debugging and maintainance efficiency of asystem.

Description

technical field [0001] The invention relates to the field of computer applications, more specifically, to a memory monitoring method and device. Background technique [0002] In the field of computer applications, it is usually implemented by using some professional memory monitoring software to monitor whether a certain segment of memory is accessed. Errors are only discovered when memory resources are allocated, so this solution does not have monitoring timeliness, which greatly increases the difficulty of program debugging; in addition, the existing memory monitoring software is not fully compatible with the self-developed operating system, which also makes the detection The effect is quite limited. How to monitor whether the memory is being read or written in real time without destroying the currently running system, thereby shortening the development cycle, is an important problem to be solved at present. [0003] At present, the debug register can provide 4 address r...

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/00G06F11/34
CPCG06F11/362
Inventor 李俊郑海珍张超秦海军
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products