# US 2009/0222803 A1 · Efficient call sequence restoration method

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

- Number: US 2009/0222803 A1
- Document ID: US20090222803A1
- Status: Published application
- Kind: A1
- Application number: 11/578,914
- Filed: 2006-07-26
- Published: 2009-09-03
- Earliest claimed: 2006-07-26
- Assignees: Intel Corporation
- Inventors: Stanislav V. Bratanov
- Web page: https://patentgrep.com/patent/US20090222803A1

## CPC

- G06F 9/4486: {Formation of subprogram jump address}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present invention provide for minimizing the number of procedure frame unwinding operations to be performed when restoring the program control flow information. A first data structure may be constructed to contain procedure linkage information along with references to the conventional memory area where each procedure linkage information element (procedure return address or a procedure frame pointer) was originally found. The first data structure may be initialized upon the initial request for program control flow information. Upon each subsequent request, the contents of the conventional memory area as referenced by the first data structure may be compared with the corresponding elements of the first data structure. As a result of said comparison, changed and unchanged regions within the conventional memory area may be determined. Then, procedure frame unwinding operations may be performed for the changed regions. Procedure linkage information collected during the frame unwinding operations may be stored in a second data structure along with references to the original locations within the conventional memory area. The second data structure may then be extended with procedure linkage information pertaining to the unchanged regions from the first data structure. Once the second data structure is constructed, it may be substituted for the first data structure to be employed in processing subsequent requests for program control flow information.

## Claims

### Claim 1

In a system collecting program control flow information a method comprising:
determining changed and unchanged regions in a conventional memory area dedicated to store procedure linkage information, by means of comparing contents of said memory area with contents of a first data structure;
collecting procedure linkage information from all changed regions of said conventional memory area;
forming a second data structure to reflect all collected procedure linkage information elements along with references to the original locations of said elements within the conventional memory area.

### Claim 2 (depends on 1)

The method of claim 1, wherein procedure linkage information comprises at least a procedure link address.

### Claim 3 (depends on 1)

The method of claim 1, further comprising marking unchanged memory regions as changed if the address range between at least one collected procedure linkage element and any point within the changed region being currently processed intersects the address ranges of the unchanged regions.

### Claim 4 (depends on 1)

The method of claim 1, wherein the entire conventional memory area is determined to be a single changed region upon the initial request for program control flow information.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first data structure comprises procedure linkage information elements associated with references to the original location of said elements within the conventional memory area.

### Claim 6 (depends on 1)

The method of claim 1, wherein comparing contents of the conventional memory area comprises comparing the value of each element of the first data structure with contents of the conventional memory area at the address obtained from the reference associated with a corresponding element of the first data structure.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
combining the second data structure with portions of the first data structure corresponding to the unchanged regions of the conventional memory area; and
substituting the second data structure for the first data structure after all changed regions have been processed.

### Claim 8

An article comprising: a machine accessible medium having a plurality of machine readable instructions, wherein when the instructions are executed by a processor, the instructions provide for collecting program control flow information by:
determining changed and unchanged regions in a conventional memory area dedicated to store procedure linkage information, by means of comparing contents of said memory area with contents of a first data structure;
collecting procedure linkage information from all changed regions of said conventional memory area;
forming a second data structure to reflect all collected procedure linkage information elements along with references to the original locations of said elements within the conventional memory area.

### Claim 9 (depends on 8)

The article of claim 8, wherein procedure linkage information comprises at least a procedure link address.

### Claim 10 (depends on 8)

The article of claim 8, further comprising instructions for marking unchanged memory regions as changed if the address range between at least one collected procedure linkage element and any point within the changed region being currently processed intersects the address ranges of the unchanged regions.

### Claim 11 (depends on 8)

The article of claim 8, wherein the entire conventional memory area is determined to be a single changed region upon the initial request for program control flow information.

### Claim 12 (depends on 8)

The article of claim 8, wherein the first data structure comprises procedure linkage information elements associated with references to the original location of said elements within the conventional memory area.

### Claim 13 (depends on 8)

The article of claim 8, wherein instructions for comparing contents of the conventional memory area comprise instructions for comparing the value of each element of the first data structure with contents of the conventional memory area at the address obtained from the reference associated with a corresponding element of the first data structure.

### Claim 14 (depends on 8)

The article of claim 8, further comprising instructions for:
combining the second data structure with portions of the first data structure corresponding to the unchanged regions of the conventional memory area; and
substituting the second data structure for the first data structure after all changed regions have been processed.

### Claim 15

A system that collects program control flow information, comprising:
logic to determine changed and unchanged regions in a conventional memory area dedicated to store procedure linkage information, by means of comparing contents of said memory area with contents of a first data structure;
logic to collect procedure linkage information from all changed regions of said conventional memory area;
logic to form a second data structure to reflect all collected procedure linkage information elements along with references to the original locations of said elements within the conventional memory area.

### Claim 16 (depends on 15)

The system of claim 15, wherein procedure linkage information comprises at least a procedure link address.

### Claim 17 (depends on 15)

The system of claim 15, further comprising logic to mark unchanged memory regions as changed if the address range between at least one collected procedure linkage element and any point within the changed region being currently processed intersects the address ranges of the unchanged regions.

### Claim 18 (depends on 15)

The system of claim 15, wherein the entire conventional memory area is determined to be a single changed region upon the initial request for program control flow information.

### Claim 19 (depends on 15)

The system of claim 15, wherein the first data structure comprises procedure linkage information elements associated with references to the original location of said elements within the conventional memory area.

### Claim 20 (depends on 15)

The system of claim 15, wherein logic to compare contents of the conventional memory area comprises logic to compare the value of each element of the first data structure with contents of the conventional memory area at the address obtained from the reference associated with a corresponding element of the first data structure.

### Claim 21 (depends on 15)

The system of claim 15, further comprising:
logic to combine the second data structure with portions of the first data structure corresponding to the unchanged regions of the conventional memory area; and
logic to substitute the second data structure for the first data structure after all changed regions have been processed.
