Home
last modified time | relevance | path

Searched refs:MetadataRecord (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/compiler-rt/lib/xray/tests/unit/
Dfdr_log_writer_test.cpp46 MetadataRecord Preamble[] = { in TEST()
47 createMetadataRecord<MetadataRecord::RecordKinds::NewBuffer>(int32_t{1}), in TEST()
48 createMetadataRecord<MetadataRecord::RecordKinds::WalltimeMarker>( in TEST()
50 createMetadataRecord<MetadataRecord::RecordKinds::Pid>(int32_t{1}), in TEST()
53 Eq(sizeof(MetadataRecord) * 3)); in TEST()
54 ASSERT_TRUE(Writer.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>(1)); in TEST()
84 MetadataRecord Preamble[] = { in TEST()
85 createMetadataRecord<MetadataRecord::RecordKinds::NewBuffer>(int32_t{1}), in TEST()
86 createMetadataRecord<MetadataRecord::RecordKinds::WalltimeMarker>( in TEST()
88 createMetadataRecord<MetadataRecord::RecordKinds::Pid>(int32_t{1}), in TEST()
[all …]
Dtest_helpers.cpp86 createMetadataRecord<MetadataRecord::RecordKinds::BufferExtents>(Size); in serialize()
Dfdr_controller_test.cpp306 BQ = std::make_unique<BufferQueue>(sizeof(MetadataRecord) * 5 + in SetUp()
405 ASSERT_THAT(BQ->init(sizeof(MetadataRecord) * 4 + sizeof(FunctionRecord) * 2, in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/XRay/
DFDRRecords.h71 class MetadataRecord : public Record {
95 explicit MetadataRecord(RecordKind T, MetadataType M) : Record(T), MT(M) {} in MetadataRecord() function
104 virtual ~MetadataRecord() = default;
110 class BufferExtents : public MetadataRecord {
116 : MetadataRecord(RecordKind::RK_Metadata_BufferExtents, in BufferExtents()
120 : MetadataRecord(RecordKind::RK_Metadata_BufferExtents, in BufferExtents()
133 class WallclockRecord : public MetadataRecord {
140 : MetadataRecord(RecordKind::RK_Metadata_WallClockTime, in WallclockRecord()
144 : MetadataRecord(RecordKind::RK_Metadata_WallClockTime, in WallclockRecord()
158 class NewCPUIDRecord : public MetadataRecord {
[all …]
/external/llvm-project/llvm/include/llvm/XRay/
DFDRRecords.h71 class MetadataRecord : public Record {
95 explicit MetadataRecord(RecordKind T, MetadataType M) : Record(T), MT(M) {} in MetadataRecord() function
104 virtual ~MetadataRecord() = default;
110 class BufferExtents : public MetadataRecord {
116 : MetadataRecord(RecordKind::RK_Metadata_BufferExtents, in BufferExtents()
120 : MetadataRecord(RecordKind::RK_Metadata_BufferExtents, in BufferExtents()
133 class WallclockRecord : public MetadataRecord {
140 : MetadataRecord(RecordKind::RK_Metadata_WallClockTime, in WallclockRecord()
144 : MetadataRecord(RecordKind::RK_Metadata_WallClockTime, in WallclockRecord()
158 class NewCPUIDRecord : public MetadataRecord {
[all …]
/external/llvm-project/llvm/lib/XRay/
DRecordInitializer.cpp26 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit()
32 MetadataRecord::kMetadataBodySize)) in visit()
54 assert(OffsetPtr - BeginOffset <= MetadataRecord::kMetadataBodySize); in visit()
55 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - BeginOffset); in visit()
61 MetadataRecord::kMetadataBodySize)) in visit()
80 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - BeginOffset); in visit()
86 MetadataRecord::kMetadataBodySize)) in visit()
98 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit()
104 MetadataRecord::kMetadataBodySize)) in visit()
144 OffsetPtr - BeginOffset <= MetadataRecord::kMetadataBodySize); in visit()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/
DRecordInitializer.cpp26 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit()
32 MetadataRecord::kMetadataBodySize)) in visit()
54 assert(OffsetPtr - BeginOffset <= MetadataRecord::kMetadataBodySize); in visit()
55 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - BeginOffset); in visit()
61 MetadataRecord::kMetadataBodySize)) in visit()
80 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - BeginOffset); in visit()
86 MetadataRecord::kMetadataBodySize)) in visit()
98 OffsetPtr += MetadataRecord::kMetadataBodySize - (OffsetPtr - PreReadOffset); in visit()
104 MetadataRecord::kMetadataBodySize)) in visit()
144 OffsetPtr - BeginOffset <= MetadataRecord::kMetadataBodySize); in visit()
[all …]
/external/llvm-project/compiler-rt/lib/xray/
Dxray_fdr_log_writer.h64 template <MetadataRecord::RecordKinds Kind, class... DataTypes>
65 MetadataRecord createMetadataRecord(DataTypes &&... Ds) {
67 sizeof(MetadataRecord) - 1,
69 MetadataRecord R;
101 template <MetadataRecord::RecordKinds Kind, class... Data>
110 template <size_t N> size_t writeMetadataRecords(MetadataRecord (&Recs)[N]) {
111 constexpr auto Size = sizeof(MetadataRecord) * N;
150 MetadataRecord A =
151 createMetadataRecord<MetadataRecord::RecordKinds::CallArgument>(Arg);
173 MetadataRecord R =
[all …]
Dxray_fdr_controller.h74 DCHECK(hasSpace(sizeof(MetadataRecord) * 3)); in setupNewBuffer()
82 MetadataRecord Metadata[] = { in setupNewBuffer()
89 createMetadataRecord<MetadataRecord::RecordKinds::NewBuffer>( in setupNewBuffer()
95 createMetadataRecord<MetadataRecord::RecordKinds::WalltimeMarker>( in setupNewBuffer()
100 createMetadataRecord<MetadataRecord::RecordKinds::Pid>( in setupNewBuffer()
157 W.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>(CPU, TSC); in recordPreamble()
174 W.writeMetadata<MetadataRecord::RecordKinds::TSCWrap>(TSC); in recordPreamble()
247 !prepareBuffer(sizeof(MetadataRecord) + sizeof(FunctionRecord))) in functionEnter()
273 if (!prepareBuffer(sizeof(MetadataRecord) + sizeof(FunctionRecord))) in functionTailExit()
296 !prepareBuffer((2 * sizeof(MetadataRecord)) + sizeof(FunctionRecord)) || in functionEnterArg()
[all …]
Dxray_fdr_log_records.h22 struct alignas(16) MetadataRecord { struct
46 static_assert(sizeof(MetadataRecord) == 16, "Wrong size for MetadataRecord."); argument
Dxray_fdr_logging.cpp254 SerializedBufferSize = BufferSize + sizeof(MetadataRecord); in fdrIterator()
260 MetadataRecord ExtentsRecord; in fdrIterator()
263 uint8_t(MetadataRecord::RecordKinds::BufferExtents); in fdrIterator()
267 sizeof(MetadataRecord))) + in fdrIterator()
268 sizeof(MetadataRecord); in fdrIterator()
366 MetadataRecord ExtentsRecord; in fdrLoggingFlush()
371 uint8_t(MetadataRecord::RecordKinds::BufferExtents); in fdrLoggingFlush()
376 sizeof(MetadataRecord)); in fdrLoggingFlush()