Searched refs:SerializedLogChunk (Results 1 – 10 of 10) sorted by relevance
/system/logging/logd/ |
D | SerializedLogChunk.cpp | 24 SerializedLogChunk::~SerializedLogChunk() { in ~SerializedLogChunk() 28 void SerializedLogChunk::FinishWriting() { in FinishWriting() 42 void SerializedLogChunk::IncReaderRefCount() { in IncReaderRefCount() 50 void SerializedLogChunk::DecReaderRefCount() { in DecReaderRefCount() 60 void SerializedLogChunk::AttachReader(SerializedFlushToState* reader) { in AttachReader() 65 void SerializedLogChunk::DetachReader(SerializedFlushToState* reader) { in DetachReader() 72 void SerializedLogChunk::NotifyReadersOfPrune(log_id_t log_id) { in NotifyReadersOfPrune() 80 bool SerializedLogChunk::CanLog(size_t len) { in CanLog() 84 SerializedLogEntry* SerializedLogChunk::Log(uint64_t sequence, log_time realtime, uid_t uid, in Log()
|
D | SerializedLogChunk.h | 33 class SerializedLogChunk { 35 friend void VerifyChunks(const std::list<SerializedLogChunk>& expected, 36 const std::list<SerializedLogChunk>& chunks); 40 LogEntryIterator(SerializedLogChunk& chunk, int read_offset_) in LogEntryIterator() 54 SerializedLogChunk& chunk_; 58 explicit SerializedLogChunk(size_t size) : contents_(size) {} in SerializedLogChunk() function 59 SerializedLogChunk(SerializedLogChunk&& other) noexcept = default; 60 ~SerializedLogChunk();
|
D | SerializedLogChunkTest.cpp | 30 TEST(SerializedLogChunk, smoke) { in TEST() argument 32 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 33 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST() 59 TEST(SerializedLogChunk, fill_log_exactly) { in TEST() argument 63 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 64 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST() 78 TEST(SerializedLogChunk, three_logs) { in TEST() argument 80 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 114 auto chunk = SerializedLogChunk{chunk_size}; in TEST_F()
|
D | SerializedLogBufferTest.cpp | 73 SerializedLogChunk CreateChunk(size_t max_size, const std::vector<TestEntry>& entries, in CreateChunk() 75 SerializedLogChunk chunk(max_size / SerializedLogBuffer::kChunkSizeDivisor); in CreateChunk() 91 void VerifyChunks(const std::list<SerializedLogChunk>& expected, in VerifyChunks() 92 const std::list<SerializedLogChunk>& chunks) { in VerifyChunks() 130 std::list<SerializedLogChunk> chunks; in TEST() 131 std::list<SerializedLogChunk> expected_chunks; in TEST() 155 std::list<SerializedLogChunk> chunks; in TEST() 159 std::list<SerializedLogChunk> expected_chunks; in TEST() 189 std::list<SerializedLogChunk> chunks; in TEST() 206 std::list<SerializedLogChunk> expected_chunks; in TEST() [all …]
|
D | SerializedFlushToState.h | 29 std::list<SerializedLogChunk>::iterator buffer_it; 48 SerializedFlushToState(uint64_t start, LogMask log_mask, std::list<SerializedLogChunk>* logs) 79 std::list<SerializedLogChunk>* logs_ GUARDED_BY(logd_lock) = nullptr;
|
D | SerializedLogBuffer.h | 65 void RemoveChunkFromStats(log_id_t log_id, SerializedLogChunk& chunk); 73 std::list<SerializedLogChunk> logs_[LOG_ID_MAX] GUARDED_BY(logd_lock); 79 void ClearLogsByUid(std::list<SerializedLogChunk>& log_buffer, uid_t uid, size_t max_size,
|
D | SerializedLogBuffer.cpp | 30 static SerializedLogEntry* LogToLogBuffer(std::list<SerializedLogChunk>& log_buffer, in LogToLogBuffer() 35 log_buffer.push_back(SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in LogToLogBuffer() 41 log_buffer.push_back(SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in LogToLogBuffer() 51 void ClearLogsByUid(std::list<SerializedLogChunk>& log_buffer, uid_t uid, size_t max_size, in ClearLogsByUid() 54 std::list<SerializedLogChunk> new_logs; in ClearLogsByUid() 75 SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in ClearLogsByUid() 177 void SerializedLogBuffer::RemoveChunkFromStats(log_id_t log_id, SerializedLogChunk& chunk) { in RemoveChunkFromStats()
|
D | SerializedFlushToStateTest.cpp | 152 auto chunk = SerializedLogChunk{kChunkSize}; in AddChunkWithMessages() 167 std::list<SerializedLogChunk> log_chunks_[LOG_ID_MAX]; 297 auto chunk = SerializedLogChunk{kChunkSize}; in TEST() 303 std::list<SerializedLogChunk> log_chunks[LOG_ID_MAX]; in TEST()
|
D | SerializedFlushToState.cpp | 24 std::list<SerializedLogChunk>* logs) in SerializedFlushToState()
|
D | Android.bp | 74 "SerializedLogChunk.cpp",
|