Program fault monitoring method and system

A program failure and monitoring system technology, applied in the computer field, can solve problems such as inability to detect program failures in a timely and accurate manner, and achieve the effect of rapid failure processing

Inactive Publication Date: 2017-02-01
重庆四联测控技术有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned shortcomings of the prior art, the object of the present invention is to provide a program fault monitoring method and system to solve the problem that the program fault cannot be detected timely and accurately in the prior art

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
  • Program fault monitoring method and system
  • Program fault monitoring method and system
  • Program fault monitoring method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] The monitoring diagram of program failure is as follows image 3 As shown, the monitoring process of program failure is as follows:

[0072] Step S1: Divide the program into three functions in advance according to the functional modularization method: the first function, the second function and the third function; predefine the global monitoring identifiers 1, 2, 3, and add the global monitoring identifier 1 to the first function Add the global monitoring identifier 2 to the entrance position of the second function, and add the global monitoring identifier 3 to the entrance position of the third function;

[0073] Step S2: In the running process of the program, when it is detected that the entry position of the first function is executed, and the program flies to the entry position of the third function at this time, the global monitoring identifier of the entry position in the third function is obtained 3 ;

[0074] Step S3: Compare the acquired global monitoring identifier ...

Embodiment 2

[0077] The monitoring diagram of program failure is as follows Figure 4 As shown, the monitoring process of program failure is as follows:

[0078] Step S1: Divide the program into three functions in advance according to the functional modularization method: the first function, the second function and the third function; predefine the global monitoring identifiers 1, 2, 3, and add the global monitoring identifier 1 to the first function Add the global monitoring identifier 2 to the entrance position of the second function, and add the global monitoring identifier 3 to the entrance position of the third function;

[0079] Step S2: In the running process of the program, when it is detected that the entry position of the second function is executed, and the program does not run away at this time, the global monitoring identifier 2 of the entry position in the second function is acquired;

[0080] Step S3: Compare the acquired global monitoring identifier 2 of the entry position in the ...

Embodiment 3

[0082] The monitoring diagram of program failure is as follows Figure 5 As shown, the monitoring process of program failure is as follows:

[0083] Step S1: Divide the program into three functions in advance according to the functional modularization method: the first function, the second function and the third function; predefine the global monitoring identifiers 1, 2, 3, and add the global monitoring identifier 1 to the first function Add the global monitoring identifier 2 to the entrance position of the second function, and add the global monitoring identifier 3 to the entrance position of the third function;

[0084] Step S2: During the running of the program, when it is detected that the entry position of the third function is executed, and the program flies to the data area at this time, the global monitoring identifier cannot be obtained, thereby determining the entry position of the third function error occured;

[0085] Step S3: Perform fault handling operations such as p...

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 provides a program fault monitoring method and system. The method comprises the following steps of dividing a program into a plurality of functions in advance according to a function modular mode; defining different global monitoring marks for key positions in each function and adding corresponding global monitoring marks to the key positions in each function; in the program operation process, when the execution to the key positions of the function is detected, determining whether the global monitoring mark is obtained or not; if the global monitoring mark is obtained, determining whether fault occurs in the key positions of the function according to the obtained global monitoring mark and the global monitoring mark defined in the key positions of the function; if the global monitoring mark is not obtained, determining that the fault occurs in the key positions of the function. Therefore the method and the system provided by the embodiment of the invention have the advantages that whether the fault occurs in the key positions of the function can be timely and accurately determined, so that the fault handling can be fast performed so as to avoid the serious result due to program fault.

Description

Technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for monitoring program failures. Background technique [0002] In the microprocessor, the program counter is the PC, which is used to store the address of the next instruction. When an instruction is executed, it is first necessary to access the instruction from the internal memory to the instruction register according to the instruction address stored in the PC. This process is called instruction fetching. At the same time, the instruction address in the PC is either automatically incremented by 1 or transferred by the pointer Give the address of the next instruction. After that, the instruction is analyzed and executed to complete the execution of an instruction, and then the address of the next instruction is fetched according to the PC, and this loop is executed to execute each instruction. [0003] Since field instruments usually work in harsh environments, ...

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/36
CPCG06F11/3644G06F11/366
Inventor 梁伟成黄云彪聂绍忠
Owner 重庆四联测控技术有限公司
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