Embedded system progress abnormal tracking position-finding method

An embedded system, tracking and positioning technology, applied in the direction of multi-program device, software testing/debugging, etc., can solve the problems of inability to locate source code, wrong location, and inability to locate exceptions, etc., and achieve the effect of streamlining and fixing the size of abnormal files

Inactive Publication Date: 2008-07-02
ZTE CORP
View PDF0 Cites 62 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 1. These tools require to save the debugging version corresponding to the user program, otherwise, the source code where the exception occurs cannot be located, and the stack call sequence where the exception occurs cannot be obtained. Therefore, it is more troublesome to use, especially when the product has been released , it is difficult to use this method for exceptions that occur in user programs;
[0009] 2. The application program and the runtime library are dynamically linked. If the configuration of the exception tracking tool library is different from the configuration of the library when the program is running, it will also cause the exception to be unable to be located or wrongly located;
[0012] 1. First of all, they can only be used when the physical address space is running, and cannot be used when the virtual and real address spaces are separated in high-end embedded operating systems;
[0013] 2. Secondly, they can only be used when the application program is statically linked to the runtime library, and are not suitable for the use of dynamic link libraries in high-end embedded operating systems;
[0014] 3. Finally, they also require that the application program must be a debug version, and must have debugging information when compiling, otherwise the function name cannot be parsed

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
  • Embedded system progress abnormal tracking position-finding method
  • Embedded system progress abnormal tracking position-finding method
  • Embedded system progress abnormal tracking position-finding method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] The basic design idea of ​​the present invention is to perform on-site analysis when the user process is abnormal, including stack backtracking, symbol search, error file search, and result preservation. Because only the analysis result is saved instead of a direct copy of the memory, the saved exception file is small and will not change with the change of the memory occupied by the application. At the same time, the present invention uses layered design and reasonable abstraction to independently process the processing related to the processor and the system call interface of the operating system into separate modules, and fix the relevant interfaces at the same time, so that the present invention can be easily transplanted to different processors and different operating systems. Add the entry of this solution to the exception code of the operating system kernel, and the operating system can directly call the exception handling of this solution during exception handlin...

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 tracking ordination method for process exception in an embedded system, and solves the problems that with prior exception tracking tools that the needed memory space is large, the configuring is inconvenient, and the version support needs to be debugged in the exception tracking tool. The invention extracts a program address where the exception occurs, the content of each register of a processor, the name of a executable file in which the exception occurs according to the memory information of the process when the exception occurs, and intelligently backtracks out the calling sequence of function when the exception occurs, the name and the associated file of the called function; the information is preserved in a file, through which the contents such as the function that causes the process exception, the name of the function, the process pointer, etc. are clearly seen, thereby locating a code position where the exception occurs. The preserved file removes unnecessary redundant information at the same time, thus the volume of the preserved file is small, thereby being more particular applied to the high-end embedded system such as an intelligent cellphone, a PDA (Personal Digital Assistant), etc.

Description

technical field [0001] The invention relates to an abnormal processing method of a process in an embedded system, in particular to a method for processing and extracting abnormal information of an abnormal process. Background technique [0002] In high-end embedded systems such as PDAs and smart phones, it is required to provide complex applications such as word processing, GUI interface, media player, etc., and users can install and uninstall new programs, such as games, tools, etc. by themselves. The traditional embedded operating system can no longer meet the needs. Therefore, more complex operating systems such as Linux operating system and WinCE operating system are used in high-end embedded systems. Compared with traditional embedded operating systems, these operating systems have the following characteristics: [0003] 1. The kernel running space is separated from the user program running space, so that the error of the user process will not cause the collapse of th...

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/36G06F9/46
Inventor 蒋鲲鹏缪敬马力
Owner ZTE CORP
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