# US 2017/0255535 A1 · Self-diagnosis of device drive-detected errors and automatic diagnostic data collection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0255535 A1
- Document ID: US20170255535A1
- Status: Published application
- Kind: A1
- Application number: 15/058,834
- Filed: 2016-03-02
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: HGST Netherlands B.V.
- Applicants: HGST Netherlands B.V.
- Inventors: Thomas FREEMAN; Nathan Allan RABE
- Web page: https://patentgrep.com/patent/US20170255535A1

## CPC

- G06F 11/0766: {Error or fault reporting or storing}
- G06F 11/349: {for interfaces, buses}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A self-diagnostic device driver includes a memory that stores machine instructions and a processor coupled to the memory that executes the machine instructions to record an operational history associated with the device driver. The processor further executes the machine instructions to detect an error associated with the device driver, remove an associated driver from service, and automatically replicate a sequence of device driver operations corresponding to a segment of the operational history immediately preceding detection of the error. The processor also executes the machine instructions to automatically record a diagnostic history associated with the device driver while replicating the sequence of device driver operations. After the sequence has been replicated, the device is returned to service.

## Claims

### Claim 1

An apparatus for self-diagnosis of a device driver, comprising:
a memory that stores machine instructions; and
a processor coupled to the memory that executes the machine instructions to record an operational history associated with the device driver, detect an error associated with the device driver, automatically replicate a sequence of device driver operations corresponding to a segment of the operational history preceding detection of the error, and automatically record a diagnostic history associated with the device driver while replicating the sequence of device driver operations.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processor further executes the machine instructions to suspend normal operations of a device associated with the device driver while the sequence of device driver operations are automatically replicated and resume normal operations of the device after the sequence of device driver operations has been automatically replicated.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the processor further executes the machine instructions to duplicate the error while the sequence of device driver operations are automatically replicated.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the processor further executes the machine instructions to configure a control setting, wherein the sequence of device driver operations are automatically replicated and automatically recorded based on the control setting currently being configured to enable self-diagnosis.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the apparatus does not require an intervention by an operator to automatically replicate and automatically record the sequence of device driver operations.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the operational history corresponds to a period of normal operation of the device.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein recording the operational history includes recording device driver operations associated with a plurality of processes associated with the host computer.

### Claim 8

A method of self-diagnosis for a device driver, comprising:
recording an operational history associated with the device driver;
detecting an error associated with the device driver;
automatically replicating a sequence of device driver operations corresponding to a segment of the operational history preceding detection of the error; and
automatically recording a diagnostic history associated with the device driver while replicating the sequence of device driver operations.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
suspending normal operations of a device associated with the device driver while automatically replicating the sequence of device driver operations; and
resuming normal operations of the device after automatically replicating the sequence of device driver operations.

### Claim 10 (depends on 8)

The method of claim 8, further comprising duplicating the error while automatically replicating the sequence of device driver operations.

### Claim 11 (depends on 8)

The method of claim 8, further comprising configuring a control setting, wherein the automatically replicating and automatically recording are only performed based on the control setting currently being configured to enable self-diagnosis.

### Claim 12 (depends on 8)

The method of claim 8, wherein the segment of the operational history corresponds to a predetermined period of time.

### Claim 13 (depends on 8)

The method of claim 8, wherein the segment of the operational history corresponds to a predetermined number of device driver operations.

### Claim 14 (depends on 8)

The method of claim 8, wherein automatically replicating and automatically recording do not require an intervention by an operator.

### Claim 15 (depends on 8)

The method of claim 8, further comprising sending a command from the device driver to a device communicatively connected with a host computer, wherein the device driver is executed on the host computer.

### Claim 16 (depends on 8)

The method of claim 8, wherein the operational history corresponds to a period of normal operation of the device.

### Claim 17 (depends on 8)

The method of claim 8, wherein recording the operational history includes recording at least one selected from the group consisting of a system call received by the device driver from an operating system associated with the host computer, a command sent to the device from the device driver, and a routine executed by the device driver.

### Claim 18 (depends on 8)

The method of claim 8, wherein recording the operational history includes recording device driver operations associated with a plurality of processes associated with the host computer.

### Claim 19

A computer program product for self-diagnosis of a device driver, comprising:
a non-transitory, computer-readable storage medium encoded with instructions adapted to be executed by a processor to implement:
recording an operational history associated with the device driver;
detecting an error associated with the device driver;
automatically replicating a sequence of device driver operations corresponding to a segment of the operational history preceding detection of the error; and
automatically recording a diagnostic history associated with the device driver while replicating the sequence of device driver operations.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the instructions are further adapted to implement:
suspending normal operations of a device associated with the device driver while automatically replicating the sequence of device driver operations; and
resuming normal operations of the device after automatically replicating the sequence of device driver operations.
