//===-- xray_fdr_log_records.h -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file is a part of XRay, a function call tracing system. // //===----------------------------------------------------------------------===// #ifndef XRAY_XRAY_FDR_LOG_RECORDS_H #define XRAY_XRAY_FDR_LOG_RECORDS_H #include <cstdint> namespace __xray { enum class RecordType : uint8_t { … }; // A MetadataRecord encodes the kind of record in its first byte, and have 15 // additional bytes in the end to hold free-form data. struct alignas(16) MetadataRecord { … } __attribute__((packed)); static_assert …; struct alignas(8) FunctionRecord { … } __attribute__((packed)); static_assert …; } // namespace __xray #endif // XRAY_XRAY_FDR_LOG_RECORDS_H