Home
last modified time | relevance | path

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

/external/perfetto/src/tracing/core/
Dtrace_buffer.h245 struct ChunkRecord { struct
246 explicit ChunkRecord(size_t sz) : flags{0}, is_padding{0} { in ChunkRecord() function
247 PERFETTO_DCHECK(sz >= sizeof(ChunkRecord) &&
248 sz % sizeof(ChunkRecord) == 0 && sz <= kMaxSize);
300 explicit Key(const ChunkRecord& cr) in Key()
324 ChunkMeta(ChunkRecord* c, uint16_t p, uint8_t f, uid_t u) in ChunkMeta()
327 ChunkRecord* const chunk_record; // Addr of ChunkRecord within |data_|.
458 PERFETTO_DCHECK(ptr >= begin() && ptr <= end() - sizeof(ChunkRecord)); in DcheckIsAlignedAndWithinBounds()
460 (reinterpret_cast<uintptr_t>(ptr) & (alignof(ChunkRecord) - 1)) == 0); in DcheckIsAlignedAndWithinBounds()
463 ChunkRecord* GetChunkRecordAt(uint8_t* ptr) const { in GetChunkRecordAt()
[all …]
Dtrace_buffer.cc62 constexpr size_t TraceBuffer::ChunkRecord::kMaxSize;
63 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()
93 max_chunk_size_ = std::min(size, ChunkRecord::kMaxSize); in Initialize()
115 base::AlignUp<sizeof(ChunkRecord)>(size + sizeof(ChunkRecord)); in CopyChunkUntrusted()
140 ChunkRecord record(record_size); in CopyChunkUntrusted()
212 const ChunkRecord& next_chunk = *GetChunkRecordAt(next_chunk_ptr); in DeleteNextChunksFor()
263 PERFETTO_DCHECK(size >= sizeof(ChunkRecord) && size <= ChunkRecord::kMaxSize); in AddPaddingRecord()
264 ChunkRecord record(size); in AddPaddingRecord()
[all …]
Dtrace_buffer_unittest.cc44 using ChunkRecord = TraceBuffer::ChunkRecord; typedef in perfetto::TraceBufferTest
906 chunk.insert(chunk.end(), 128 - sizeof(ChunkRecord), 0xff); in TEST_F()
930 chunk.insert(chunk.end(), 64 * 1024 - sizeof(ChunkRecord) * 2, 0xff); in TEST_F()