Home
last modified time | relevance | path

Searched refs:page_idx (Results 1 – 7 of 7) sorted by relevance

/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h422 uint8_t* page_start(size_t page_idx) { in page_start() argument
423 PERFETTO_DCHECK(page_idx < num_pages_); in page_start()
424 return start_ + page_size_ * page_idx; in page_start()
427 PageHeader* page_header(size_t page_idx) { in page_header() argument
428 return reinterpret_cast<PageHeader*>(page_start(page_idx)); in page_header()
435 bool is_page_free(size_t page_idx) { in is_page_free() argument
436 return page_header(page_idx)->layout.load(std::memory_order_relaxed) == 0; in is_page_free()
442 bool is_page_complete(size_t page_idx) { in is_page_complete() argument
443 auto layout = page_header(page_idx)->layout.load(std::memory_order_relaxed); in is_page_complete()
452 std::string page_header_dbg(size_t page_idx) { in page_header_dbg() argument
[all …]
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc131 SharedMemoryABI::Chunk SharedMemoryABI::GetChunkUnchecked(size_t page_idx, in GetChunkUnchecked() argument
140 Chunk chunk(page_start(page_idx) + chunk_offset_in_page, chunk_size, in GetChunkUnchecked()
147 size_t page_idx, in TryAcquireChunk() argument
153 PageHeader* phdr = page_header(page_idx); in TryAcquireChunk()
178 Chunk chunk = GetChunkUnchecked(page_idx, layout, chunk_idx); in TryAcquireChunk()
194 bool SharedMemoryABI::TryPartitionPage(size_t page_idx, PageLayout layout) { in TryPartitionPage() argument
198 PageHeader* phdr = page_header(page_idx); in TryPartitionPage()
206 uint32_t SharedMemoryABI::GetFreeChunks(size_t page_idx) { in GetFreeChunks() argument
208 page_header(page_idx)->layout.load(std::memory_order_relaxed); in GetFreeChunks()
223 size_t page_idx; in ReleaseChunk() local
[all …]
Dshared_memory_abi_unittest.cc80 for (size_t page_idx = 0; page_idx <= 4; page_idx++) { in TEST_P() local
81 uint8_t* const page_start = buf() + page_idx * page_size(); in TEST_P()
84 SharedMemoryABI::GetNumChunksForLayout(abi.page_layout_dbg(page_idx)); in TEST_P()
92 abi.GetChunkState(page_idx, chunk_idx)); in TEST_P()
104 chunk = abi.TryAcquireChunkForWriting(page_idx, chunk_idx, &header); in TEST_P()
107 abi.GetChunkState(page_idx, chunk_idx)); in TEST_P()
145 ASSERT_FALSE(abi.TryAcquireChunkForWriting(page_idx, chunk_idx, &header) in TEST_P()
154 ASSERT_EQ(page_idx, res); in TEST_P()
155 ASSERT_EQ(chunk_idx == num_chunks - 1, abi.is_page_complete(page_idx)); in TEST_P()
157 abi.GetChunkState(page_idx, chunk_idx)); in TEST_P()
[all …]
Dtrace_writer_impl_unittest.cc91 for (size_t page_idx = 0; page_idx < kNumPages; page_idx++) { in TEST_P() local
92 uint32_t page_layout = abi->page_layout_dbg(page_idx); in TEST_P()
95 auto chunk_state = abi->GetChunkState(page_idx, chunk_idx); in TEST_P()
98 auto chunk = abi->TryAcquireChunkForReading(page_idx, chunk_idx); in TEST_P()
Dshared_memory_arbiter_impl.cc143 size_t page_idx = shmem_abi_.ReleaseChunkAsComplete(std::move(chunk)); in ReturnCompletedChunk() local
154 ctm->set_page(static_cast<uint32_t>(page_idx)); in ReturnCompletedChunk()
Dservice_impl.cc1251 const uint32_t page_idx = entry.page(); in CommitData() local
1252 if (page_idx >= shmem_abi_.num_pages()) in CommitData()
1256 shmem_abi_.TryAcquireChunkForReading(page_idx, entry.chunk()); in CommitData()
/external/pdfium/samples/
Dpdfium_test.cc1037 void DumpPageStructure(FPDF_PAGE page, const int page_idx) { in DumpPageStructure() argument
1041 fprintf(stderr, "Failed to load struct tree for page %d\n", page_idx); in DumpPageStructure()
1045 printf("Structure Tree for Page %d\n", page_idx); in DumpPageStructure()
1049 fprintf(stderr, "Failed to load child %d for page %d\n", i, page_idx); in DumpPageStructure()