# US 2018/0024876 A1 · Tailoring diagnostic information in a multithreaded environment

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

- Number: US 2018/0024876 A1
- Document ID: US20180024876A1
- Status: Published application
- Kind: A1
- Application number: 15/213,470
- Filed: 2016-07-19
- Published: 2018-01-25
- Earliest claimed: 2016-07-19
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Edward A. Addison; Darren R. Beard; William J. Bulfin; Peggy A. DeVal; James A. Harrison; Manuela Mandelli; John S. Tilling; Andrew Wright
- Web page: https://patentgrep.com/patent/US20180024876A1

## CPC

- G06F 11/0775: {Content or structure details of the error report, e.g. specific table structure, specific error fields}
- G06F 11/0715: {in a system implementing multitasking (multitasking per se G06F9/46)}
- 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/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Tailoring diagnostic information specific to current activity of multiple threads within a computer system. A request to dump system state is received. A system dump is created, including main memory and system state information. The system dump is stored to a database. In response to a request to format the system dump, the system dump is loaded from the database, whereby a virtual memory image of system state at system dump time is created. The virtual memory image and system state information is scanned to identify tasks that were running, tasks that have failed due to an error, and tasks that were suspended at system dump time. State information and control blocks associated with the identified tasks are collected from the system dump and collated based on task number. The database is updated with a formatted system dump, including the state information and control blocks associated with the identified tasks.

## Claims

### Claim 1

A computer-implemented method for tailoring diagnostic information specific to current activity of multiple threads within a computer system, the method comprising:
receiving, by one or more processors, a request to dump system state;
creating, by one or more processors, a system dump, including main memory and system state information;
storing, by one or more processors, the system dump to a database; and
in response to a request to format the system dump:
loading, by one or more processors, the system dump from the database, whereby a virtual memory image of system state when the system dump was made is created;
scanning, by one or more processors, the virtual memory image and system state information to identify tasks that were running, tasks that have failed due to an error, and tasks that were suspended when the system dump was made;
collecting and collating based on task number, by one or more processors, from the system dump, state information and control blocks associated with the identified tasks; and
storing, by one or more processors, to the database, a formatted system dump, including the collected and collated state information and control blocks for the identified tasks.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
in response to a request to analyze the formatted system dump:
retrieving, by one or more processors, the formatted system dump from the database;
displaying, by one or more processors, via a graphical user interface (GUI), the identified tasks; and
displaying, by one or more processors, via the GUI, for each identified task, the state information and control blocks collected and collated for the task, whereby the state information and control blocks are associated with the task via hyperlinks.

### Claim 3 (depends on 1)

The method of claim 1, wherein state information and control blocks associated with the identified tasks are based on:
for each identified task that has failed due to an error, a component in which the task was running, resources associated with the task, a type of failure, and associated error information;
for each identified task that was running, a component in which the task was running and resources associated with the task; and
for each identified task that was suspended, a component in which the task was running and resources on which the task was waiting.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
for an identified task that has failed due to an error, collecting and collating, from the system dump, state information and control blocks for other identified tasks in a same component in which the identified task was running when it failed, and/or to which resources were associated that were associated with the identified task.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
for an identified task that was running, collecting and collating, from the system dump, state information and control blocks for other identified tasks in a same component in which the identified task was running, and/or to which resources were associated that were associated with the identified task.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
for an identified task that was suspended, collecting and collating, from the system dump, state information and control blocks for other identified tasks in a same component in which the identified task was running, and/or which were waiting on resources on which the identified task was waiting.

### Claim 7 (depends on 1)

The method of claim 1, wherein collecting and collating state information and control blocks associated with the identified tasks further comprises filtering out preselected types of state information and control blocks.

### Claim 8

A computer system for tailoring diagnostic information specific to current activity of multiple threads within a computer system, comprising:
one or more computer processors, one or more computer-readable storage media, and program instructions stored on one or more of the computer-readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
program instructions to receive a request to dump system state;
program instructions to create a system dump, including main memory and system state information;
program instructions to store the system dump to a database; and
program instructions, in response to a request to format the system dump, to:
load the system dump from the database, whereby a virtual memory image of system state when the system dump was made is created;
scan the virtual memory image and system state information to identify tasks that were running, tasks that have failed due to an error, and tasks that were suspended when the system dump was made;
collect and collate based on task number, from the system dump, state information and control blocks associated with the identified tasks; and
store, to the database, a formatted system dump, including the collected and collated state information and control blocks for the identified tasks.

