Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for detecting deadlock of linux user mode spin lock

A technology of deadlock detection and spinlock, applied in error detection/correction, software testing/debugging, instruments, etc., can solve problems such as deadlock

Inactive Publication Date: 2017-01-04
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there is also a deadlock problem in the user mode C program of the Linux system.

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 system for detecting deadlock of linux user mode spin lock
  • Method and system for detecting deadlock of linux user mode spin lock
  • Method and system for detecting deadlock of linux user mode spin lock

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.

[0036] The embodiment of the invention discloses a method and a system for detecting a spin-lock deadlock in a linux user state, so as to realize the detection of a spin-lock deadlock in a user state.

[0037] see figure 1 , a kind of linux user state spin lock deadlock detection method provided by the embodiment of the present invention, comprises:

[0038] S101. Encapsulate the data structure of the user state spin lock;

[0039] Wherein, the data structure of ...

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 system for detecting deadlock of a linux user mode spin lock. The method comprises: packaging a data structure of the user mode spin lock; packaging an interface of the user mode spin lock, introducing a lockdep kernel deadlock detection function, and compiling to generate a spin lock deadlock detection library file; when a user mode program is compiled, introducing the spin lock deadlock detection library file, and detecting whether the spin lock of the user mode program has the deadlock problem; if the spin lock of the user mode program has the deadlock problem, inputting deadlock information; if the spin lock of the user mode program does not have the deadlock problem, continuing to execute the user mode program. Visually, in the embodiment, by calling a kernel lockdep code, detection on deadlock of the user mode spin lock is implemented, and deadlock of the user mode C program can be effectively detected out.

Description

technical field [0001] The invention relates to the field of fault management of operating systems, and more specifically, to a method and system for detecting spin-lock deadlock in a linux user state. Background technique [0002] At present, kernel deadlock is one of the problems that have plagued kernel developers for a long time, but since the kernel introduced the lockdep debugging module, kernel deadlock has been resolved. However, there is also a deadlock problem in the Linux system user state C program. [0003] Therefore, how to detect user-mode spinlock deadlock is a problem to be solved by those skilled in the art. Contents of the invention [0004] The purpose of the present invention is to provide a linux user state spin lock deadlock detection method and system, so as to realize the detection of user state spin lock deadlock. [0005] In order to achieve the above object, the embodiment of the present invention provides the following technical solutions: ...

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): G06F11/36
CPCG06F11/3624G06F11/366
Inventor 王垒徐亚洲
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products