Home
last modified time | relevance | path

Searched refs:ChunkHeader (Results 1 – 16 of 16) sorted by relevance

/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h286 struct ChunkHeader { struct
354 uint8_t* payload_begin() const { return begin_ + sizeof(ChunkHeader); } in payload_begin() argument
356 PERFETTO_DCHECK(size_ >= sizeof(ChunkHeader)); in payload_size()
357 return size_ - sizeof(ChunkHeader); in payload_size()
365 ChunkHeader* header() { return reinterpret_cast<ChunkHeader*>(begin_); } in header()
388 ChunkHeader* chunk_header = header(); in IncrementPacketCount()
400 ChunkHeader* chunk_header = header(); in IncreasePacketCountTo()
410 void SetFlag(ChunkHeader::Flags flag) { in SetFlag()
411 ChunkHeader* chunk_header = header(); in SetFlag()
501 const ChunkHeader* header) { in TryAcquireChunkForWriting()
[all …]
/external/perfetto/src/tracing/core/
Dtrace_writer_impl.cc33 using ChunkHeader = perfetto::SharedMemoryABI::ChunkHeader; typedef
116 new_packet_count == ChunkHeader::Packets::kMaxCount; in NewTracePacket()
141 cur_chunk_.SetFlag(ChunkHeader::kLastPacketContinuesOnNextChunk); in GetNewBuffer()
180 cur_chunk_.SetFlag(ChunkHeader::kChunkNeedsPatching); in GetNewBuffer()
192 ChunkHeader::Packets packets = {}; in GetNewBuffer()
195 packets.flags = ChunkHeader::kFirstPacketContinuesFromPrevChunk; in GetNewBuffer()
201 ChunkHeader header = {}; in GetNewBuffer()
Dshared_memory_abi.cc64 inline void ClearChunkHeader(SharedMemoryABI::ChunkHeader* header) { in ClearChunkHeader()
95 static_assert(sizeof(ChunkHeader) == 8, "ChunkHeader size"); in Initialize()
96 static_assert(sizeof(ChunkHeader::chunk_id) == sizeof(ChunkID), in Initialize()
99 static_assert(sizeof(ChunkHeader::Packets) == 2, "ChunkHeader::Packets size"); in Initialize()
100 static_assert(alignof(ChunkHeader) == kChunkAlignment, in Initialize()
126 static_assert(sizeof(ChunkHeader::writer_id) == sizeof(WriterID), in Initialize()
128 ChunkHeader chunk_header{}; in Initialize()
161 const ChunkHeader* header) { in TryAcquireChunk()
192 ChunkHeader* new_header = chunk.header(); in TryAcquireChunk()
Dshared_memory_abi_unittest.cc29 using ChunkHeader = SharedMemoryABI::ChunkHeader; typedef
90 ChunkHeader header{}; in TEST_P()
115 ASSERT_EQ(expected_chunk_size - sizeof(SharedMemoryABI::ChunkHeader), in TEST_P()
140 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P()
143 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P()
Dstartup_trace_writer.cc29 using ChunkHeader = perfetto::SharedMemoryABI::ChunkHeader; typedef
39 ChunkHeader::Packets packets = {}; in NewChunk()
42 packets.flags = ChunkHeader::kFirstPacketContinuesFromPrevChunk; in NewChunk()
48 ChunkHeader header = {}; in NewChunk()
358 cur_num_packets == ChunkHeader::Packets::kMaxCount || last_write; in CommitLocalBufferChunks()
368 cur_chunk.SetFlag(ChunkHeader::kLastPacketContinuesOnNextChunk); in CommitLocalBufferChunks()
Dstartup_trace_writer_registry.cc26 using ChunkHeader = perfetto::SharedMemoryABI::ChunkHeader; typedef
Dtrace_writer_impl_unittest.cc130 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching); in TEST_P()
132 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk); in TEST_P()
Dtrace_buffer.cc54 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk;
56 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk;
58 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching;
76 sizeof(SharedMemoryABI::ChunkHeader), in TraceBuffer()
Dshared_memory_arbiter_impl.h72 SharedMemoryABI::Chunk GetNewChunk(const SharedMemoryABI::ChunkHeader&,
Dstartup_trace_writer_unittest.cc100 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk) { in VerifyPackets()
Dshared_memory_arbiter_impl.cc63 const SharedMemoryABI::ChunkHeader& header, in GetNewChunk()
Dtrace_buffer_unittest.cc47 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk;
49 SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk;
51 SharedMemoryABI::ChunkHeader::kChunkNeedsPatching;
Dtracing_service_impl.cc2577 const SharedMemoryABI::ChunkHeader& chunk_header = *chunk.header(); in CommitData()
/external/webrtc/webrtc/common_audio/
Dwav_header.cc28 struct ChunkHeader { struct
32 static_assert(sizeof(ChunkHeader) == 8, "ChunkHeader size");
37 ChunkHeader header;
46 const uint32_t kFmtSubchunkSize = sizeof(FmtSubchunk) - sizeof(ChunkHeader);
50 ChunkHeader header;
55 ChunkHeader header;
101 const size_t header_size = kWavHeaderSize - sizeof(ChunkHeader); in CheckWavParameters()
135 bytes_in_payload + kWavHeaderSize - sizeof(ChunkHeader)); in RiffChunkSize()
/external/perfetto/src/tracing/test/
Dfake_packet.cc113 SharedMemoryABI::ChunkHeader::kFirstPacketContinuesFromPrevChunk) || in AddPacket()
116 !(flags & SharedMemoryABI::ChunkHeader::kLastPacketContinuesOnNextChunk)); in AddPacket()
/external/compiler-rt/lib/asan/
Dasan_allocator.cc71 struct ChunkHeader { struct
89 struct ChunkBase : ChunkHeader {
94 static const uptr kChunkHeaderSize = sizeof(ChunkHeader);