Home
last modified time | relevance | path

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

/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h440 uint8_t* page_start(size_t page_idx) { in page_start() argument
441 PERFETTO_DCHECK(page_idx < num_pages_); in page_start()
442 return start_ + page_size_ * page_idx; in page_start()
445 PageHeader* page_header(size_t page_idx) { in page_header() argument
446 return reinterpret_cast<PageHeader*>(page_start(page_idx)); in page_header()
453 bool is_page_free(size_t page_idx) { in is_page_free() argument
454 return page_header(page_idx)->layout.load(std::memory_order_relaxed) == 0; in is_page_free()
460 bool is_page_complete(size_t page_idx) { in is_page_complete() argument
461 auto layout = page_header(page_idx)->layout.load(std::memory_order_relaxed); in is_page_complete()
470 std::string page_header_dbg(size_t page_idx) { in page_header_dbg() argument
[all …]
/external/perfetto/src/tracing/core/
Dshared_memory_abi_unittest.cc81 for (size_t page_idx = 0; page_idx <= 4; page_idx++) { in TEST_P() local
82 uint8_t* const page_start = buf() + page_idx * page_size(); in TEST_P()
85 SharedMemoryABI::GetNumChunksForLayout(abi.GetPageLayout(page_idx)); in TEST_P()
93 abi.GetChunkState(page_idx, chunk_idx)); in TEST_P()
105 chunk = abi.TryAcquireChunkForWriting(page_idx, chunk_idx, &header); in TEST_P()
108 abi.GetChunkState(page_idx, chunk_idx)); in TEST_P()
146 ASSERT_FALSE(abi.TryAcquireChunkForWriting(page_idx, chunk_idx, &header) in TEST_P()
155 ASSERT_EQ(page_idx, res); in TEST_P()
156 ASSERT_EQ(chunk_idx == num_chunks - 1, abi.is_page_complete(page_idx)); in TEST_P()
158 abi.GetChunkState(page_idx, chunk_idx)); in TEST_P()
[all …]
Dshared_memory_abi.cc142 SharedMemoryABI::Chunk SharedMemoryABI::GetChunkUnchecked(size_t page_idx, in GetChunkUnchecked() argument
151 Chunk chunk(page_start(page_idx) + chunk_offset_in_page, chunk_size, in GetChunkUnchecked()
158 size_t page_idx, in TryAcquireChunk() argument
164 PageHeader* phdr = page_header(page_idx); in TryAcquireChunk()
189 Chunk chunk = GetChunkUnchecked(page_idx, layout, chunk_idx); in TryAcquireChunk()
205 bool SharedMemoryABI::TryPartitionPage(size_t page_idx, PageLayout layout) { in TryPartitionPage() argument
209 PageHeader* phdr = page_header(page_idx); in TryPartitionPage()
217 uint32_t SharedMemoryABI::GetFreeChunks(size_t page_idx) { in GetFreeChunks() argument
219 page_header(page_idx)->layout.load(std::memory_order_relaxed); in GetFreeChunks()
234 size_t page_idx; in ReleaseChunk() local
[all …]
Dtrace_writer_impl_unittest.cc81 for (size_t page_idx = 0; page_idx < kNumPages; page_idx++) { in TEST_P() local
82 uint32_t page_layout = abi->GetPageLayout(page_idx); in TEST_P()
85 auto chunk_state = abi->GetChunkState(page_idx, chunk_idx); in TEST_P()
88 auto chunk = abi->TryAcquireChunkForReading(page_idx, chunk_idx); in TEST_P()
Dstartup_trace_writer_unittest.cc78 for (size_t page_idx = 0; page_idx < kNumPages; page_idx++) { in VerifyPackets() local
79 uint32_t page_layout = abi->GetPageLayout(page_idx); in VerifyPackets()
82 auto chunk_state = abi->GetChunkState(page_idx, chunk_idx); in VerifyPackets()
85 auto chunk = abi->TryAcquireChunkForReading(page_idx, chunk_idx); in VerifyPackets()
Dshared_memory_arbiter_impl.cc189 size_t page_idx = shmem_abi_.ReleaseChunkAsComplete(std::move(chunk)); in UpdateCommitDataRequest() local
195 ctm->set_page(static_cast<uint32_t>(page_idx)); in UpdateCommitDataRequest()
Dtracing_service_impl.cc1211 for (size_t page_idx = 0; page_idx < abi->num_pages(); page_idx++) { in ScrapeSharedMemoryBuffers() local
1212 uint32_t layout = abi->GetPageLayout(page_idx); in ScrapeSharedMemoryBuffers()
1232 abi->GetChunkUnchecked(page_idx, layout, chunk_idx); in ScrapeSharedMemoryBuffers()
2559 const uint32_t page_idx = entry.page(); in CommitData() local
2560 if (page_idx >= shmem_abi_.num_pages()) in CommitData()
2564 shmem_abi_.TryAcquireChunkForReading(page_idx, entry.chunk()); in CommitData()
/external/perfetto/src/traced/probes/ftrace/
Dpage_pool_unittest.cc94 for (size_t page_idx = 0; page_idx < expected_pages.size();) { in TEST() local
99 EXPECT_EQ(expected_pages[page_idx], in TEST()
101 page_idx++; in TEST()
/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()