Searched refs:ChunkRecord (Results 1 – 3 of 3) sorted by relevance
/external/perfetto/src/tracing/core/ |
D | trace_buffer.h | 286 struct ChunkRecord { struct 287 explicit ChunkRecord(size_t sz) : flags{0}, is_padding{0} { in ChunkRecord() argument 288 PERFETTO_DCHECK(sz >= sizeof(ChunkRecord) && 289 sz % sizeof(ChunkRecord) == 0 && sz <= kMaxSize); 341 explicit Key(const ChunkRecord& cr) in Key() 380 ChunkMeta(ChunkRecord* r, uint16_t p, bool complete, uint8_t f, uid_t u) in ChunkMeta() 408 ChunkRecord* const chunk_record; // Addr of ChunkRecord within |data_|. 559 PERFETTO_DCHECK(ptr >= begin() && ptr <= end() - sizeof(ChunkRecord)); in DcheckIsAlignedAndWithinBounds() 561 (reinterpret_cast<uintptr_t>(ptr) & (alignof(ChunkRecord) - 1)) == 0); in DcheckIsAlignedAndWithinBounds() 564 ChunkRecord* GetChunkRecordAt(uint8_t* ptr) { in GetChunkRecordAt() [all …]
|
D | trace_buffer.cc | 64 constexpr size_t TraceBuffer::ChunkRecord::kMaxSize; 65 constexpr size_t TraceBuffer::InlineChunkHeaderSize = sizeof(ChunkRecord); 78 static_assert(sizeof(ChunkRecord) == sizeof(SharedMemoryABI::PageHeader) + in TraceBuffer() 87 SharedMemoryABI::kMinPageSize % sizeof(ChunkRecord) == 0, in Initialize() 97 max_chunk_size_ = std::min(size, ChunkRecord::kMaxSize); in Initialize() 120 base::AlignUp<sizeof(ChunkRecord)>(size + sizeof(ChunkRecord)); in CopyChunkUntrusted() 147 ChunkRecord record(record_size); in CopyChunkUntrusted() 163 ChunkRecord* prev = record_meta->chunk_record; in CopyChunkUntrusted() 336 const ChunkRecord& next_chunk = *GetChunkRecordAt(next_chunk_ptr); in DeleteNextChunksFor() 402 PERFETTO_DCHECK(size >= sizeof(ChunkRecord) && size <= ChunkRecord::kMaxSize); in AddPaddingRecord() [all …]
|
D | trace_buffer_unittest.cc | 43 using ChunkRecord = TraceBuffer::ChunkRecord; typedef in perfetto::TraceBufferTest 1090 chunk.insert(chunk.end(), 128 - sizeof(ChunkRecord), 0xff); in TEST_F() 1114 chunk.insert(chunk.end(), 64 * 1024 - sizeof(ChunkRecord) * 2, 0xff); in TEST_F()
|