# US 2013/0254748 A1 · Partial Recording of a Computer Program Execution for Replay

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

- Number: US 2013/0254748 A1
- Document ID: US20130254748A1
- Status: Published application
- Kind: A1
- Application number: 13/892,692
- Filed: 2013-05-13
- Published: 2013-09-26
- Earliest claimed: 2010-04-21
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dinesh K. Subhraveti
- Web page: https://patentgrep.com/patent/US20130254748A1

## CPC

- G06F 11/3636: {by tracing the execution of the program}
- G06F 9/44: Arrangements for executing specific programs
- G06F 11/366: {using diagnostics (G06F11/0703 takes precedence)}
- G06F 11/3692: {for test results analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, system and program product for recording a program execution comprising recording processor context for each thread of the program, results of system calls by the program, and memory pages accessed by the program during an execution interval in a checkpoint file. Processor context includes register contents and descriptor entries in a segment descriptor table of the operating system. System calls are recorded for each program thread, tracked by an extension to the operating system kernel and include returned call parameter data. Accessed memory pages are recorded for each program process and include data, libraries and code pages. The program address space, processor context, and program threads are reconstructed from checkpoint data for replaying the program execution in a different operating system environment.

## Claims

### Claim 1

A computer-implemented method, comprising:
creating a shadow process for a program process being executed;
in response to an accessed memory page being modified by the program process, recording an original copy of a modified memory page obtained from the shadow process in a partial checkpoint; and
replaying a program execution using the partial checkpoint.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein system call results and accessed memory pages are recorded.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the accessed memory pages include data pages accessed by the program process and library code pages executed by the program process.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising replaying the program execution in a different operating system using the partial checkpoint.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the replaying comprises reconstructing a memory address space accessed by the program during the recording using the partial checkpoint.

### Claim 6 (depends on 4)

The computer-implemented method of claim 4, wherein the replaying comprises loading the accessed memory pages into a system memory and loading the processor context into a system processor using the partial checkpoint.

### Claim 7 (depends on 4)

The computer-implemented method of claim 4, wherein the replaying comprises restoring program threads and segment descriptors in an operating system using the partial checkpoint.

### Claim 8 (depends on 4)

The computer-implemented method of claim 4, wherein the replaying comprises intercepting a program instruction that accesses an operating system segment descriptor table and emulating the instruction to avoid memory conflicts.

### Claim 9

A system, comprising:
a memory; and
a processor coupled to the memory, wherein the processor performs operations, the operations comprising:
creating a shadow process for a program process being executed;
in response to an accessed memory page being modified by the program process, recording an original copy of a modified memory page obtained from the shadow process in a partial checkpoint; and
replaying a program execution using the partial checkpoint.

### Claim 10 (depends on 9)

The system of claim 9, wherein system call results and accessed memory pages are recorded.

### Claim 11 (depends on 9)

The system of claim 9, wherein the accessed memory pages include data pages accessed by the program process and library code pages executed by the program process.

### Claim 12 (depends on 9)

The system of claim 9, further comprising replaying the program execution in a different operating system using the partial checkpoint.

### Claim 13

A computer program product, the computer program product comprising a computer readable storage medium having program code embodied therein, wherein the program code when executed performs operations, the operations comprising:
creating a shadow process for a program process being executed;
in response to an accessed memory page being modified by the program process, recording an original copy of a modified memory page obtained from the shadow process in a partial checkpoint; and
replaying a program execution using the partial checkpoint.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein system call results and accessed memory pages are recorded.

### Claim 15 (depends on 13)

The computer program product of claim 13, wherein the accessed memory pages include data pages accessed by the program process and library code pages executed by the program process.

### Claim 16 (depends on 13)

The computer program product of claim 13, further comprising replaying the program execution in a different operating system using the partial checkpoint.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the replaying comprises reconstructing a memory address space accessed by the program during the recording using the partial checkpoint.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the replaying comprises loading the accessed memory pages into a system memory and loading the processor context into a system processor using the partial checkpoint.

### Claim 19 (depends on 16)

The computer program product of claim 16, wherein the replaying comprises restoring program threads and segment descriptors in an operating system using the partial checkpoint.

### Claim 20 (depends on 16)

The computer program product of claim 16, wherein the replaying comprises intercepting a program instruction that accesses an operating system segment descriptor table and emulating the instruction to avoid memory conflicts.
