Searched refs:wptr_ (Results 1 – 2 of 2) sorted by relevance
/external/perfetto/src/tracing/core/ |
D | trace_buffer.cc | 94 wptr_ = begin(); in Initialize() 122 TRACE_BUFFER_DLOG("CopyChunk @ %lu, size=%zu", wptr_ - begin(), record_size); in CopyChunkUntrusted() 135 wptr_ = begin(); in CopyChunkUntrusted() 174 index_.emplace(key, ChunkMeta(GetChunkRecordAt(wptr_), num_fragments, in CopyChunkUntrusted() 181 index_.emplace(key, ChunkMeta(GetChunkRecordAt(wptr_), num_fragments, in CopyChunkUntrusted() 184 TRACE_BUFFER_DLOG(" copying @ [%lu - %lu] %zu", wptr_ - begin(), in CopyChunkUntrusted() 185 wptr_ - begin() + record_size, record_size); in CopyChunkUntrusted() 187 TRACE_BUFFER_DLOG("Chunk raw: %s", HexDump(wptr_, record_size).c_str()); in CopyChunkUntrusted() 188 wptr_ += record_size; in CopyChunkUntrusted() 189 if (wptr_ >= end()) { in CopyChunkUntrusted() [all …]
|
D | trace_buffer.h | 483 DcheckIsAlignedAndWithinBounds(wptr_); in WriteChunkRecord() 486 PERFETTO_CHECK(wptr_ + sizeof(record) + size <= end()); in WriteChunkRecord() 487 memcpy(wptr_, &record, sizeof(record)); in WriteChunkRecord() 489 memcpy(wptr_ + sizeof(record), src, size); in WriteChunkRecord() 494 memset(wptr_ + sizeof(record) + size, 0, rounding_size); in WriteChunkRecord() 499 size_t size_to_end() const { return static_cast<size_t>(end() - wptr_); } in size_to_end() 504 uint8_t* wptr_ = nullptr; // Write pointer. variable
|