# US 2025/0156187 A1 · Reduction of data transfer overhead

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

- Number: US 2025/0156187 A1
- Document ID: US20250156187A1
- Status: Published application
- Kind: A1
- Application number: 18/510,088
- Filed: 2023-11-15
- Published: 2025-05-15
- Earliest claimed: 2023-11-15
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Richard SENIOR; Venkatarami MORA; Suresh Kumar VENKUMAHANTI; Avinash GADDE; Christopher AHN; Sangchol LEE; Sanjana RAJEEV; Dhairya AGRAWAL
- Web page: https://patentgrep.com/patent/US20250156187A1

## CPC

- G06F 9/323: {for indirect branch instructions}
- G06F 9/3806: {using address prediction, e.g. return stack, branch history buffer}
- G06F 9/30058: {Conditional branch instructions}
- G06F 9/3861: {Recovery, e.g. branch miss-prediction, exception handling (error detection or correction G06F11/00)}
- G06F 11/3636: {by tracing the execution of the program}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Aspects of the disclosure are directed to reduction of data transfer overhead. In accordance with one aspect, increment a function call counter for an executed function call; decrement the function call counter for an executed return from function call; infer the indirect branch address based on a function call counter value and when a cumulative count of received executed atoms indicates a return from function call has been executed; oversaturate the function call counter at a maximum counter value if the function call counter contains the maximum counter value and a subsequent function call is executed; and undersaturate the function call counter at a minimum counter value if the function call counter contains the minimum counter value and a subsequent return from function call is executed.

## Claims

### Claim 1

An apparatus comprising:
a tracing hardware configured to:
a) provide a record of a plurality of executed instructions, wherein one of the plurality of executed instructions includes an indirect branch address, and
b) generate a plurality of packets based on the plurality of executed instructions; and
a decoder coupled to the tracing hardware, wherein the decoder includes a first counter configured to increment or to decrement a counter value based on the plurality of executed instructions, and the decoder is configured to:
a) receive the plurality of packets,
b) infer the indirect branch address associated with a return from function call, and
c) to recover the plurality of executed instructions.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the decoder is configured to receive an explicit branch address when the counter value is zero.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the plurality of packets is a plurality of compressed packets.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the plurality of packets is a plurality of uncompressed packets.

### Claim 5 (depends on 1)

The apparatus of claim 1, further comprising a processor core, coupled to the tracing hardware, the processor core configured to provide the plurality of executed instructions.

### Claim 6 (depends on 5)

The apparatus of claim 5, further comprising a repository coupled to the tracing hardware, the repository configured to store the plurality of packets and to provide the plurality of packets to the decoder.

### Claim 7 (depends on 6)

The apparatus of claim 6, further comprising a second counter, the second counter configured to be incremented upon observing a function call and configured to be decremented upon observing the return from function call.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the function call is one of the plurality of executed instructions.

### Claim 9 (depends on 7)

The apparatus of claim 7, wherein the return from function call is one of the plurality of executed instructions.

### Claim 10 (depends on 7)

The apparatus of claim 7, wherein the second counter is a component of the tracing hardware.

### Claim 11

A method comprising:
incrementing a function call counter for an executed function call;
decrementing the function call counter for an executed return from function call; and
inferring the indirect branch address based on a function call counter value and when a cumulative count of received executed atoms indicates a return from function call has been executed.

### Claim 12 (depends on 11)

The method of claim 11, wherein the inferring the indirect branch address is performed by tracking increments and decrements of the function call counter.

### Claim 13 (depends on 11)

The method of claim 11, further comprising oversaturating the function call counter at a maximum counter value if the function call counter contains the maximum counter value and a subsequent function call is executed.

### Claim 14 (depends on 13)

The method of claim 13, wherein an executed subsequent function call is indicated by a reception of an executed atom.

### Claim 15 (depends on 13)

The method of claim 13, further comprising determining an oversaturation by using the cumulative count of received executed atoms.

### Claim 16 (depends on 11)

The method of claim 11, wherein the executed function call is indicated by a reception of an executed atom.

### Claim 17 (depends on 16)

The method of claim 16, wherein the executed function call is indexed by a memory address location.

### Claim 18 (depends on 17)

The method of claim 17, wherein the memory address location is the indirect branch address.

### Claim 19 (depends on 18)

The method of claim 18, wherein the indirect branch address is specified in a processor register not directly accessible by a decoder.

### Claim 20 (depends on 19)

The method of claim 19, further comprising oversaturating the function call counter at a maximum counter value if the function call counter contains the maximum counter value and a subsequent function call is executed.

### Claim 21 (depends on 20)

The method of claim 20, wherein an executed subsequent function call is indicated by a reception of an executed atom.

### Claim 22 (depends on 19)

The method of claim 19, further comprising determining an oversaturation by using the cumulative count of received executed atoms.

### Claim 23 (depends on 19)

The method of claim 19, further comprising undersaturating the function call counter at a minimum counter value if the function call counter contains the minimum counter value and a subsequent return from function call is executed.

### Claim 24 (depends on 11)

The method of claim 11, further comprising undersaturating the function call counter at a minimum counter value if the function call counter contains the minimum counter value and a subsequent return from function call is executed.

### Claim 25 (depends on 24)

The method of claim 24, wherein an executed subsequent return from function call is indicated by a reception of an executed atom.

### Claim 26 (depends on 25)

The method of claim 25, further comprising determining an undersaturation by using the cumulative count of received executed atoms.

### Claim 27

An apparatus for reduction of data transfer overhead, the apparatus comprising:
means for initializing a function call counter;
means for incrementing the function call counter for an executed function;
means for decrementing the function call counter for an executed return from function call; and
means for inferring the indirect branch address based on a function call counter value and when a cumulative count of received executed atoms indicates a return from function call has been executed.

### Claim 28 (depends on 27)

The apparatus of claim 27, further comprising:
means for oversaturating the function call counter at a maximum counter value if the function call counter contains the maximum counter value and a subsequent function call is executed; and
means for undersaturating the function call counter at a minimum counter value if the function call counter contains the minimum counter value and a subsequent return from function call is executed.

### Claim 29

A non-transitory computer-readable medium storing computer executable code, operable on a device comprising at least one processor and at least one memory coupled to the at least one processor, wherein the at least one processor is configured to implement reduction of data transfer overhead, the computer executable code comprising:
instructions for causing a computer to initialize a function call counter;
instructions for causing the computer to increment the function call counter for an executed function call;
instructions for causing the computer to decrement the function call counter for an executed return from function call; and
instructions for causing the computer to infer the indirect branch address based on a function call counter value and when a cumulative count of received executed atoms indicates a return from function call has been executed.

### Claim 30 (depends on 29)

The non-transitory computer-readable medium of claim 29, further comprising:
instructions for causing the computer to oversaturate the function call counter at a maximum counter value if the function call counter contains the maximum counter value and a subsequent function call is executed; and
instructions for causing the computer to undersaturate the function call counter at a minimum counter value if the function call counter contains the minimum counter value and a subsequent return from function call is executed.
