You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[tests] [trace] Add a more comprehensive test for thread trace export ctf command
Follow up on https://reviews.llvm.org/D105741
- Add new test that exhaustively checks the output file's content
- Fix typos in documentation and other minor fixes
Reviewed By: wallace
Original Author: jj10306
Differential Revision: https://reviews.llvm.org/D107674
Copy file name to clipboardExpand all lines: lldb/source/Plugins/TraceExporter/docs/htr.rst
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Concepts
10
10
11
11
**Layer:** The representation of trace data between passes. For Intel PT there are two types of layers:
12
12
13
-
**Instruction Layer:** Composed of the oad addresses of the instructions in the trace. In an effort to save space,
13
+
**Instruction Layer:** Composed of the load addresses of the instructions in the trace. In an effort to save space,
14
14
metadata is only stored for instructions that are of interest, not every instruction in the trace. HTR contains a
15
15
single instruction layer.
16
16
@@ -19,12 +19,13 @@ Concepts
19
19
a block layer. HTR contains one or more block layers.
20
20
21
21
**Pass:** A transformation applied to a *layer* that generates a new *layer* that is a more summarized, consolidated representation of the trace data.
22
-
A pass merges instructions/blocks based on its specific purpose - for example, a pass designed to summarize a processor trace by function calls would merge all the blocks of a function into a single block representing the entire function.l
22
+
A pass merges instructions/blocks based on its specific purpose - for example, a pass designed to summarize a processor trace by function calls would merge all the blocks of a function into a single block representing the entire function.
23
23
24
24
The image below illusrates the transformation of a trace's representation (HTR)
25
25
26
26
.. image:: media/htr-example.png
27
27
28
+
28
29
Passes
29
30
------
30
31
A *pass* is applied to a *layer* to extract useful information (summarization) and compress the trace representation into a new *layer*. The idea is to have a series of passes where each pass specializes in extracting certain information about the trace. Some examples of potential passes include: identifying functions, identifying loops, or a more general purpose such as identifying long sequences of instructions that are repeated (i.e. Basic Super Block). Below you will find a description of each pass currently implemented in lldb.
# There are two events per block, a beginning and an end. This means we must increment data_index by 2, so we only encounter the beginning event of each block.
0 commit comments