# US 9,356,843 B2 · Flow systems and methods

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

- Number: US 9,356,843 B2
- Document ID: US9356843B2
- Status: Granted
- Kind: B2
- Application number: 12/610,165
- Filed: 2009-10-30
- Published: 2011-05-05
- Granted: 2016-05-31
- Earliest claimed: 2009-10-30
- Assignees: Symantec Corporation
- Applicants: Kai Wong
- Inventors: Kai Wong
- Web page: https://patentgrep.com/patent/US9356843B2

## CPC

- H04L 43/026: using flow identification
- H04L 43/106: using time related information in packets, e.g. by adding timestamps
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for process flow tracking are presented. In one embodiment, a flow method comprises collecting records associated with flow for post analysis; performing a flow connection process associated with the flow, wherein the flow connection process examines information in a hash table and connects flow segments based upon connect ID; and performing a presentation process in which the flow is visualized, searched and traversed. In one exemplary implementation, a flow connection process utilizes a hash table that draws a correlation between the connect ID and a connect-start record or a connect-end record.

## Claims

### Claim 1

A flow method comprising:
writing records during program execution, wherein the records include program execution events caused by execution of the program, wherein each of the records is a trace record of a function called during execution of the program, and wherein each trace record comprises an indication of a record file type;
collecting the written records for post-execution analysis, wherein the written records are associated with a flow;
performing a flow connection process associated with said flow, wherein said flow connection process determines the record file type for each of the collected records based on the indication of the record file type included in the trace record, determines which of a plurality of flow connection processes to perform based on the determined record file type, examines information in one of a plurality of hash tables according to the selected process and the determined record file type, and connects flow segments within said flow based upon connect IDs within the examined hash table and the determined flow connection process, wherein the flow connection process is performed after the records have been written; and
performing a presentation process of displaying said flow on a graphical user interface in which said flow is at least one of visualized, searched, and traversed.

### Claim 2 (depends on 1)

The flow method of claim 1, wherein the flow connection process utilizes a hash table that draws a correlation between the connect ID and a connect-start record.

### Claim 3 (depends on 1)

The flow method of claim 1, wherein the flow connection process utilizes a hash table that draws a correlation between the connect ID and a connect-end record.

### Claim 4 (depends on 1)

The flow method of claim 1, wherein said hash table is a FLOW hash table for event records that connect forward to a record in a same node with a same thread ID.

### Claim 5 (depends on 1)

The flow method of claim 1, wherein said hash table is an END_LOCAL hash table for a connect-end record that connects forward to another connect-end record in a same node.

### Claim 6 (depends on 1)

The flow method of claim 1, wherein said hash table is an END hash table for connect-end records that connect backward to one or more connect-start records in a same or different node.

### Claim 7 (depends on 1)

The flow method of claim 1, wherein said hash table is a START hash table for connect-start records that connect forward to one or more connect-end records in a same or different node.

### Claim 8 (depends on 1)

The flow method of claim 1, wherein said flow connection process comprises:
selecting a current record for connection analysis;
performing a merge process;
performing a connect-start resolution process to establish a link between corresponding connection-end records when said current record is determined to be a start record;
performing a connect-end resolution process to establish a link between corresponding connection-end and connection-start records when said current record is determined to be an end record; and
performing a regular record resolution process when said current record is determined to be a regular record.

### Claim 9 (depends on 8)

The flow method of claim 8, wherein a record with a lowest timestamp among multiple CPUs is selected as said current record for connection analysis, and wherein the merge process comprises generating a merged file of records for each of a plurality of nodes that executed the program.

### Claim 10 (depends on 1)

The flow method of claim 1, wherein the program execution events are kernel events, wherein the trace record comprises a format field indicating the record file type and a timestamp field indicating a timestamp of the corresponding record, and wherein a node's multiple CPU files are merged into one file with records in timestamp order.

### Claim 11

