Home
last modified time | relevance | path

Searched refs:page_layout (Results 1 – 4 of 4) sorted by relevance

/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h513 uint32_t page_layout,
534 uint16_t GetChunkSizeForLayout(uint32_t page_layout) const { in GetChunkSizeForLayout() argument
535 return chunk_sizes_[(page_layout & kLayoutMask) >> kLayoutShift]; in GetChunkSizeForLayout()
538 static ChunkState GetChunkStateFromLayout(uint32_t page_layout, in GetChunkStateFromLayout() argument
540 return static_cast<ChunkState>((page_layout >> (chunk_idx * kChunkShift)) & in GetChunkStateFromLayout()
544 static constexpr uint32_t GetNumChunksForLayout(uint32_t page_layout) { in GetNumChunksForLayout() argument
545 return kNumChunksForLayout[(page_layout & kLayoutMask) >> kLayoutShift]; in GetNumChunksForLayout()
552 static uint32_t GetUsedChunks(uint32_t page_layout) { in GetUsedChunks() argument
553 const uint32_t num_chunks = GetNumChunksForLayout(page_layout); in GetUsedChunks()
556 res |= ((page_layout & kChunkMask) != kChunkFree) ? (1 << i) : 0; in GetUsedChunks()
[all …]
/external/perfetto/src/tracing/core/
Dtrace_writer_impl_unittest.cc82 uint32_t page_layout = abi->GetPageLayout(page_idx); in TEST_P() local
83 size_t num_chunks = SharedMemoryABI::GetNumChunksForLayout(page_layout); in TEST_P()
Dshared_memory_abi.cc143 uint32_t page_layout, in GetChunkUnchecked() argument
145 const size_t num_chunks = GetNumChunksForLayout(page_layout); in GetChunkUnchecked()
148 const uint16_t chunk_size = GetChunkSizeForLayout(page_layout); in GetChunkUnchecked()
Dstartup_trace_writer_unittest.cc79 uint32_t page_layout = abi->GetPageLayout(page_idx); in VerifyPackets() local
80 size_t num_chunks = SharedMemoryABI::GetNumChunksForLayout(page_layout); in VerifyPackets()