summaryrefslogtreecommitdiffstats
path: root/llvm/lib/XRay
diff options
context:
space:
mode:
authorKeith Wyss <wyssman@gmail.com>2017-08-02 17:36:52 +0000
committerKeith Wyss <wyssman@gmail.com>2017-08-02 17:36:52 +0000
commita2e9d1716fe7fb82c0b3e6f6ee479a7655dd78ad (patch)
tree79cc901c6f50bcf9f4e8b5c73abe3dfcb016bbaf /llvm/lib/XRay
parentd483a107910c708cdd60901a28e0f5a4e360b6d2 (diff)
downloadbcm5719-llvm-a2e9d1716fe7fb82c0b3e6f6ee479a7655dd78ad.tar.gz
bcm5719-llvm-a2e9d1716fe7fb82c0b3e6f6ee479a7655dd78ad.zip
Revert "Xray docs with description of Flight Data Recorder binary format."
This reverts commit 3462b8ad41a840fd54dbbd0d3f2a514c5ad6f656. The docs-llvm-html target failed. llvm-svn: 309842
Diffstat (limited to 'llvm/lib/XRay')
-rw-r--r--llvm/lib/XRay/Trace.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/XRay/Trace.cpp b/llvm/lib/XRay/Trace.cpp
index 89fd0b0748b..6677063f944 100644
--- a/llvm/lib/XRay/Trace.cpp
+++ b/llvm/lib/XRay/Trace.cpp
@@ -222,8 +222,8 @@ Error processCustomEventMarker(FDRState &State, uint8_t RecordFirstByte,
DataExtractor &RecordExtractor,
size_t &RecordSize) {
// We can encounter a CustomEventMarker anywhere in the log, so we can handle
- // it regardless of the expectation. However, we do set the expectation to
- // read a set number of fixed bytes, as described in the metadata.
+ // it regardless of the expectation. However, we do se the expectation to read
+ // a set number of fixed bytes, as described in the metadata.
uint32_t OffsetPtr = 1; // Read after the first byte.
uint32_t DataSize = RecordExtractor.getU32(&OffsetPtr);
uint64_t TSC = RecordExtractor.getU64(&OffsetPtr);
@@ -333,7 +333,7 @@ Error processFDRFunctionRecord(FDRState &State, uint8_t RecordFirstByte,
}
Record.CPU = State.CPUId;
Record.TId = State.ThreadId;
- // Back up to read first 32 bits, including the 4 we pulled RecordType
+ // Back up to read first 32 bits, including the 8 we pulled RecordType
// and RecordKind out of. The remaining 28 are FunctionId.
uint32_t OffsetPtr = 0;
// Despite function Id being a signed int on XRayRecord,
@@ -369,9 +369,8 @@ Error processFDRFunctionRecord(FDRState &State, uint8_t RecordFirstByte,
/// We expect a format complying with the grammar in the following pseudo-EBNF.
///
/// FDRLog: XRayFileHeader ThreadBuffer*
-/// XRayFileHeader: 32 bytes to identify the log as FDR with machine metadata.
-/// Includes BufferSize
-/// ThreadBuffer: NewBuffer WallClockTime NewCPUId FunctionSequence EOB
+/// XRayFileHeader: 32 bits to identify the log as FDR with machine metadata.
+/// ThreadBuffer: BufSize NewBuffer WallClockTime NewCPUId FunctionSequence EOB
/// BufSize: 8 byte unsigned integer indicating how large the buffer is.
/// NewBuffer: 16 byte metadata record with Thread Id.
/// WallClockTime: 16 byte metadata record with human readable time.
OpenPOWER on IntegriCloud