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.cc58 shmem_abi_(reinterpret_cast<uint8_t*>(start), size, page_size), in SharedMemoryArbiterImpl()
79 for (size_t i = 0; i < shmem_abi_.num_pages(); i++) { in GetNewChunk()
80 page_idx_ = (initial_page_idx + i) % shmem_abi_.num_pages(); in GetNewChunk()
86 if (shmem_abi_.is_page_free(page_idx_)) { in GetNewChunk()
88 is_new_page = shmem_abi_.TryPartitionPage(page_idx_, layout); in GetNewChunk()
94 free_chunks = shmem_abi_.GetFreeChunks(page_idx_); in GetNewChunk()
102 Chunk chunk = shmem_abi_.TryAcquireChunkForWriting( in GetNewChunk()
189 size_t page_idx = shmem_abi_.ReleaseChunkAsComplete(std::move(chunk)); in UpdateCommitDataRequest()
210 bytes_pending_commit_ >= shmem_abi_.size() / 2) { in UpdateCommitDataRequest()
Dshared_memory_arbiter_impl.h98 SharedMemoryABI* shmem_abi_for_testing() { return &shmem_abi_; } in shmem_abi_for_testing()
136 SharedMemoryABI shmem_abi_; variable
Dtracing_service_impl.cc1208 SharedMemoryABI* abi = &producer->shmem_abi_; in ScrapeSharedMemoryBuffers()
2557 PERFETTO_DCHECK(shmem_abi_.is_valid()); in CommitData()
2560 if (page_idx >= shmem_abi_.num_pages()) in CommitData()
2564 shmem_abi_.TryAcquireChunkForReading(page_idx, entry.chunk()); in CommitData()
2589 shmem_abi_.ReleaseChunkAsFree(std::move(chunk)); in CommitData()
2607 PERFETTO_DCHECK(!shared_memory_ && !shmem_abi_.is_valid()); in SetSharedMemory()
2609 shmem_abi_.Initialize(reinterpret_cast<uint8_t*>(shared_memory_->start()), in SetSharedMemory()
Dtracing_service_impl.h133 SharedMemoryABI shmem_abi_; variable