diff options
Diffstat (limited to 'include/llvm/XRay/XRayRecord.h')
-rw-r--r-- | include/llvm/XRay/XRayRecord.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/XRay/XRayRecord.h b/include/llvm/XRay/XRayRecord.h index a96846136ec3..68c91a40fed1 100644 --- a/include/llvm/XRay/XRayRecord.h +++ b/include/llvm/XRay/XRayRecord.h @@ -42,6 +42,11 @@ struct XRayFileHeader { /// counter (TSC) values. Useful for estimating the amount of time that /// elapsed between two TSCs on some platforms. uint64_t CycleFrequency = 0; + + // This is different depending on the type of xray record. The naive format + // stores a Wallclock timespec. FDR logging stores the size of a thread + // buffer. + char FreeFormData[16]; }; /// Determines the supported types of records that could be seen in XRay traces. @@ -54,8 +59,8 @@ struct XRayRecord { /// The type of record. uint16_t RecordType; - /// The CPU where the thread is running. We assume number of CPUs <= 256. - uint8_t CPU; + /// The CPU where the thread is running. We assume number of CPUs <= 65536. + uint16_t CPU; /// Identifies the type of record. RecordTypes Type; |