diff options
Diffstat (limited to 'include/xray/xray_records.h')
-rw-r--r-- | include/xray/xray_records.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xray/xray_records.h b/include/xray/xray_records.h index 34c236b39..9c10cd21e 100644 --- a/include/xray/xray_records.h +++ b/include/xray/xray_records.h @@ -21,6 +21,7 @@ namespace __xray { enum FileTypes { NAIVE_LOG = 0, + FDR_LOG = 1, }; // This data structure is used to describe the contents of the file. We use this @@ -40,6 +41,11 @@ struct alignas(32) XRayFileHeader { // The frequency by which TSC increases per-second. alignas(8) uint64_t CycleFrequency = 0; + + // The current civiltime timestamp, as retrived from 'gettimeofday'. This + // allows readers of the file to determine when the file was created or + // written down. + struct timespec TS; } __attribute__((packed)); static_assert(sizeof(XRayFileHeader) == 32, "XRayFileHeader != 32 bytes"); |