# US 2017/0286260 A1 · Performance analysis using performance counters and trace logic

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

- Number: US 2017/0286260 A1
- Document ID: US20170286260A1
- Status: Published application
- Kind: A1
- Application number: 15/086,057
- Filed: 2016-03-31
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Sean Todd BAARTMANS; Zainab ZAIDI
- Web page: https://patentgrep.com/patent/US20170286260A1

## CPC

- G06F 11/3636: {by tracing the execution of the program}
- G06F 9/466: {Transaction processing}
- G06F 11/3409: {for performance assessment}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 11/3495: {for systems}
- G06F 11/36: Prevention of errors by analysis, debugging or testing of software
- G06F 2201/81: Threshold
- G06F 2201/835: Timestamp
- G06F 2201/87: Monitoring of transactions
- G06F 2201/88: Monitoring involving counting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for analyzing performance of a processing system are based on performance counters provided in trace points located at selected nodes of the processing system. A first transaction to be monitored is identified as a transaction to be monitored at a first trace point if the transaction is detected, by a performance counter, more than a threshold number of times at the first trace point. A first trace tag identifier is associated with the first transaction at the first trace point. The first transaction is identified at one or more other trace points based on the first trace tag identifier. Based on time stamps at which the first transaction is identified at the trace points, information such as trace information, latency, locality of a consuming device of the first transaction, etc. is obtained from the various trace points.

## Claims

### Claim 1

A method of analyzing performance of a processing system, the method comprising:
identifying a first transaction as a transaction to be monitored, at a first trace point of the processing system;
associating a first trace tag identifier with the first transaction, at the first trace point; and
identifying the first transaction at one or more other trace points of the processing system based on the first trace tag identifier.

### Claim 2 (depends on 1)

The method of claim 1, comprising identifying the first transaction as a transaction to be monitored based on detecting the first transaction at least a threshold number of times at the first trace point.

### Claim 3 (depends on 2)

The method of claim 2, comprising detecting the first transaction based on an attribute of the first transaction.

### Claim 4 (depends on 3)

The method of claim 3, wherein the attribute comprises at least one of an address, an operational code, a mode, or a type of the first transaction.

### Claim 5 (depends on 2)

The method of claim 2, wherein detecting the first transaction at least the threshold number of times at the first trace point comprises counting, in a performance counter provided at the first trace point, a number of times the first transaction is detected at the first trace point and comparing the number of times the first transaction is detected, to a threshold.

### Claim 6 (depends on 5)

The method of claim 5, further comprising resetting the performance counter when the first transaction is detected at least the threshold number of times at the first trace point.

### Claim 7 (depends on 1)

The method of claim 1, comprising determining time stamps at which the first transaction is identified at the first trace point and the one or more other trace points.

### Claim 8 (depends on 7)

The method of claim 7, comprising determining trace information for the first transaction from the time stamps.

### Claim 9 (depends on 8)

The method of claim 8, further comprising determining a latency of the first transaction between at least two trace points of the first trace point and the one or more other trace points based on the time stamps.

### Claim 10 (depends on 1)

The method of claim 1, wherein the first trace point is located at an entry point of an agent coupled to a system fabric of the processing system.

### Claim 11 (depends on 1)

The method of claim 1, further comprising determining locality in the processing system, of a consuming device of the first transaction, based on the first trace tag identifier.

### Claim 12 (depends on 1)

The method of claim 1, further comprising determining one or more of cache states, retries, and cache hit/miss rates of the first transaction based on the first trace tag identifier, wherein the first transaction comprises a cache access.

### Claim 13

A processing system comprising:
a first trace point configured to identify a first transaction as a transaction to be monitored;
trace tagging logic, provided at the first trace point, configured to associate a first trace tag identifier with the first transaction; and
one or more other trace points of the processing system, configured to identify the first transaction based on the first trace tag identifier.

### Claim 14 (depends on 13)

The processing system of claim 13, wherein the first trace point comprises a performance counter configured to count a number of times the first transaction is detected at the first trace point and a threshold comparator configured to compare the number of times the first transaction is detected at the first trace point to a threshold.

### Claim 15 (depends on 14)

The processing system of claim 14, wherein the threshold comparator is configured to generate a trigger to the trace tagging logic to associate the first trace tag identifier with the first transaction if the number of times the first transaction is detected at the first trace point is greater than the threshold.

