# US 2021/0173735 A1 · Dynamic logging and prioritization of error incident data

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

- Number: US 2021/0173735 A1
- Document ID: US20210173735A1
- Status: Published application
- Kind: A1
- Application number: 17/180,980
- Filed: 2021-02-22
- Published: 2021-06-10
- Earliest claimed: 2019-09-10
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Richard Mark Sczepczenski; George Kuch; Daniel Hughes; Pascal Bastien; Luke Hopkins; Mahmoud Amin; Dan Vangor; Ying-Yeung Li; Myron Wisniewski; Margaret Frances Kaelin Dubowsky; Anmar A Al Zubaydi
- Web page: https://patentgrep.com/patent/US20210173735A1

## CPC

- G06F 11/0775: {Content or structure details of the error report, e.g. specific table structure, specific error fields}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0778: {Dumping, i.e. gathering error/state information after a fault for later diagnosis}
- G06F 11/0787: {Storage of error reports, e.g. persistent data storage, storage using memory protection}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Aspects of the invention include receiving an error code describing a computer hardware or firmware error. A list of data items to be collected to assist in correcting the error is received. The contents of the list are selected based at least in part on the error code and are in priority order. The data items in the list are collected and a buffer to store the collected data items is selected. At least a subset of the collected data items to be written is transmitted to the buffer. All of the collected data items are transmitted to the buffer when the buffer is large enough to hold all of the data items in the list. A subset of the collected data items are transmitted to the buffer in priority order when the buffer is not large enough to hold all of the data in the list.

## Claims

### Claim 1

A method comprising:
receiving an error code describing a computer hardware or firmware error;
receiving a list of data items to be collected to assist in correcting the error, the contents of the list selected based at least in part on the error code, and the contents of the list in priority order from a highest priority data item to a lowest priority data item;
collecting the data items in the list;
selecting a buffer to store the collected data items; and
transmitting at least a subset of the collected data items to be written to the buffer, wherein all of the collected data items are transmitted to the buffer when the buffer is large enough to hold all of the data items in the list, and a subset of the collected data items are transmitted to the buffer in priority order starting with the highest priority data item when the buffer is not large enough to hold all of the data in the list.

### Claim 2 (depends on 1)

The method of claim 1, wherein building a list of data items to be collected comprises:
accessing a logging table corresponding to the error, the logging table comprising a plurality of entries in priority order, each entry pointing to one selected from the group consisting of another logging table, a data item, and a firmware function that returns a data item, the accessing following the priority order to build the list of data items.

### Claim 3 (depends on 1)

The method of claim 1, wherein the list is organized as a linked list.

### Claim 4 (depends on 1)

The method of claim 1, wherein an amount of storage space required to hold the data items in the list is determined based on the error code and the selecting a buffer is based at least in part on the amount of storage space required to hold the data items in the list.

### Claim 5 (depends on 1)

The method of claim 1, wherein the buffer is selected from a pool of buffers having a variety of sizes and the buffer is the largest buffer available in the pool of buffers.

### Claim 6 (depends on 5)

The method of claim 5, where the buffer is not large enough to hold all of the data in the list.

### Claim 7 (depends on 6)

The method of claim 6, wherein multiple buffers are selected to store the collected data items.

### Claim 8 (depends on 1)

The method of claim 1, wherein the buffer is selected from a pool of buffers having a variety of sizes and the buffer is the smallest buffer available in the pool of buffers that can hold all of the data items in the list.

### Claim 9 (depends on 1)

The method of claim 1, wherein the buffer is located on a remote system and the method further comprises subsequent to the selecting, determining that the remote system is currently unavailable and queuing the collected data until the remote system becomes available, wherein the selecting is performed subsequent to the remote system becoming available.

### Claim 10

A system comprising:
one or more processors for executing computer readable instructions, the computer readable instructions controlling the one or more processors to perform operations comprising:
receiving an error code describing a computer hardware or firmware error;
receiving a list of data items to be collected to assist in correcting the error, the contents of the list selected based at least in part on the error code, and the contents of the list in priority order from a highest priority data item to a lowest priority data item;
collecting the data items in the list;
selecting a buffer to store the collected data items; and
transmitting at least a subset of the collected data items to be written to the buffer, wherein all of the collected data items are transmitted to the buffer when the buffer is large enough to hold all of the data items in the list, and a subset of the collected data items are transmitted to the buffer in priority order starting with the highest priority data item when the buffer is not large enough to hold all of the data in the list.

### Claim 11 (depends on 10)

The system of claim 10, wherein building a list of data items to be collected comprises:
accessing a logging table corresponding to the error, the logging table comprising a plurality of entries in priority order, each entry pointing to one selected from the group consisting of another logging table, a data item, and a firmware function that returns a data item, the accessing following the priority order to build the list of data items.

### Claim 12 (depends on 10)

The system of claim 10, wherein an amount of storage space required to hold the data items in the list is determined based on the error code and the selecting a buffer is based at least in part on the amount of storage space required to hold the data items in the list.

### Claim 13 (depends on 10)

The system of claim 10, wherein the buffer is selected from a pool of buffers having a variety of sizes and the buffer is the largest buffer available in the pool of buffers.

### Claim 14 (depends on 13)

The system of claim 13, where the buffer is not large enough to hold all of the data in the list.

### Claim 15 (depends on 14)

The system of claim 14, wherein multiple buffers are selected to store the collected data items.

### Claim 16 (depends on 10)

The system of claim 10, wherein the buffer is selected from a pool of buffers having a variety of sizes and the buffer is the smallest buffer available in the pool of buffers that can hold all of the data items in the list.

### Claim 17 (depends on 10)

The system of claim 10, wherein the buffer is located on a remote system and the operations further comprise, subsequent to the selecting, determining that the remote system is currently unavailable and queuing the collected data until the remote system becomes available, wherein the selecting is performed subsequent to the remote system becoming available.

### Claim 18

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform operations comprising:
receiving an error code describing a computer hardware or firmware error;
receiving a list of data items to be collected to assist in correcting the error, the contents of the list selected based at least in part on the error code, and the contents of the list in priority order from a highest priority data item to a lowest priority data item;
collecting the data items in the list;
selecting a buffer to store the collected data items; and
transmitting at least a subset of the collected data items to be written to the buffer, wherein all of the collected data items are transmitted to the buffer when the buffer is large enough to hold all of the data items in the list, and a subset of the collected data items are transmitted to the buffer in priority order starting with the highest priority data item when the buffer is not large enough to hold all of the data in the list.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein building a list of data items to be collected comprises:
accessing a logging table corresponding to the error, the logging table comprising a plurality of entries in priority order, each entry pointing to one selected from the group consisting of another logging table, a data item, and a firmware function that returns a data item, the accessing following the priority order to build the list of data items.

### Claim 20 (depends on 18)

The computer program product of claim 18, wherein the buffer is located on a remote system and the method further comprises subsequent to the selecting, determining that the remote system is currently unavailable and queuing the collected data until the remote system becomes available.
