@@ -205,7 +205,7 @@ inline bool loggingInitialized(
205
205
} // namespace
206
206
207
207
inline void writeNewBufferPreamble (pid_t Tid, timespec TS,
208
- char *&MemPtr) XRAY_NEVER_INSTRUMENT {
208
+ char *&MemPtr) XRAY_NEVER_INSTRUMENT {
209
209
static constexpr int InitRecordsCount = 2 ;
210
210
std::aligned_storage<sizeof (MetadataRecord)>::type Records[InitRecordsCount];
211
211
{
@@ -254,7 +254,7 @@ inline void setupNewBuffer(int (*wall_clock_reader)(
254
254
}
255
255
256
256
inline void writeNewCPUIdMetadata (uint16_t CPU, uint64_t TSC,
257
- char *&MemPtr) XRAY_NEVER_INSTRUMENT {
257
+ char *&MemPtr) XRAY_NEVER_INSTRUMENT {
258
258
MetadataRecord NewCPUId;
259
259
NewCPUId.Type = uint8_t (RecordType::Metadata);
260
260
NewCPUId.RecordKind = uint8_t (MetadataRecord::RecordKinds::NewCPUId);
@@ -272,7 +272,7 @@ inline void writeNewCPUIdMetadata(uint16_t CPU, uint64_t TSC,
272
272
}
273
273
274
274
inline void writeNewCPUIdMetadata (uint16_t CPU,
275
- uint64_t TSC) XRAY_NEVER_INSTRUMENT {
275
+ uint64_t TSC) XRAY_NEVER_INSTRUMENT {
276
276
writeNewCPUIdMetadata (CPU, TSC, RecordPtr);
277
277
}
278
278
@@ -292,7 +292,7 @@ inline void writeEOBMetadata() XRAY_NEVER_INSTRUMENT {
292
292
}
293
293
294
294
inline void writeTSCWrapMetadata (uint64_t TSC,
295
- char *&MemPtr) XRAY_NEVER_INSTRUMENT {
295
+ char *&MemPtr) XRAY_NEVER_INSTRUMENT {
296
296
MetadataRecord TSCWrap;
297
297
TSCWrap.Type = uint8_t (RecordType::Metadata);
298
298
TSCWrap.RecordKind = uint8_t (MetadataRecord::RecordKinds::TSCWrap);
@@ -312,8 +312,8 @@ inline void writeTSCWrapMetadata(uint64_t TSC) XRAY_NEVER_INSTRUMENT {
312
312
}
313
313
314
314
inline void writeFunctionRecord (int FuncId, uint32_t TSCDelta,
315
- XRayEntryType EntryType,
316
- char *&MemPtr) XRAY_NEVER_INSTRUMENT {
315
+ XRayEntryType EntryType,
316
+ char *&MemPtr) XRAY_NEVER_INSTRUMENT {
317
317
std::aligned_storage<sizeof (FunctionRecord), alignof (FunctionRecord)>::type
318
318
AlignedFuncRecordBuffer;
319
319
auto &FuncRecord =
@@ -462,8 +462,8 @@ inline bool releaseThreadLocalBuffer(BufferQueue *BQ) {
462
462
}
463
463
464
464
inline bool prepareBuffer (int (*wall_clock_reader)(clockid_t ,
465
- struct timespec *),
466
- size_t MaxSize) XRAY_NEVER_INSTRUMENT {
465
+ struct timespec *),
466
+ size_t MaxSize) XRAY_NEVER_INSTRUMENT {
467
467
char *BufferStart = static_cast <char *>(Buffer.Buffer );
468
468
if ((RecordPtr + MaxSize) > (BufferStart + Buffer.Size - MetadataRecSize)) {
469
469
writeEOBMetadata ();
@@ -612,8 +612,8 @@ inline void processFunctionHook(
612
612
613
613
// By this point, we are now ready to write at most 24 bytes (one metadata
614
614
// record and one function record).
615
- auto BufferStart = static_cast < char *>(Buffer. Buffer );
616
- assert ((RecordPtr + (MetadataRecSize + FunctionRecSize)) - BufferStart >=
615
+ assert ((RecordPtr + (MetadataRecSize + FunctionRecSize)) -
616
+ static_cast < char *>(Buffer. Buffer ) >=
617
617
static_cast <ptrdiff_t >(MetadataRecSize) &&
618
618
" Misconfigured BufferQueue provided; Buffer size not large enough." );
619
619
0 commit comments