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.cc83 shmem_abi_(reinterpret_cast<uint8_t*>(start), size, page_size), in SharedMemoryArbiterImpl()
134 commit_data_req_ && bytes_pending_commit_ >= shmem_abi_.size() / 2; in GetNewChunk()
137 for (size_t i = 0; i < shmem_abi_.num_pages(); i++) { in GetNewChunk()
138 page_idx_ = (initial_page_idx + i) % shmem_abi_.num_pages(); in GetNewChunk()
144 if (shmem_abi_.is_page_free(page_idx_)) { in GetNewChunk()
146 is_new_page = shmem_abi_.TryPartitionPage(page_idx_, layout); in GetNewChunk()
152 free_chunks = shmem_abi_.GetFreeChunks(page_idx_); in GetNewChunk()
160 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.h144 SharedMemoryABI* shmem_abi_for_testing() { return &shmem_abi_; } in shmem_abi_for_testing()
180 size_t page_size() const { return shmem_abi_.page_size(); } in page_size()
181 size_t num_pages() const { return shmem_abi_.num_pages(); } in num_pages()
256 SharedMemoryABI shmem_abi_; variable
Dtracing_service_impl.cc1932 SharedMemoryABI* abi = &producer->shmem_abi_; in ScrapeSharedMemoryBuffers()
4157 PERFETTO_DCHECK(shmem_abi_.is_valid()); in CommitData()
4160 if (page_idx >= shmem_abi_.num_pages()) in CommitData()
4164 shmem_abi_.TryAcquireChunkForReading(page_idx, entry.chunk()); in CommitData()
4190 shmem_abi_.ReleaseChunkAsFree(std::move(chunk)); in CommitData()
4210 PERFETTO_DCHECK(!shared_memory_ && !shmem_abi_.is_valid()); in SetupSharedMemory()
4217 shmem_abi_.Initialize(reinterpret_cast<uint8_t*>(shared_memory_->start()), in SetupSharedMemory()
Dtracing_service_impl.h172 SharedMemoryABI shmem_abi_; variable