# US 11,119,890 B2 · Instruction level tracing for analyzing processor failure

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

- Number: US 11,119,890 B2
- Document ID: US11119890B2
- Status: Granted
- Kind: B2
- Application number: 16/553,991
- Filed: 2019-08-28
- Published: 2021-03-04
- Granted: 2021-09-14
- Earliest claimed: 2019-08-28
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Saurabh Chadha; Daniel Lewis; Diyanesh B. Chinnakkonda Vidyapoornachary
- Web page: https://patentgrep.com/patent/US11119890B2

## CPC

- G06F 11/3414: {Workload generation, e.g. scripts, playback}
- G06F 11/3636: {by tracing the execution of the program}
- G06F 11/0721: {within a central processing unit [CPU]}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0754: {by exceeding limits}
- G06F 11/273: Tester hardware, i.e. output processing circuits {(G06F11/263 takes precedence)}
- G06F 11/348: {Circuit details, i.e. tracer hardware}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method for instruction-level tracing for analyzing processor failure includes detecting a failure during operation of a processor circuit. The method further includes parsing a miscompare trace to determine a plurality of opcodes executed by the processor prior to the failure. The method further includes generating a workload comprising a set of opcodes by filtering the set of opcodes from the miscompare trace. The method further includes performing a consistency check of the workload to determine a commit ratio of the workload, the commit ratio indicative of a number of times the failure occurs when the workload is executed a predetermined number of times. The method further includes using the workload for debugging the failure based on the commit ratio being above a predetermined threshold.

## Claims

### Claim 1

A computer-implemented method for instruction-level tracing for analyzing processor failure to debug a circuit of a processor, the computer-implemented method comprising:
detecting, by the processor, a failure during operation of the processor;
parsing, by the processor, a miscompare trace to determine a plurality of opcodes executed by the processor prior to the failure, the miscompare trace comprising an instruction stream executed by the processor, wherein the instruction stream comprises the opcodes, which indicate machine instructions executed by the processor;
generating, by the processor, a workload comprising a set of opcodes by filtering the set of opcodes from the miscompare trace;
performing, by the processor, a consistency check of the workload to determine a commit ratio of the workload, the commit ratio indicative of a number of times the failure occurs when the workload is executed a predetermined number of times; and
executing, by the processor, the workload for debugging the failure based on the commit ratio being above a predetermined threshold.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein generating the workload comprises determining a type of the failure and filtering the set of opcodes based on the type of the failure.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein, based on the type of the failure being core/thread hang, filtering the set of opcodes comprises searching for the last opcode that caused the failure.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein, based on the type of the failure being one associated with a specific component circuit of the processor, filtering the set of opcodes comprises searching for opcodes that are specifically executed by the specific component circuit.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the specific component circuit is one from a group of component circuits comprising a load-store unit, an instruction-fetch unit, and a vector/scalar execution unit.

### Claim 6 (depends on 2)

The computer-implemented method of claim 2, wherein, based on the type of the failure being a CPU/FPU miscompare, filtering the set of opcodes comprises identifying one or more opcodes that are repeated at least a predetermined number of times and including the one or more opcodes in the workload.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the method further comprises, optimizing the workload by selecting an optimizing algorithm from a group comprising static optimization, dynamic optimization, and elimination optimization.

### Claim 8

A system comprising:
a memory; and
a processor coupled with the memory, the processor configured to perform a method for instruction-level tracing for analyzing a processor failure, the method comprising:
detecting a failure during operation of the processor circuit;
parsing a miscompare trace to determine a plurality of opcodes executed by the processor prior to the failure, the miscompare trace comprising an instruction stream executed by the processor, wherein the instruction stream comprises the opcodes, which indicate machine instructions executed by the processor;
generating a workload comprising a set of opcodes by filtering the set of opcodes from the miscompare trace;
performing a consistency check of the workload to determine a commit ratio of the workload, the commit ratio indicative of a number of times the failure occurs when the workload is executed a predetermined number of times; and
executing the workload for debugging the failure based on the commit ratio being above a predetermined threshold.

### Claim 9 (depends on 8)

The system of claim 8, wherein generating the workload comprises determining a type of the failure and filtering the set of opcodes based on the type of the failure.

### Claim 10 (depends on 9)

The system of claim 9, wherein, based on the type of the failure being core/thread hang, filtering the set of opcodes comprises searching for the last opcode that caused the failure.

### Claim 11 (depends on 9)

The system of claim 9, wherein, based on the type of the failure being one associated with a specific component circuit of the processor, filtering the set of opcodes comprises searching for opcodes that are specifically executed by the specific component circuit.

### Claim 12 (depends on 11)

The system of claim 11, wherein the specific component circuit is one from a group of component circuits comprising a load-store unit, an instruction-fetch unit, and a vector/scalar execution unit.

### Claim 13 (depends on 9)

The system of claim 9, wherein, based on the type of the failure being a CPU/FPU miscompare, filtering the set of opcodes comprises identifying one or more opcodes that are repeated at least a predetermined number of times and including the one or more opcodes in the workload.

### Claim 14 (depends on 13)

The system of claim 13, wherein the method further comprises, optimizing the workload by selecting an optimizing algorithm from a group comprising static optimization, dynamic optimization, and elimination optimization.

### Claim 15

A computer program product comprising a computer-readable storage medium having program instructions embodied therewith, the program instructions executable by a processing circuit to perform a method for instruction-level tracing for analyzing a processor failure, the method comprising:
detecting a failure during operation of a processor circuit;
parsing a miscompare trace to determine a plurality of opcodes executed by the processor prior to the failure, the miscompare trace comprising an instruction stream executed by the processor, wherein the instruction stream comprises the opcodes, which indicate machine instructions executed by the processor;
generating a workload comprising a set of opcodes by filtering the set of opcodes from the miscompare trace;
performing a consistency check of the workload to determine a commit ratio of the workload, the commit ratio indicative of a number of times the failure occurs when the workload is executed a predetermined number of times; and
executing the workload for debugging the failure based on the commit ratio being above a predetermined threshold.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein generating the workload comprises determining a type of the failure and filtering the set of opcodes based on the type of the failure.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein, based on the type of the failure being core/thread hang, filtering the set of opcodes comprises searching for the last opcode that caused the failure.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein, based on the type of the failure being one associated with a specific component circuit of the processor, filtering the set of opcodes comprises searching for opcodes that are specifically executed by the specific component circuit.

### Claim 19 (depends on 16)

The computer program product of claim 16, wherein, based on the type of the failure being a CPU/FPU miscompare, filtering the set of opcodes comprises identifying one or more opcodes that are repeated at least a predetermined number of times and including the one or more opcodes in the workload.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the method further comprises, optimizing the workload by selecting an optimizing algorithm from a group comprising static optimization, dynamic optimization, and elimination optimization.
