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

Method for user mode to implement exception stack traceback of ARM architecture device

A technology with ARM architecture and abnormal equipment, applied in the field of network communication, it can solve the problem of no way to debug gdb, and it is impossible for R&D personnel to go to the site to debug immediately, so as to achieve the effect of convenient and rapid positioning.

Inactive Publication Date: 2016-04-06
OPZOON TECH
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the existing technology, it is normal for the program to run with problems, so it is very important to save the first scene information when the program runs abnormally. The linux kernel has a backtracking implementation of the exception stack, and the exception information will be printed directly when the kernel is abnormal; the user mode program Debugging can use the very powerful debugging function of gdb. R&D personnel generally compile a debuggable version when debugging the program, but the hardware devices (such as switches, security gateways, etc.) shipped from the factory are all non-debugging versions. There is no way for such a factory version to gdb It is impossible for R&D personnel to go to the site to debug immediately if there is a problem with the device being used outside. Therefore, it is necessary to propose a method for recording abnormal information in a timely manner after a problem occurs in a non-debugged version of the device, so that subsequent developers can check and locate the cause of the problem.

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 for user mode to implement exception stack traceback of ARM architecture device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0022] figure 1 It shows a schematic diagram of a method for implementing ARM architecture device exception stack backtracking in user mode provided by the present invention, and the specific method is as follows:

[0023] 1. Add compilation options -fnoomit-frame-pointer and -rdynamic to the Makefile of the user mode program.

[0024] Specifica...

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 present invention provides a method for a user mode to implement an exception stack traceback of an ARM architecture device. The method comprises: adding compilation options -fnoomit-frame-pointer and -rdynamic into a Markerfile of a user mode program; adding an SIGSEGV semaphore processing function arm_debug into a user mode, wherein the processing function arm_debug is capable of printing information when the program runs abnormally; and storing the printed information when the program runs abnormally into a storage medium. According to the method provided by the present invention, by printing an ARM hardware register, exception stack information and an exception function calling relationship when the user mode program runs abnormally, and storing all the information into the storage medium, rapid positioning of the cause of a problem is facilitated, and a solution to the problem can be timely found.

Description

technical field [0001] The invention relates to the technical field of network communication, and in particular to a method for realizing abnormal stack backtracking of an ARM architecture device in a user state. Background technique [0002] In the existing technology, it is normal for the program to run with problems, so it is very important to save the first scene information when the program runs abnormally. The linux kernel has a backtracking implementation of the exception stack, and the exception information will be printed directly when the kernel is abnormal; the user mode program Debugging can use the very powerful debugging function of gdb. R&D personnel generally compile a debuggable version when debugging the program, but the hardware devices (such as switches, security gateways, etc.) shipped from the factory are all non-debugging versions. There is no way for such a factory version to gdb It is impossible for R&D personnel to go to the site to debug immediatel...

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
Inventor 高福亮
Owner OPZOON TECH