IP Library Granted Patent US 8,990,776
Granted Patent B2
US 8,990,776 · App. 13/216,245 · Granted Mar 24, 2015

Computing device and device driver debugging method

Inventor: Yu Tong (Shenzhen, CN)
Assignee: Zhongshan Innocloud Intellectual Property Services Co., Ltd.
G06F11/362
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,990,776
App. No.
13/216,245
Granted
Mar 24, 2015
Kind
B2
Abstract

In a method for debugging device drivers of a computing device, a command line interface (CLI) is created in a user space of an operating system of the computing device. A command input by a user is received through the CLI, and transmitted to a kernel space of the operating system. The command is parsed to determine a function of a device driver and parameters of the function. An address of the function is inquired in the kernel space. The function is debugged according to the address of the function in the kernel space.

Claims (36)

1. A computerized method for debugging device drivers of a computing device, the method comprising:

creating a command line interface (CLI) in a user space of an operating system of the computing device;

receiving a command input by a user through the CLI using an input device of the computing device, and transmitting the received command to a kernel space of the operating system;

parsing the command to determine a function of a device driver of the computing device and parameters of the function when the command is transmitted to the kernel space, the device driver storing different class of debugging information;

determining a class of debugging information of the function and a switch state of the debugging information according to the parameters from the parsed command, the parameters comprising a first parameter representing a class of debugging information and a second parameter representing a switch state of the debugging information to determine whether debugging information of the function is enabled to be output; inquiring an address of the function in the kernel space; and

debugging the function of the device driver according to the address of the function in the kernel space; and

controlling debugging information corresponding to the determined class of the debugging information from the device driver to be output when the switch state of the debugging information is the switch on state, or controlling debugging information corresponding to the determined class of the debugging information from the device driver not to be output when the switch state of the debugging information is the switch off state.

2. The method according to claim 1 , further comprising:

generating an error message to notify the user of errors, if the command fails to transmit to the kernel space or the address of the function is not inquired in the kernel space.

3. The method according to claim 1 , wherein when the second parameter is equal to “1” representing the switch on state of the debugging information, and when the second parameter is equal to “0” representing that the switch off state of the debugging information.

4. A computing device, comprising:

an output device;

at least one processor;

a storage system; and

one or more programs stored in the storage system and being executable by the at least one processor, the one or more programs comprising:

an interface creation module that creates a command line interface (CLI) in a user space of an operating system of the computing device;

a command transmission module that receives a command input by a user through the CLI, and transmits the received command to a kernel space of the operating system;

a command parse module that parses the command to determine a function of a device driver of the computing device and parameters of the function when the command is transmitted to the kernel space, the device driver storing different class of debugging information;

the command parse module further determines a class of debugging information of the function and a switch state of the debugging information according to the parameters from the parsed command, the parameters comprising a first parameter representing a class of debugging information and a second parameter representing a switch state of the debugging information to determine whether debugging information of the function is enabled to be output;

an address inquiry module that inquires an address of the function in the kernel space; and

a function debugging module that debugs the function of the device driver according to the address of the function in the kernel space; and

the function debugging module further controls debugging information corresponding to the determined class of the debugging information from the device driver to be output when the switch state of the debugging information is the switch on state, or controls debugging information corresponding to the determined class of the debugging information from the device driver not to be output when the switch state of the debugging information is the switch off state.

5. The computing device according to claim 4 , wherein the one or more programs further comprising:

an error notification module operable to generate an error message to notify the user of errors, if the command fails to transmit to the kernel space or the address of the function is not inquired in the kernel space.

6. The computing device according to claim 4 , wherein when the second parameter is equal to “1” representing the switch on state of the debugging information, and when the second parameter is equal to“0” representing that the switch off state of the debugging information.

7. A non-transitory storage medium storing a set of instructions, the set of instructions capable of being executed by a processor of a computing device, cause the computing device to perform a method for debugging device drivers, the method comprising:

creating a command line interface (CLI) in a user space of an operating system of the computing device;

receiving a command input by a user through the CLI using an input device of the computing device, and transmitting the received command to a kernel space of the operating system;

parsing the command to determine a function of a device driver of the computing device and parameters of the function when the command is transmitted to the kernel space, the device driver storing different class of debugging information;

determining a class of debugging information of the function and a switch state of the debugging information according to the parameters from the parsed command, the parameters comprising a first parameter representing a class of debugging information and a second parameter representing a switch state of the debugging information to determine whether debugging information of the function is enabled to be output;

inquiring an address of the function in the kernel space; and

debugging the function of the device driver according to the address of the function in the kernel space;

controlling debugging information corresponding to the determined class of the debugging information from the device driver to be output when the switch state of the debugging information is the switch on state, or controlling debugging information corresponding to the determined class of the debugging information from the device driver not to be output when the switch state of the debugging information is the switch off state.

8. The non-transitory storage medium according to claim 7 , wherein the method further comprises:

generating an error message to notify the user of errors, if the command fails to transmit to the kernel space or the address of the function is not inquired in the kernel space.

9. The non-transitory storage medium according to claim 7 , wherein when the second parameter is equal to “1” representing the switch on state of the debugging information, and when the second parameter is equal to“0” representing that the switch off state of the debugging information.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 10, 2019
From: ZHONGSHAN INNOCLOUD INTELLECTUAL PROPERTY SERVICES CO.,LTD.
To: SCIENBIZIP CONSULTING(SHENZHEN)CO.,LTD.
Reel/Frame 050709/0949 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 9, 2015
From: SCIENBIZIP CONSULTING(SHENZHEN)CO.,LTD.
To: ZHONGSHAN INNOCLOUD INTELLECTUAL PROPERTY SERVICES CO.,LTD.
Reel/Frame 034923/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 18, 2014
From: HON HAI PRECISION INDUSTRY CO., LTD.; HONG FU JIN PRECISION INDUSTRY (SHENZHEN) CO., LTD.
To: SCIENBIZIP CONSULTING(SHENZHEN)CO.,LTD.
Reel/Frame 034542/0820 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 24, 2011
From: TONG, YU
To: HONG FU JIN PRECISION INDUSTRY (SHENZHEN) CO., LTD.; HON HAI PRECISION INDUSTRY CO., LTD.
Reel/Frame 026795/0323 →
Priority Claims (1)
CN 2010 1 0546385 · Nov 16, 2010 · national
Continuity (1)
Related Publication 20120124556A1 · May 17, 2012