Lines Matching refs:OffsetPtr

50   uint64_t OffsetPtr = 0;  in loadNaiveFormatLog()  local
51 auto FileHeaderOrError = readBinaryFormatHeader(Reader, OffsetPtr); in loadNaiveFormatLog()
66 while (Reader.isValidOffset(OffsetPtr)) { in loadNaiveFormatLog()
67 if (!Reader.isValidOffsetForDataOfSize(OffsetPtr, 32)) in loadNaiveFormatLog()
71 OffsetPtr); in loadNaiveFormatLog()
72 auto PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
73 auto RecordType = Reader.getU16(&OffsetPtr); in loadNaiveFormatLog()
74 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
77 "Failed reading record type at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
85 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
86 Record.CPU = Reader.getU8(&OffsetPtr); in loadNaiveFormatLog()
87 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
90 "Failed reading CPU field at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
92 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
93 auto Type = Reader.getU8(&OffsetPtr); in loadNaiveFormatLog()
94 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
98 OffsetPtr); in loadNaiveFormatLog()
116 "Unknown record type '%d' at offset %" PRId64 ".", Type, OffsetPtr); in loadNaiveFormatLog()
119 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
120 Record.FuncId = Reader.getSigned(&OffsetPtr, sizeof(int32_t)); in loadNaiveFormatLog()
121 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
125 OffsetPtr); in loadNaiveFormatLog()
127 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
128 Record.TSC = Reader.getU64(&OffsetPtr); in loadNaiveFormatLog()
129 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
132 "Failed reading TSC field at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
134 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
135 Record.TId = Reader.getU32(&OffsetPtr); in loadNaiveFormatLog()
136 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
139 "Failed reading thread id field at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
141 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
142 Record.PId = Reader.getU32(&OffsetPtr); in loadNaiveFormatLog()
143 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
146 "Failed reading process id at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
155 OffsetPtr += 2; in loadNaiveFormatLog()
156 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
157 int32_t FuncId = Reader.getSigned(&OffsetPtr, sizeof(int32_t)); in loadNaiveFormatLog()
158 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
162 OffsetPtr); in loadNaiveFormatLog()
164 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
165 auto TId = Reader.getU32(&OffsetPtr); in loadNaiveFormatLog()
166 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
169 "Failed reading thread id field at offset %" PRId64 ".", OffsetPtr); in loadNaiveFormatLog()
171 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
172 auto PId = Reader.getU32(&OffsetPtr); in loadNaiveFormatLog()
173 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
177 OffsetPtr); in loadNaiveFormatLog()
187 Record.FuncId, FuncId, OffsetPtr); in loadNaiveFormatLog()
189 PreReadOffset = OffsetPtr; in loadNaiveFormatLog()
190 auto Arg = Reader.getU64(&OffsetPtr); in loadNaiveFormatLog()
191 if (OffsetPtr == PreReadOffset) in loadNaiveFormatLog()
195 OffsetPtr); in loadNaiveFormatLog()
204 OffsetPtr); in loadNaiveFormatLog()
208 OffsetPtr += 8; in loadNaiveFormatLog()
275 uint64_t OffsetPtr = 0; in loadFDRLog() local
276 auto FileHeaderOrError = readBinaryFormatHeader(DE, OffsetPtr); in loadFDRLog()
285 FileBasedRecordProducer P(FileHeader, DE, OffsetPtr); in loadFDRLog()
287 while (DE.isValidOffsetForDataOfSize(OffsetPtr, 1)) { in loadFDRLog()
435 uint64_t OffsetPtr = 0; in loadTrace() local
436 uint16_t Version = HeaderExtractor.getU16(&OffsetPtr); in loadTrace()
437 uint16_t Type = HeaderExtractor.getU16(&OffsetPtr); in loadTrace()