# US 2017/0286257 A1 · Remotely debugging an operating system

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

- Number: US 2017/0286257 A1
- Document ID: US20170286257A1
- Status: Published application
- Kind: A1
- Application number: 15/083,375
- Filed: 2016-03-29
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Gregory Etelson; Constantine Gavrilov; Alexander Snast
- Web page: https://patentgrep.com/patent/US20170286257A1

## CPC

- G06F 11/366: {using diagnostics (G06F11/0703 takes precedence)}
- G06F 11/0712: {in a virtual computing platform, e.g. logically partitioned systems}
- G06F 11/362: Debugging of software
- G06F 11/3698: Environments for analysis, debugging or testing of software
- H04L 67/025: for remote control or remote monitoring of applications
- G06F 11/0709: {in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- H04L 41/0661: {by reconfiguring faulty entities}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Remotely debugging a non-responsive operating system (OS) of a computer system. Central processing units (CPUs) in a computer system are bound to receive queues of a network adapter. Interrupts for a CPU is disabled, wherein the CPU is not available to process hardware interrupt requests queued in the bound receive queues. A debugging message including debugging commands is received by the network adapter, wherein the debugging message is stored in a first receive queue of the network adapter bound to a first CPU. If the first CPU is available, the debugging commands in the debugging message stored in the first of the one or more receive queues of the network adapter are identified by a debugger of the computer system. The identified debugging commands are executed by the CPU to debug the non-responsive OS of the computer system.

## Claims

### Claim 1

A method comprising:
binding each of a plurality of central processing units (CPUs) in a computer system to one or more receive queues of a network adapter, wherein each of the one or more receive queues is configured to queue a hardware interrupt request of the network adapter;
disabling interrupts for one or more of the plurality of CPUs, wherein the one or more of the plurality of CPUs are not available to process hardware interrupt requests queued in the one or more bound receive queues, and an operating system (OS) of the computer system becomes non-responsive;
receiving, by the network adapter, a debugging message including debugging commands, wherein the debugging message is stored in a first of the one or more receive queues of the network adapter bound to a first of the plurality of CPUs, and wherein the debugging message corresponds to a first hardware interrupt request queued in the first of the one or more receive queues;
responsive to determining that a first of the plurality of CPUs is available to process the first hardware interrupt request, identifying, by a debugger of the computer system, the debugging commands in the debugging message stored in the first of the one or more receive queues of the network adapter; and
executing the identified debugging commands, by the first of the plurality of CPU's to debug the non-responsive OS of the computer system.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
binding, by the network adapter, the one or more receive queues to a remote node using a destination vector based on one or more of: Internet Protocol (IP) address, InfiniBand address, InfiniBand connection, Fibre Channel (FC) address, FC connection, vendor defined management attribute in a data payload, or another network interface identification and location addressing mechanism.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
responsive to determining that the first of the plurality of CPUs is not available to process the first hardware interrupt, receiving, by the network adapter, the debugging message including debugging commands, wherein the debugging message is stored in a second of the one or more receive queues of the network adapter bound to a second of the plurality of CPUs, and wherein the debugging message corresponds to a second hardware interrupt request queued in the second of the one or more receive queues;
responsive to determining that the second of the plurality of CPUs is available to process the second hardware interrupt, identifying, by the debugger of the computer system, the debugging commands in the debugging message stored in the second of the one or more receive queues of the network adapter; and
executing the identified debugging commands, by the second of the plurality of CPU's to debug the non-responsive OS of the computer system.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating, by an interrupt handler of the network adapter, the first hardware interrupt for the debugging message received by the network adapter; and
queueing, by the network adapter, the first hardware interrupt request in the first of the one or more receive queues of the network adapter.

### Claim 5 (depends on 1)

The method of claim 1, wherein the debugging message includes: a back-trace of one of the plurality of CPUs, a register state of one of the plurality of CPUs, a process list, a process back-trace, one or more operational steps for enabling or disabling hardware interrupts for one of the plurality of CPUs, one or more operational steps for hardware interrupt debugging, a list back-trace of one or more application programs that disabled one or more hardware interrupts.

### Claim 6 (depends on 1)

The method of claim 1, wherein the debugging message received by the network adapter is a network packet including a payload.

### Claim 7 (depends on 6)

The method of claim 6, wherein identifying, by the debugger of the computer system, the debugging commands in the received debugging message, comprises:
reading, by the debugger of the computer system, the payload of the received network packet to identify the debugging commands in the debugging message stored in the first of the one or more receive queues of the network adapter.

### Claim 8

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 bind each of a plurality of central processing units (CPUs) in a computer system to one or more receive queues of a network adapter, wherein each of the one or more receive queues is configured to queue a hardware interrupt request of the network adapter;
program instructions to disable interrupts for one or more of the plurality of CPUs, wherein the one or more of the plurality of CPUs are not available to process hardware interrupt requests queued in the one or more bound receive queues, and an operating system (OS) of the computer system becomes non-responsive;
program instructions to receive by the network adapter, a debugging message including debugging commands, wherein the debugging message is stored in a first of the one or more receive queues of the network adapter bound to a first of the plurality of CPUs, and wherein the debugging message corresponds to a first hardware interrupt request queued in the first of the one or more receive queues;
program instructions to, responsive to determining that a first of the plurality of CPUs is available to process the first hardware interrupt request, identify by a debugger of the computer system, the debugging commands in the debugging message stored in the first of the one or more receive queues of the network adapter; and
program instructions to execute the identified debugging commands, by the first of the plurality of CPU's to debug the non-responsive OS of the computer system.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to bind by the network adapter, the one or more receive queues to a remote node using a destination vector based on one or more of: Internet Protocol (IP) address, InfiniB and address, InfiniB and connection, Fibre Channel (FC) address, FC connection, vendor defined management attribute in a data payload, or another network interface identification and location addressing mechanism.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that the first of the plurality of CPUs is not available to process the first hardware interrupt, receive by the network adapter, the debugging message including debugging commands, wherein the debugging message is stored in a second of the one or more receive queues of the network adapter bound to a second of the plurality of CPUs, and wherein the debugging message corresponds to a second hardware interrupt request queued in the second of the one or more receive queues;
program instructions to, responsive to determining that the second of the plurality of CPUs is available to process the second hardware interrupt, identify by the debugger of the computer system, the debugging commands in the debugging message stored in the second of the one or more receive queues of the network adapter; and
executing the identified debugging commands, by the second of the plurality of CPU's to debug the non-responsive OS of the computer system.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to generate by an interrupt handler of the network adapter, the first hardware interrupt for the debugging message received by the network adapter; and
program instructions to queue by the network adapter, the first hardware interrupt request in the first of the one or more receive queues of the network adapter.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein the debugging message includes: a back-trace of one of the plurality of CPUs, a register state of one of the plurality of CPUs, a process list, a process back-trace, one or more operational steps for enabling or disabling hardware interrupts for one of the plurality of CPUs, one or more operational steps for hardware interrupt debugging, a list back-trace of one or more application programs that disabled one or more hardware interrupts.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein the debugging message received by the network adapter is a network packet including a payload.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein the program instructions to identify by the debugger of the computer system, the debugging commands in the received debugging message, comprises:
program instructions to read by the debugger of the computer system, the payload of the received network packet to identify the debugging commands in the debugging message stored in the first of the one or more receive queues of the network adapter.

### Claim 15

A computer system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions stored on the computer readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
program instructions to bind each of a plurality of central processing units (CPUs) in a computer system to one or more receive queues of a network adapter, wherein each of the one or more receive queues is configured to queue a hardware interrupt request of the network adapter;
program instructions to disable interrupts for one or more of the plurality of CPUs, wherein the one or more of the plurality of CPUs are not available to process hardware interrupt requests queued in the one or more bound receive queues, and an operating system (OS) of the computer system becomes non-responsive;
program instructions to receive by the network adapter, a debugging message including debugging commands, wherein the debugging message is stored in a first of the one or more receive queues of the network adapter bound to a first of the plurality of CPUs, and wherein the debugging message corresponds to a first hardware interrupt request queued in the first of the one or more receive queues;
program instructions to, responsive to determining that a first of the plurality of CPUs is available to process the first hardware interrupt request, identify by a debugger of the computer system, the debugging commands in the debugging message stored in the first of the one or more receive queues of the network adapter; and
program instructions to execute the identified debugging commands, by the first of the plurality of CPU's to debug the non-responsive OS of the computer system.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to bind by the network adapter, the one or more receive queues to a remote node using a destination vector based on one or more of: Internet Protocol (IP) address, InfiniB and address, InfiniB and connection, Fibre Channel (FC) address, FC connection, vendor defined management attribute in a data payload, or another network interface identification and location addressing mechanism.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to, responsive to determining that the first of the plurality of CPUs is not available to process the first hardware interrupt, receive by the network adapter, the debugging message including debugging commands, wherein the debugging message is stored in a second of the one or more receive queues of the network adapter bound to a second of the plurality of CPUs, and wherein the debugging message corresponds to a second hardware interrupt request queued in the second of the one or more receive queues;
program instructions to, responsive to determining that the second of the plurality of CPUs is available to process the second hardware interrupt, identify by the debugger of the computer system, the debugging commands in the debugging message stored in the second of the one or more receive queues of the network adapter; and
executing the identified debugging commands, by the second of the plurality of CPU's to debug the non-responsive OS of the computer system.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein the program instructions stored on the one or more computer readable storage media further comprise:
program instructions to generate by an interrupt handler of the network adapter, the first hardware interrupt for the debugging message received by the network adapter; and
program instructions to queue by the network adapter, the first hardware interrupt request in the first of the one or more receive queues of the network adapter.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein the debugging message includes: a back-trace of one of the plurality of CPUs, a register state of one of the plurality of CPUs, a process list, a process back-trace, one or more operational steps for enabling or disabling hardware interrupts for one of the plurality of CPUs, one or more operational steps for hardware interrupt debugging, a list back-trace of one or more application programs that disabled one or more hardware interrupts.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein the debugging message received by the network adapter is a network packet including a payload.
