Home
last modified time | relevance | path

Searched refs:SerializedLogChunk (Results 1 – 9 of 9) sorted by relevance

/system/core/logd/
DSerializedLogChunkTest.cpp27 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 …]
DSerializedLogChunk.cpp23 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()
DSerializedLogChunk.h25 class SerializedLogChunk {
27 explicit SerializedLogChunk(size_t size) : contents_(size) {} in SerializedLogChunk() function
28 SerializedLogChunk(SerializedLogChunk&& other) noexcept = default;
29 ~SerializedLogChunk();
DSerializedFlushToState.h28 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;
DSerializedLogBuffer.h61 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_);
DSerializedLogBuffer.cpp87 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()
DSerializedFlushToStateTest.cpp152 auto chunk = SerializedLogChunk{kChunkSize}; in AddChunkWithMessages()
167 std::list<SerializedLogChunk> log_chunks_[LOG_ID_MAX];
DSerializedFlushToState.cpp130 const std::list<SerializedLogChunk>::iterator& buffer_it) { in Prune()
DAndroid.bp65 "SerializedLogChunk.cpp",