Home
last modified time | relevance | path

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

/external/perfetto/src/tracing/core/
Dtrace_buffer.h169 WriterID writer_id,
264 WriterID writer_id = 0; member
298 : producer_id{p}, writer_id{w}, chunk_id{c} {} in Key()
301 : Key(cr.producer_id, cr.writer_id, cr.chunk_id) {} in Key()
307 return std::tie(producer_id, writer_id, chunk_id) <
308 std::tie(other.producer_id, other.writer_id, other.chunk_id);
312 return std::tie(producer_id, writer_id, chunk_id) ==
313 std::tie(other.producer_id, other.writer_id, other.chunk_id);
320 WriterID writer_id; member
375 WriterID writer_id() const { in writer_id() function
[all …]
Dtrace_buffer.cc106 WriterID writer_id, in CopyChunkUntrusted() argument
143 record.writer_id = writer_id; in CopyChunkUntrusted()
196 last_chunk_id_[std::make_pair(producer_id_trusted, writer_id)] = chunk_id; in CopyChunkUntrusted()
244 key.producer_id, key.writer_id, key.chunk_id, in DeleteNextChunksFor()
273 WriterID writer_id, in TryPatchChunkContents() argument
278 ChunkMeta::Key key(producer_id, writer_id, chunk_id); in TryPatchChunkContents()
303 producer_id, writer_id, chunk_id, chunk_end - chunk_begin, in TryPatchChunkContents()
359 std::tie(prev_it->first.producer_id, prev_it->first.writer_id) < in GetReadIterForSequence()
360 std::tie(seq_begin->first.producer_id, seq_begin->first.writer_id)); in GetReadIterForSequence()
374 auto producer_and_writer_id = std::make_pair(key.producer_id, key.writer_id); in GetReadIterForSequence()
[all …]
Dshared_memory_arbiter_impl_unittest.cc136 WriterID writer_id = writer->writer_id(); in TEST_P() local
137 ASSERT_TRUE(writers.emplace(writer_id, std::move(writer)).second); in TEST_P()
142 ASSERT_EQ(arbiter_->CreateTraceWriter(0)->writer_id(), 0); in TEST_P()
Dshared_memory_abi_unittest.cc95 uint16_t writer_id = last_writer_id; in TEST_P() local
97 header.writer_id.store(writer_id); in TEST_P()
126 ASSERT_EQ(writer_id, chunk.header()->writer_id.load()); in TEST_P()
Dcommit_data_request.cc143 static_assert(sizeof(writer_id_) == sizeof(proto.writer_id()), in FromProto()
145 writer_id_ = static_cast<decltype(writer_id_)>(proto.writer_id()); in FromProto()
172 static_assert(sizeof(writer_id_) == sizeof(proto->writer_id()), in ToProto()
174 proto->set_writer_id(static_cast<decltype(proto->writer_id())>(writer_id_)); in ToProto()
Dshared_memory_abi.cc115 static_assert(sizeof(ChunkHeader::writer_id) == sizeof(WriterID), in Initialize()
121 chunk_header.writer_id.store(static_cast<uint16_t>(-1)); in Initialize()
122 PERFETTO_CHECK(kMaxWriterID <= chunk_header.writer_id.load()); in Initialize()
183 new_header->writer_id.store(header->writer_id, in TryAcquireChunk()
Dshared_memory_arbiter_impl.cc141 const WriterID writer_id = chunk.writer_id(); in ReturnCompletedChunk() local
174 last_chunk_req->set_writer_id(writer_id); in ReturnCompletedChunk()
Dservice_impl.cc880 WriterID writer_id, in CopyProducerPageIntoLogBuffer() argument
902 buf->CopyChunkUntrusted(producer_id_trusted, producer_uid_trusted, writer_id, in CopyProducerPageIntoLogBuffer()
913 const WriterID writer_id = static_cast<WriterID>(chunk.writer_id()); in ApplyChunkPatches() local
918 if (!writer_id || writer_id > kMaxWriterID || !buf) { in ApplyChunkPatches()
922 producer_id_trusted, chunk.target_buffer(), chunk_id, writer_id); in ApplyChunkPatches()
948 buf->TryPatchChunkContents(producer_id_trusted, writer_id, chunk_id, in ApplyChunkPatches()
1270 WriterID writer_id = chunk_header.writer_id.load(std::memory_order_relaxed); in CommitData() local
1277 id_, uid_, writer_id, chunk_id, buffer_id, num_fragments, chunk_flags, in CommitData()
Dtrace_writer_impl.cc182 header.writer_id.store(id_, std::memory_order_relaxed); in GetNewBuffer()
198 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.h38 WriterID writer_id() const override;
Dnull_trace_writer.cc52 WriterID NullTraceWriter::writer_id() const { in writer_id() function in perfetto::NullTraceWriter
Dtrace_writer_for_testing.h42 WriterID writer_id() const override;
Dtrace_writer_impl.h42 WriterID writer_id() const override;
Dtrace_writer_for_testing.cc66 WriterID TraceWriterForTesting::writer_id() const { in writer_id() function in perfetto::TraceWriterForTesting
Dtrace_buffer_unittest.cc102 actual_seq << "{" << it.producer_id() << "," << it.writer_id() << "," in IteratorSeqEq()
/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h324 std::atomic<uint16_t> writer_id; member
364 uint16_t writer_id() { in writer_id() function
365 return header()->writer_id.load(std::memory_order_relaxed); in writer_id()
Dtrace_writer.h78 virtual WriterID writer_id() const = 0;
Dcommit_data_request.h133 uint32_t writer_id() const { return writer_id_; } in writer_id() function
/external/perfetto/src/tracing/test/
Dfake_packet.cc107 : trace_buffer_{t}, producer_id{p}, writer_id{w}, chunk_id{c} {} in FakeChunk()
146 trace_buffer_->CopyChunkUntrusted(producer_id, uid, writer_id, chunk_id, in CopyIntoTraceBuffer()
Dfake_packet.h78 WriterID writer_id; variable
/external/perfetto/protos/perfetto/common/
Dcommit_data_request.proto61 optional uint32 writer_id = 2; field