### Claim 9 (depends on 8)

The computer system of claim 8, further comprising:
program instructions, in response to a request to analyze the formatted system dump, to:
retrieve the formatted system dump from the database;
display, via a graphical user interface (GUI), the identified tasks; and
display, via the GUI, for each identified task, the state information and control blocks collected and collated for the task, whereby the state information and control blocks are associated with the task via hyperlinks.

### Claim 10 (depends on 8)

The computer system of claim 8, wherein state information and control blocks associated with the identified tasks are based on:
for each identified task that has failed due to an error, a component in which the task was running, resources associated with the task, a type of failure, and associated error information;
for each identified task that was running, a component in which the task was running and resources associated with the task; and
for each identified task that was suspended, a component in which the task was running and resources on which the task was waiting.

### Claim 11 (depends on 10)

The computer system of claim 10, further comprising:
for an identified task that has failed due to an error, program instructions to collect and collate state information and control blocks for other identified tasks in a same component in which the identified task was running when it failed, and/or to which resources were associated that were associated with the identified task.

### Claim 12 (depends on 10)

The computer system of claim 10, further comprising:
for an identified task that was running, program instructions to collect and collate, from the system dump, state information and control blocks for other identified tasks in a same component in which the identified task was running, and/or to which resources were associated that were associated with the identified task.

### Claim 13 (depends on 10)

The computer system of claim 10, further comprising:
for an identified task that was suspended, program instructions to collect and collate state information and control blocks for other identified tasks in a same component in which the identified task was running, and/or which were waiting on resources on which the identified task was waiting.

### Claim 14 (depends on 8)

The computer system of claim 8, wherein program instructions to collect and collate state information and control blocks associated with the identified tasks further comprise program instructions to filter out preselected types of state information and control blocks.

### Claim 15

A computer program product comprising:
one or more computer-readable storage media and program instructions stored on the one or more computer-readable storage media, the program instructions comprising:
program instructions to receive a request to dump system state;
program instructions to create a system dump, including main memory and system state information;
program instructions to store the system dump to a database; and
program instructions, in response to a request to format the system dump, to:
load the system dump from the database, whereby a virtual memory image of system state when the system dump was made is created;
scan the virtual memory image and system state information to identify tasks that were running, tasks that have failed due to an error, and tasks that were suspended when the system dump was made;
collect and collate based on task number, from the system dump, state information and control blocks associated with the identified tasks; and
store, to the database, a formatted system dump, including the collected and collated state information and control blocks for the identified tasks.

### Claim 16 (depends on 15)

The computer program product of claim 15, further comprising:
program instructions, in response to a request to analyze the formatted system dump, to:
retrieve the formatted system dump from the database;
display, via a graphical user interface (GUI), the identified tasks; and
display, via the GUI, for each identified task, the state information and control blocks collected and collated for the task, whereby the state information and control blocks are associated with the task via hyperlinks.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein state information and control blocks associated with the identified tasks are based on:
for each identified task that has failed due to an error, a component in which the task was running, resources associated with the task, a type of failure, and associated error information;
for each identified task that was running, a component in which the task was running and resources associated with the task; and
for each identified task that was suspended, a component in which the task was running and resources on which the task was waiting.

### Claim 18 (depends on 17)

The computer program product of claim 17, further comprising:
for an identified task that has failed due to an error, program instructions to collect and collate state information and control blocks for other identified tasks in a same component in which the identified task was running when it failed, and/or to which resources were associated that were associated with the identified task.

### Claim 19 (depends on 17)

The computer program product of claim 17, further comprising:
for an identified task that was running, program instructions to collect and collate, from the system dump, state information and control blocks for other identified tasks in a same component in which the identified task was running, and/or to which resources were associated that were associated with the identified task.

### Claim 20 (depends on 17)

The computer program product of claim 17, further comprising:
for an identified task that was suspended, program instructions to collect and collate state information and control blocks for other identified tasks in a same component in which the identified task was running, and/or which were waiting on resources on which the identified task was waiting.