A non-transitory computer readable storage medium having stored thereon, computer-executable instructions that when executed by a computing device cause the computing device to perform a method comprising:
writing records during program execution, wherein the records include program execution events caused by execution of the program, wherein each of the records is a trace record of a function called during execution of the program, and wherein each trace record comprises an indication of a record file type;
collecting the written records for post-execution analysis, wherein the written records are associated with a flow;
performing a flow connection process associated with said flow, wherein said flow connection process determines the record file type for each of the collected records based on the indication of the record file type included in the trace record, determines which of a plurality of flow connection processes to perform based on the determined record file type, examines information in one of a plurality of hash tables according to the selected process and the determined record file type, and connects flow segments within said flow based upon connect IDs within the examined hash table and the determined flow connection process, wherein the flow connection process is performed after the records have been written; and
performing a presentation process of displaying said flow on a graphical user interface in which said flow is at least one of visualized, searched, and traversed.

### Claim 12 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein the flow connection process utilizes a hash table that draws a correlation between one of the connect IDs and a connect-start record.

### Claim 13 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein the flow connection process utilizes a hash table that draws a correlation between one of the connect IDs and a connect-end record.

### Claim 14 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein said hash table is a FLOW hash table for event records that connect forward to a record in a same node with a same thread ID.

### Claim 15 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein said hash table is an END13 LOCAL hash table for a connect-end record that connects forward to another connect-end record in the same node.

### Claim 16 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein said hash table is an END hash table for connect-end records that connect backward to one or more connect-start records in a same or different node.

### Claim 17 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein said hash table is a START hash table for connect-start records that connect forward to one or more connect-end records in a same or different node.

### Claim 18 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein said flow connection process comprises:
selecting a current record for connection analysis;
performing a merge process;
a connect-start resolution process is performed to establish a link between corresponding connection-end records when said current record is determined to be a start record;
a connect-end resolution process is performed to establish a link between corresponding connection-end and connection-start records when said current record is determined to be an end record; and
a regular record resolution process is performed when said current record is determined to be a regular record.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein a record with the lowest timestamp among multiple CPUs is selected as said current record for connection analysis, and wherein the merge process comprises generating a merged file of records for each of a plurality of nodes that executed the program.

### Claim 20 (depends on 11)

The non-transitory computer readable storage medium of claim 11, wherein the program execution events are kernel events, wherein the trace record comprises a format field indicating the record file type and a timestamp field indicating a timestamp of the corresponding record, and wherein a node's multiple CPU files are merged into one file with records in timestamp order.

### Claim 21

A system, comprising:
a computer system having a processor coupled to a computer readable storage media and executing computer readable code which causes the computer system to perform a method of:
writing records during program execution, wherein the records include program execution events caused by execution of the program, wherein each of the records is a trace record of a function called during execution of the program, and wherein each trace record comprises an indication of a record file type;
collecting the written records for post-execution analysis, wherein the written records are associated with a flow;
performing a flow connection process associated with said flow, wherein said flow connection process determines the record file type for each of the collected records based on the indication of the record file type included in the trace record, determines which of a plurality of flow connection processes to perform based on the determined record file type, examines information in one of a plurality of hash tables according to the selected process and the determined record file type, and connects flow segments within said flow based upon connect IDs within the examined hash table and the determined flow connection process, wherein the flow connection process is performed after the records have been written; and
performing a presentation process of displaying said flow on a graphical user interface in which said flow is at least one of visualized, searched, and traversed.

### Claim 22 (depends on 21)

The system of claim 21, wherein the flow connection process utilizes hash tables that draw a correlation between the connect ID and a connect-start record.

### Claim 23 (depends on 21)

The system of claim 21, wherein the flow connection process utilizes hash tables that draw a correlation between the connect ID and a connect-end record.

### Claim 24 (depends on 21)

The system of claim 21, wherein said flow connection process includes selecting a current record for connection analysis;
performing a merge process;
a connect-start resolution process is performed to establish a link between corresponding connection-end records when said current record is determined to be a start record;
a connect-end resolution process is performed to establish a link between corresponding connection-end and connection-start records when said current record is determined to be an end record; and
a regular record resolution process is performed when said current record is determined to be a regular record.

### Claim 25 (depends on 21)

The system of claim 21, wherein the program execution events are kernel events, wherein the trace record comprises a format field indicating the record file type and a timestamp field indicating a timestamp of the corresponding record, and wherein a node's multiple CPU files are merged into one file with records in timestamp order.
