Unlock instant, AI-driven research and patent intelligence for your innovation.

Abnormal interrupt source location detection method for embedded software

An embedded software, abnormal interrupt technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of increasing the difficulty of abnormal source analysis, difficult to locate the abnormal source, and difficult to find the abnormal source.

Active Publication Date: 2019-02-01
中国航发控制系统研究所
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in most of the existing domestic embedded software, due to the lack of in-depth understanding of exceptions, the exception handling is often rough, and it is difficult to locate the exception source triggered by the software, which increases the difficulty of exception source analysis
[0003] The existing abnormal monitoring methods in China mainly use some devices, such as emulators, logic analyzers, oscilloscopes, etc., to capture abnormalities and locate the source of abnormalities by using the plug-in method in the software, because the abnormalities in the software are very hidden Yes, it is difficult to find the source of the abnormality using this method, and the troubleshooting process is long

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
  • Abnormal interrupt source location detection method for embedded software
  • Abnormal interrupt source location detection method for embedded software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The present invention will be further described below in conjunction with specific drawings and embodiments.

[0017] Such as figure 1 Shown: In order to quickly realize the effective location of the abnormal interruption source and improve the effectiveness of the abnormal handling of the test, the abnormal interruption source location detection method of the present invention includes the following steps:

[0018] S1. Determine the abnormal interrupt at the CPU core level, and select the abnormal interrupt that can be triggered by the software among the abnormal interrupts, and perform instrumentation and set the fault code in the task of software operation, so that when the software runs to the instrumentation code , triggering the selected software abort;

[0019] In the embodiment of the present invention, for a certain CPU, its corresponding kernel-level abnormal interrupt is definitely known, and the abnormal interrupt that can be triggered by software in the ab...

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 relates to a method for positioning and detecting abnormal interruption sources used in embedded software. The method comprises following steps: S1. determining CPU kernel level abnormal interruption sources, selecting an abnormal interruption which can be triggered by software from the abnormal interruptions, and performing instrument on a task run by the software and setting fault codes to trigger the selected software abnormal interruption when the software runs the instrumentation codes; S2. starting and running the software and capturing interruption information of the software abnormal interruption after the software abnormal interruption is triggered; S3. sending the interruption information of the captured abnormal interruption to an upper computer and the upper computer performing interruption analysis of triggering software abnormal interruption according to the interruption information of the software abnormal interruption to determine interruption sources triggering the software abnormal interruption. The method is convenient to operate and is quick to effectively position abnormal interruption sources so that effectiveness of testing abnormal processing is increased which is safe and reliable.

Description

technical field [0001] The invention relates to a detection method, in particular to an abnormal interrupt source location detection method used in embedded software, and belongs to the technical field of interrupt location detection. Background technique [0002] Exception is a special case of interrupt. It is a response to unexpected instructions at the CPU level. For high-security systems, exception interrupt processing is often the last protection threshold in the software. In this processing, you can pass Monitor the value of the stack space, and specify the source of the exception. In embedded software, its handling is critical. However, in most of the existing domestic embedded software, due to the lack of deep understanding of exceptions, the exception handling is often rough, and it is difficult to locate the exception source triggered by the software, which increases the difficulty of abnormal source analysis. [0003] The existing abnormal monitoring methods in ...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3692
Inventor 羽加霙胡豪东谢娟
Owner 中国航发控制系统研究所