Method and apparatus for providing positioning information for task endless loop

A technology of positioning information and infinite loop, applied in the field of providing positioning information for task infinite loop, can solve the problems of difficulty in analyzing infinite loop, not providing valuable information, insufficient positioning information of infinite loop, etc., to achieve the effect of reducing the difficulty of positioning

Inactive Publication Date: 2009-08-12
NEW H3C TECH CO LTD
View PDF0 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The disadvantage of the existing technology is that the printed infinite loop positioning information is not sufficient, and in some cases it is difficult to analyze the cause of the infinite loop based on this information
Therefore, it is precisely because of this message that the processing of task 1 has fallen into an endless loop that cannot end
[

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 apparatus for providing positioning information for task endless loop
  • Method and apparatus for providing positioning information for task endless loop
  • Method and apparatus for providing positioning information for task endless loop

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0042] The present invention is a solution for providing positioning information for infinite loops. The basic idea is: in the task running process, use the feature of the clock interrupt handler to periodically interrupt the task operation, and continuously record that the task is interrupted in the clock interrupt handler The register context information at the time, the register context information includes the position information of the task being interrupted, and these continuous position information constitute the approximate running trajectory of the task. When an infinite loop of the current task is detected, it provides the recorded approximate running track of the task, that is, the register context information recorded before the infinite loop occurs each time the task is interrupted, and also provides the register context at the moment when the infinite loop is detected Information and call stack information, these three parts of information provide a richer basis for...

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 supplying positioning information to infinite loops of tasks. In the method, register context information when a task is interrupted is continuously recorded in a clock interrupt processing program, and when a current task is detected to have an infinite loop, the register context information which is recorded before the occurrence of the infinite loop when the current task is interrupted each time is outputted as the positioning information. The method can supply abundant positioning information so as to reduce positioning difficulty.

Description

technical field [0001] The invention relates to the technical field of embedded systems, in particular to a method and a device for providing positioning information for task endless loops. Background technique [0002] figure 1 Run the schematic for a simplified embedded system task. There are two queues in the figure, one is the "sleep task queue", the tasks in the queue do not need to be executed temporarily, and the operating system will put them into the "waiting to run queue" only after a certain trigger factor meets the conditions; The second is the "waiting to run queue", all the tasks in the queue are ready, just waiting for the operating system to select itself to run. Except for the currently running tasks, all other tasks of the system are on one and only one of the queues. [0003] Such as figure 1 As shown, suppose there are N tasks in the system, all of which are queued up to run. Assume these N tasks all have the same priority. N tasks take turns to use...

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
IPC IPC(8): G06F9/46
Inventor 余斌
Owner NEW H3C 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