Drive configuration debugging method based on log injection

A debugging method and log technology, which is applied in the field of computer security protection, can solve the problems of few test scenarios, short test cycle, and no too much consideration of system environment configuration function test, etc., to achieve the effect of improving reliability

Active Publication Date: 2014-02-05
TSINGHUA UNIV
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Because programmers are often confident enough in their own programs, the test cycle is short, while the function and correctness tests of device drivers often depend on specific hardware

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
  • Drive configuration debugging method based on log injection
  • Drive configuration debugging method based on log injection
  • Drive configuration debugging method based on log injection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0026] The present invention provides a log injection-based driver configuration debugging method, including:

[0027] S1. Extract configuration specification documents such as device registers of the driver;

[0028] S2. Perform detection hook injection on the driver according to the driver configuration document;

[0029] S3. Add a relevant type of log function at the detection hook position;

[0030] S4. Run the modified driver, and dynamically monitor the operation of the driver during runtime. When a configuration exception occurs, it can catch the exception in time, and automatically handle some errors. For the exception that cannot be handled, submit the log to th...

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 drive configuration debugging method based on log injection. The method includes S1, extracting configured specification documents of a drive device register; S2, performing detection hook injection on a drive according to the configured specification documents; S3, adding log functions in relevant types to positions of detection hooks; S4, operating the modified drive, and monitoring the operation of the drive dynamically during operation. The drive configuration debugging method based on the log injection has the advantages that checking codes can be inserted in the drive according to the requirements of the configured documents, configuring parameters in drive configuration can be detected dynamically during operation, errors can be recorded and processed when the errors occur, and reliability of the drive can be improved accordingly.

Description

technical field [0001] The invention relates to the technical field of computer security protection, in particular to a log injection-based driver configuration debugging method. Background technique [0002] In the current general-purpose operating system, drivers are often loaded into the kernel in the form of modules to run, and call a large number of kernel extensions. In Linux, the driver occupies 70% of the code of the operating system, and causes 3-7 times more errors than the kernel code. In Windows, it is also reported that 85% of system crashes are related to driver errors. [0003] Drivers run in the form of kernel extensions, and most of them run in the kernel state, so the reliability of the driver is very important to the system. However, since driver development is often separated from system development, slight changes in kernel extension functions may cause driver instability. In addition, many driver developers violate the usage specification of kernel ex...

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
Inventor 胡事民刘虎球白家驹马超
Owner TSINGHUA UNIV
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