Home
last modified time | relevance | path

Searched refs:ChunkRecord (Results 1 – 3 of 3) sorted by relevance

/external/perfetto/src/tracing/core/
Dtrace_buffer.h277 struct ChunkRecord { struct
278 explicit ChunkRecord(size_t sz) : flags{0}, is_padding{0} { in ChunkRecord() argument
279 PERFETTO_DCHECK(sz >= sizeof(ChunkRecord) &&
280 sz % sizeof(ChunkRecord) == 0 && sz <= kMaxSize);
332 explicit Key(const ChunkRecord& cr) in Key()
371 ChunkMeta(ChunkRecord* r, uint16_t p, bool complete, uint8_t f, uid_t u) in ChunkMeta()
399 ChunkRecord* const chunk_record; // Addr of ChunkRecord within |data_|.
550 PERFETTO_DCHECK(ptr >= begin() && ptr <= end() - sizeof(ChunkRecord)); in DcheckIsAlignedAndWithinBounds()
552 (reinterpret_cast<uintptr_t>(ptr) & (alignof(ChunkRecord) - 1)) == 0); in DcheckIsAlignedAndWithinBounds()
555 ChunkRecord* GetChunkRecordAt(uint8_t* ptr) { in GetChunkRecordAt()
[all …]
Dtrace_buffer.cc61 constexpr size_t TraceBuffer::ChunkRecord::kMaxSize;
62 constexpr size_t TraceBuffer::InlineChunkHeaderSize = sizeof(ChunkRecord);
75 static_assert(sizeof(ChunkRecord) == sizeof(SharedMemoryABI::PageHeader) + in TraceBuffer()
84 base::kPageSize % sizeof(ChunkRecord) == 0, in Initialize()
95 max_chunk_size_ = std::min(size, ChunkRecord::kMaxSize); in Initialize()
118 base::AlignUp<sizeof(ChunkRecord)>(size + sizeof(ChunkRecord)); in CopyChunkUntrusted()
141 ChunkRecord record(record_size); in CopyChunkUntrusted()
157 ChunkRecord* prev = record_meta->chunk_record; in CopyChunkUntrusted()
330 const ChunkRecord& next_chunk = *GetChunkRecordAt(next_chunk_ptr); in DeleteNextChunksFor()
396 PERFETTO_DCHECK(size >= sizeof(ChunkRecord) && size <= ChunkRecord::kMaxSize); in AddPaddingRecord()
[all …]
Dtrace_buffer_unittest.cc44 using ChunkRecord = TraceBuffer::ChunkRecord; typedef in perfetto::TraceBufferTest
1054 chunk.insert(chunk.end(), 128 - sizeof(ChunkRecord), 0xff); in TEST_F()
1078 chunk.insert(chunk.end(), 64 * 1024 - sizeof(ChunkRecord) * 2, 0xff); in TEST_F()