Searched refs:SerializedLogChunk (Results 1 – 9 of 9) sorted by relevance
/system/core/logd/ |
D | SerializedLogChunkTest.cpp | 27 TEST(SerializedLogChunk, smoke) { in TEST() argument 29 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 30 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST() 56 TEST(SerializedLogChunk, fill_log_exactly) { in TEST() argument 60 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 61 EXPECT_EQ(chunk_size + sizeof(SerializedLogChunk), chunk.PruneSize()); in TEST() 75 TEST(SerializedLogChunk, three_logs) { in TEST() argument 77 auto chunk = SerializedLogChunk{chunk_size}; in TEST() 113 TEST(SerializedLogChunk, catch_DecCompressedRef_CHECK) { in TEST() argument 115 auto chunk = SerializedLogChunk{chunk_size}; in TEST() [all …]
|
D | SerializedLogChunk.cpp | 23 SerializedLogChunk::~SerializedLogChunk() { in ~SerializedLogChunk() 27 void SerializedLogChunk::Compress() { in Compress() 38 void SerializedLogChunk::IncReaderRefCount() { in IncReaderRefCount() 46 void SerializedLogChunk::DecReaderRefCount() { in DecReaderRefCount() 56 bool SerializedLogChunk::ClearUidLogs(uid_t uid, log_id_t log_id, LogStatistics* stats) { in ClearUidLogs() 102 bool SerializedLogChunk::CanLog(size_t len) { in CanLog() 106 SerializedLogEntry* SerializedLogChunk::Log(uint64_t sequence, log_time realtime, uid_t uid, in Log()
|
D | SerializedLogChunk.h | 25 class SerializedLogChunk { 27 explicit SerializedLogChunk(size_t size) : contents_(size) {} in SerializedLogChunk() function 28 SerializedLogChunk(SerializedLogChunk&& other) noexcept = default; 29 ~SerializedLogChunk();
|
D | SerializedFlushToState.h | 28 std::list<SerializedLogChunk>::iterator buffer_it; 60 void InitializeLogs(std::list<SerializedLogChunk>* logs) { in InitializeLogs() 75 void Prune(log_id_t log_id, const std::list<SerializedLogChunk>::iterator& buffer_it); 91 std::list<SerializedLogChunk>* logs_ = nullptr;
|
D | SerializedLogBuffer.h | 61 void NotifyReadersOfPrune(log_id_t log_id, const std::list<SerializedLogChunk>::iterator& chunk) 63 void RemoveChunkFromStats(log_id_t log_id, SerializedLogChunk& chunk); 71 std::list<SerializedLogChunk> logs_[LOG_ID_MAX] GUARDED_BY(lock_);
|
D | SerializedLogBuffer.cpp | 87 logs_[log_id].push_back(SerializedLogChunk(max_size_[log_id] / 4)); in Log() 93 logs_[log_id].push_back(SerializedLogChunk(max_size_[log_id] / 4)); in Log() 118 void SerializedLogBuffer::RemoveChunkFromStats(log_id_t log_id, SerializedLogChunk& chunk) { in RemoveChunkFromStats() 130 log_id_t log_id, const std::list<SerializedLogChunk>::iterator& chunk) { in NotifyReadersOfPrune()
|
D | SerializedFlushToStateTest.cpp | 152 auto chunk = SerializedLogChunk{kChunkSize}; in AddChunkWithMessages() 167 std::list<SerializedLogChunk> log_chunks_[LOG_ID_MAX];
|
D | SerializedFlushToState.cpp | 130 const std::list<SerializedLogChunk>::iterator& buffer_it) { in Prune()
|
D | Android.bp | 65 "SerializedLogChunk.cpp",
|