Home
last modified time | relevance | path

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

/external/perfetto/src/tracing/core/
Dshared_memory_arbiter_impl.cc87 shmem_abi_(reinterpret_cast<uint8_t*>(start), size, page_size), in SharedMemoryArbiterImpl()
135 commit_data_req_ && bytes_pending_commit_ >= shmem_abi_.size() / 2; in GetNewChunk()
138 for (size_t i = 0; i < shmem_abi_.num_pages(); i++) { in GetNewChunk()
139 page_idx_ = (initial_page_idx + i) % shmem_abi_.num_pages(); in GetNewChunk()
145 if (shmem_abi_.is_page_free(page_idx_)) { in GetNewChunk()
147 is_new_page = shmem_abi_.TryPartitionPage(page_idx_, layout); in GetNewChunk()
153 free_chunks = shmem_abi_.GetFreeChunks(page_idx_); in GetNewChunk()
161 Chunk chunk = shmem_abi_.TryAcquireChunkForWriting( in GetNewChunk()
291 page_idx = shmem_abi_.GetPageAndChunkIndex(std::move(chunk)).first; in UpdateCommitDataRequest()
297 page_idx = shmem_abi_.ReleaseChunkAsComplete(std::move(chunk)); in UpdateCommitDataRequest()
[all …]
Dshared_memory_arbiter_impl.h130 SharedMemoryABI* shmem_abi_for_testing() { return &shmem_abi_; } in shmem_abi_for_testing()
162 size_t page_size() const { return shmem_abi_.page_size(); } in page_size()
163 size_t num_pages() const { return shmem_abi_.num_pages(); } in num_pages()
240 SharedMemoryABI shmem_abi_; variable
Dtracing_service_impl.cc1744 SharedMemoryABI* abi = &producer->shmem_abi_; in ScrapeSharedMemoryBuffers()
3633 PERFETTO_DCHECK(shmem_abi_.is_valid()); in CommitData()
3636 if (page_idx >= shmem_abi_.num_pages()) in CommitData()
3640 shmem_abi_.TryAcquireChunkForReading(page_idx, entry.chunk()); in CommitData()
3665 shmem_abi_.ReleaseChunkAsFree(std::move(chunk)); in CommitData()
3685 PERFETTO_DCHECK(!shared_memory_ && !shmem_abi_.is_valid()); in SetupSharedMemory()
3692 shmem_abi_.Initialize(reinterpret_cast<uint8_t*>(shared_memory_->start()), in SetupSharedMemory()
Dtracing_service_impl.h153 SharedMemoryABI shmem_abi_; variable