Home
last modified time | relevance | path

Searched refs:writer_id (Results 1 – 25 of 34) sorted by relevance

12

/external/perfetto/src/tracing/core/
Dtrace_buffer.h160 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 …]
Dstartup_trace_writer.cc36 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()
Dshared_memory_arbiter_impl.cc155 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()
Dtrace_buffer.cc108 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 …]
Dshared_memory_abi_unittest.cc96 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()
Dshared_memory_abi.cc65 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()
Dshared_memory_arbiter_impl_unittest.cc156 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()
Dtracing_service_impl.h86 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()
Dtracing_service_impl.cc1251 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 …]
Dcommit_data_request.cc172 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()
Dshared_memory_arbiter_impl.h90 void SendPatches(WriterID writer_id,
124 WriterID writer_id,
Dtrace_writer_impl_unittest.cc140 EXPECT_EQ(writer->writer_id(), last_commit.chunks_to_patch()[0].writer_id()); in TEST_P()
Dtrace_writer_impl.cc202 header.writer_id.store(id_, std::memory_order_relaxed); in GetNewBuffer()
219 WriterID TraceWriterImpl::writer_id() const { in writer_id() function in perfetto::TraceWriterImpl
Dnull_trace_writer_unittest.cc32 EXPECT_EQ(writer.writer_id(), 0); in TEST()
Dnull_trace_writer.cc52 WriterID NullTraceWriter::writer_id() const { in writer_id() function in perfetto::NullTraceWriter
Dnull_trace_writer.h38 WriterID writer_id() const override;
Dtrace_writer_for_testing.h45 WriterID writer_id() const override;
/external/perfetto/src/tracing/test/
Dmock_producer.cc76 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()
Dmock_producer.h55 void RegisterTraceWriter(uint32_t writer_id, uint32_t target_buffer);
56 void UnregisterTraceWriter(uint32_t writer_id);
Dfake_packet.cc107 : 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/
Dproducer_ipc_client_impl.cc242 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()
Dproducer_ipc_client_impl.h67 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/
Dtracing_service.h68 virtual void RegisterTraceWriter(uint32_t writer_id,
73 virtual void UnregisterTraceWriter(uint32_t writer_id) = 0;
Dshared_memory_abi.h327 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()
Dtrace_writer.h78 virtual WriterID writer_id() const = 0;

12