/external/perfetto/src/tracing/core/ |
D | trace_buffer.h | 160 WriterID writer_id; member 192 WriterID writer_id, 296 WriterID writer_id = 0; member 330 : producer_id{p}, writer_id{w}, chunk_id{c} {} in Key() 333 : Key(cr.producer_id, cr.writer_id, cr.chunk_id) {} in Key() 339 return std::tie(producer_id, writer_id, chunk_id) < 340 std::tie(other.producer_id, other.writer_id, other.chunk_id); 344 return std::tie(producer_id, writer_id, chunk_id) == 345 std::tie(other.producer_id, other.writer_id, other.chunk_id); 354 WriterID writer_id; member [all …]
|
D | startup_trace_writer.cc | 36 WriterID writer_id, in NewChunk() argument 49 header.writer_id.store(writer_id, std::memory_order_relaxed); in NewChunk() 169 arbiter, trace_writer_->writer_id(), target_buffer); in BindToArbiter() 245 WriterID StartupTraceWriter::writer_id() const { in writer_id() function in perfetto::StartupTraceWriter 252 return trace_writer_->writer_id(); in writer_id() 301 WriterID writer_id, in CommitLocalBufferChunks() argument 309 if (packet_sizes_.empty() || !writer_id) in CommitLocalBufferChunks() 321 NewChunk(arbiter, writer_id, next_chunk_id++, false); in CommitLocalBufferChunks() 377 NewChunk(arbiter, writer_id, next_chunk_id++, is_fragmenting); in CommitLocalBufferChunks()
|
D | shared_memory_arbiter_impl.cc | 155 const WriterID writer_id = chunk.writer_id(); in ReturnCompletedChunk() local 156 UpdateCommitDataRequest(std::move(chunk), writer_id, target_buffer, in ReturnCompletedChunk() 160 void SharedMemoryArbiterImpl::SendPatches(WriterID writer_id, in SendPatches() argument 164 UpdateCommitDataRequest(Chunk(), writer_id, target_buffer, patch_list); in SendPatches() 168 WriterID writer_id, in UpdateCommitDataRequest() argument 186 PERFETTO_DCHECK(chunk.writer_id() == writer_id); in UpdateCommitDataRequest() 223 last_chunk_req->set_writer_id(writer_id); in UpdateCommitDataRequest()
|
D | trace_buffer.cc | 108 WriterID writer_id, in CopyChunkUntrusted() argument 144 record.writer_id = writer_id; in CopyChunkUntrusted() 299 auto producer_and_writer_id = std::make_pair(producer_id_trusted, writer_id); in CopyChunkUntrusted() 366 key.producer_id, key.writer_id, key.chunk_id, in DeleteNextChunksFor() 407 WriterID writer_id, in TryPatchChunkContents() argument 412 ChunkMeta::Key key(producer_id, writer_id, chunk_id); in TryPatchChunkContents() 437 producer_id, writer_id, chunk_id, chunk_end - chunk_begin, in TryPatchChunkContents() 493 std::tie(prev_it->first.producer_id, prev_it->first.writer_id) < in GetReadIterForSequence() 494 std::tie(seq_begin->first.producer_id, seq_begin->first.writer_id)); in GetReadIterForSequence() 508 auto producer_and_writer_id = std::make_pair(key.producer_id, key.writer_id); in GetReadIterForSequence() [all …]
|
D | shared_memory_abi_unittest.cc | 96 uint16_t writer_id = last_writer_id; in TEST_P() local 98 header.writer_id.store(writer_id); in TEST_P() 127 ASSERT_EQ(writer_id, chunk.header()->writer_id.load()); in TEST_P()
|
D | shared_memory_abi.cc | 65 header->writer_id.store(0u, std::memory_order_relaxed); in ClearChunkHeader() 126 static_assert(sizeof(ChunkHeader::writer_id) == sizeof(WriterID), in Initialize() 132 chunk_header.writer_id.store(static_cast<uint16_t>(-1)); in Initialize() 133 PERFETTO_CHECK(kMaxWriterID <= chunk_header.writer_id.load()); in Initialize() 193 new_header->writer_id.store(header->writer_id, in TryAcquireChunk()
|
D | shared_memory_arbiter_impl_unittest.cc | 156 WriterID writer_id = writer->writer_id(); in TEST_P() local 157 ASSERT_TRUE(writers.emplace(writer_id, std::move(writer)).second); in TEST_P() 162 ASSERT_EQ(arbiter_->CreateTraceWriter(0)->writer_id(), 0); in TEST_P()
|
D | tracing_service_impl.h | 86 void RegisterTraceWriter(uint32_t writer_id, 88 void UnregisterTraceWriter(uint32_t writer_id) override; 112 base::Optional<BufferID> buffer_id_for_writer(WriterID writer_id) const { in buffer_id_for_writer() argument 113 const auto it = writers_.find(writer_id); in buffer_id_for_writer() 362 WriterID writer_id) { in GetPacketSequenceID() 363 auto key = std::make_pair(producer_id, writer_id); in GetPacketSequenceID()
|
D | tracing_service_impl.cc | 1251 WriterID writer_id = chunk.writer_id(); in ScrapeSharedMemoryBuffers() local 1253 producer->buffer_id_for_writer(writer_id); in ScrapeSharedMemoryBuffers() 1271 producer->id_, producer->uid_, writer_id, chunk_id, *target_buffer_id, in ScrapeSharedMemoryBuffers() 1491 PERFETTO_DCHECK(sequence_properties.writer_id != 0); in ReadBuffers() 1513 sequence_properties.writer_id)); in ReadBuffers() 1872 WriterID writer_id, in CopyProducerPageIntoLogBuffer() argument 1914 producer->buffer_id_for_writer(writer_id); in CopyProducerPageIntoLogBuffer() 1919 writer_id, producer_id_trusted, *associated_buffer, in CopyProducerPageIntoLogBuffer() 1926 buf->CopyChunkUntrusted(producer_id_trusted, producer_uid_trusted, writer_id, in CopyProducerPageIntoLogBuffer() 1938 const WriterID writer_id = static_cast<WriterID>(chunk.writer_id()); in ApplyChunkPatches() local [all …]
|
D | commit_data_request.cc | 172 static_assert(sizeof(writer_id_) == sizeof(proto.writer_id()), in FromProto() 174 writer_id_ = static_cast<decltype(writer_id_)>(proto.writer_id()); in FromProto() 201 static_assert(sizeof(writer_id_) == sizeof(proto->writer_id()), in ToProto() 203 proto->set_writer_id(static_cast<decltype(proto->writer_id())>(writer_id_)); in ToProto()
|
D | shared_memory_arbiter_impl.h | 90 void SendPatches(WriterID writer_id, 124 WriterID writer_id,
|
D | trace_writer_impl_unittest.cc | 140 EXPECT_EQ(writer->writer_id(), last_commit.chunks_to_patch()[0].writer_id()); in TEST_P()
|
D | trace_writer_impl.cc | 202 header.writer_id.store(id_, std::memory_order_relaxed); in GetNewBuffer() 219 WriterID TraceWriterImpl::writer_id() const { in writer_id() function in perfetto::TraceWriterImpl
|
D | null_trace_writer_unittest.cc | 32 EXPECT_EQ(writer.writer_id(), 0); in TEST()
|
D | null_trace_writer.cc | 52 WriterID NullTraceWriter::writer_id() const { in writer_id() function in perfetto::NullTraceWriter
|
D | null_trace_writer.h | 38 WriterID writer_id() const override;
|
D | trace_writer_for_testing.h | 45 WriterID writer_id() const override;
|
/external/perfetto/src/tracing/test/ |
D | mock_producer.cc | 76 void MockProducer::RegisterTraceWriter(uint32_t writer_id, in RegisterTraceWriter() argument 78 service_endpoint_->RegisterTraceWriter(writer_id, target_buffer); in RegisterTraceWriter() 81 void MockProducer::UnregisterTraceWriter(uint32_t writer_id) { in UnregisterTraceWriter() argument 82 service_endpoint_->UnregisterTraceWriter(writer_id); in UnregisterTraceWriter()
|
D | mock_producer.h | 55 void RegisterTraceWriter(uint32_t writer_id, uint32_t target_buffer); 56 void UnregisterTraceWriter(uint32_t writer_id);
|
D | fake_packet.cc | 107 : trace_buffer_{t}, producer_id{p}, writer_id{w}, chunk_id{c} {} in FakeChunk() 156 trace_buffer_->CopyChunkUntrusted(producer_id, uid, writer_id, chunk_id, in CopyIntoTraceBuffer()
|
/external/perfetto/src/tracing/ipc/producer/ |
D | producer_ipc_client_impl.cc | 242 void ProducerIPCClientImpl::RegisterTraceWriter(uint32_t writer_id, in RegisterTraceWriter() argument 251 req.set_trace_writer_id(writer_id); in RegisterTraceWriter() 257 void ProducerIPCClientImpl::UnregisterTraceWriter(uint32_t writer_id) { in UnregisterTraceWriter() argument 265 req.set_trace_writer_id(writer_id); in UnregisterTraceWriter()
|
D | producer_ipc_client_impl.h | 67 void RegisterTraceWriter(uint32_t writer_id, uint32_t target_buffer) override; 68 void UnregisterTraceWriter(uint32_t writer_id) override;
|
/external/perfetto/include/perfetto/tracing/core/ |
D | tracing_service.h | 68 virtual void RegisterTraceWriter(uint32_t writer_id, 73 virtual void UnregisterTraceWriter(uint32_t writer_id) = 0;
|
D | shared_memory_abi.h | 327 std::atomic<uint16_t> writer_id; member 367 uint16_t writer_id() { in writer_id() function 368 return header()->writer_id.load(std::memory_order_relaxed); in writer_id()
|
D | trace_writer.h | 78 virtual WriterID writer_id() const = 0;
|