### Claim 16 (depends on 14)

The processing system of claim 14, wherein the threshold comparator is further configured to generate a reset signal to reset the performance counter if the number of times the first transaction is detected at the first trace point is greater than the threshold.

### Claim 17 (depends on 14)

The processing system of claim 14, wherein the performance counter is configured to detect the first transaction based on an attribute of the first transaction.

### Claim 18 (depends on 17)

The processing system of claim 17, wherein the attribute comprises at least one of an address, an operational code, a mode, or a type of the first transaction.

### Claim 19 (depends on 13)

The processing system of claim 13, wherein the first trace point and the one or more other trace points are configured to determine time stamps at which the first transaction is identified at the corresponding first trace point and the one or more other trace points.

### Claim 20 (depends on 19)

The processing system of claim 19, wherein the first trace point and the one or more other trace points are configured to determine trace information for the first transaction from the time stamps.

### Claim 21 (depends on 20)

The processing system of claim 20, wherein at least two trace points of the first trace point and the one or more other trace points are configured to determine a latency of the first transaction between the at least two trace points based on the time stamps.

### Claim 22 (depends on 13)

The processing system of claim 13, wherein the first trace point is located at an entry point of an agent coupled to a system fabric of the processing system.

### Claim 23 (depends on 13)

The processing system of claim 13, wherein one or more of the first trace point and the one or more other trace points are configured to determine locality in the processing system, of a consuming device of the first transaction, based on the first trace tag identifier.

### Claim 24 (depends on 13)

The processing system of claim 13, wherein the first transaction comprises a cache access, and wherein one or more of the first trace point and the one or more other trace points are configured to determine one or more of cache states, retries, and cache hit/miss rates of the first transaction based on the first trace tag identifier.

### Claim 25 (depends on 13)

The processing system of claim 13, integrated into a device selected from the group consisting of a set top box, a music player, a server, a video player, an entertainment unit, a navigation device, a personal digital assistant (PDA), a fixed location data unit, a computer, a laptop, a tablet, a communications device, and a mobile phone.

### Claim 26

An apparatus comprising:
means for identifying a first transaction as a transaction to be monitored at a first means for tracing in a processing system;
means for associating a first trace tag identifier with the first transaction, at the first means for tracing; and
means for identifying the first transaction at one or more other means for tracing in the processing system, based on the first trace tag identifier.

### Claim 27 (depends on 26)

The apparatus of claim 26, comprising means for detecting the first transaction at least a threshold number of times at the first means for tracing.

### Claim 28 (depends on 26)

The apparatus of claim 26, comprising means for determining time stamps at which the first transaction is identified at the first means for tracing and the one or more other means for tracing.

### Claim 29 (depends on 28)

The apparatus of claim 28, comprising means for determining trace information for the first transaction from the time stamps.

### Claim 30 (depends on 28)

The apparatus of claim 28, further comprising means for determining a latency of the first transaction between at least two means for tracing of the first means for tracing and the one or more other means for tracing based on the time stamps.

### Claim 31

A non-transitory computer-readable storage medium comprising code, which, when executed by a processor, causes the processor to perform operations analyzing performance of a processing system, the non-transitory computer-readable storage medium comprising:
code for identifying a first transaction as a transaction to be monitored at a first trace point of the processing system;
code for associating a first trace tag identifier with the first transaction, at the first trace point; and
code for identifying the first transaction at one or more other trace points of the processing system based on the first trace tag identifier.

### Claim 32 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, comprising code for detecting the first transaction at least a threshold number of times at the first trace point.

### Claim 33 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, comprising code for determining time stamps at which the first transaction is identified at the first trace point and the one or more other trace points.

### Claim 34 (depends on 33)

The non-transitory computer-readable storage medium of claim 33, comprising code for determining trace information for the first transaction from the time stamps.

### Claim 35 (depends on 33)

The non-transitory computer-readable storage medium of claim 33, further comprising code for determining a latency of the first transaction between at least two trace points of the first trace point and the one or more other trace points based on the time stamps.

### Claim 36 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, further comprising code for determining locality in the processing system, of a consuming device of the first transaction, based on the first trace tag identifier.

### Claim 37 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, further comprising code for determining one or more of cache states, retries, and cache hit/miss rates of the first transaction based on the first trace tag identifier, wherein the first transaction comprises a cache access.
