/system/logging/logd/fuzz/ |
D | log_buffer_log_fuzzer.cpp | 47 int write_log_messages(const uint8_t** pdata, size_t* data_left, LogBuffer* log_buffer, in write_log_messages() argument 81 log_buffer->Log(log_id, logInput->realtime, logInput->uid, logInput->pid, logInput->tid, msg, in write_log_messages() 108 std::unique_ptr<LogBuffer> log_buffer; in LLVMFuzzerTestOneInput() local 110 log_buffer.reset(new SerializedLogBuffer(&reader_list, &tags, &stats)); in LLVMFuzzerTestOneInput() 112 log_buffer.reset(new ChattyLogBuffer(&reader_list, &tags, &prune_list, &stats)); in LLVMFuzzerTestOneInput() 119 log_id_for_each(i) { log_buffer->SetSize(i, 10000); } in LLVMFuzzerTestOneInput() 122 if (!write_log_messages(pdata, &data_left, log_buffer.get(), &stats)) { in LLVMFuzzerTestOneInput() 132 new LogReaderThread(log_buffer.get(), &reader_list, std::move(test_writer), true, 0, in LLVMFuzzerTestOneInput() 146 log_id_for_each(i) { log_buffer->Clear(i, 0); } in LLVMFuzzerTestOneInput()
|
/system/logging/logd/ |
D | SerializedLogBuffer.cpp | 30 static SerializedLogEntry* LogToLogBuffer(std::list<SerializedLogChunk>& log_buffer, in LogToLogBuffer() argument 34 if (log_buffer.empty()) { in LogToLogBuffer() 35 log_buffer.push_back(SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in LogToLogBuffer() 39 if (!log_buffer.back().CanLog(total_len)) { in LogToLogBuffer() 40 log_buffer.back().FinishWriting(); in LogToLogBuffer() 41 log_buffer.push_back(SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in LogToLogBuffer() 44 return log_buffer.back().Log(sequence, realtime, uid, pid, tid, msg, len); in LogToLogBuffer() 51 void ClearLogsByUid(std::list<SerializedLogChunk>& log_buffer, uid_t uid, size_t max_size, in ClearLogsByUid() argument 55 auto it = log_buffer.begin(); in ClearLogsByUid() 56 while (it != log_buffer.end()) { in ClearLogsByUid() [all …]
|
D | main.cpp | 252 LogBuffer* log_buffer = nullptr; in main() local 254 log_buffer = new ChattyLogBuffer(&reader_list, &log_tags, &prune_list, &log_statistics); in main() 256 log_buffer = new SerializedLogBuffer(&reader_list, &log_tags, &log_statistics); in main() 258 log_buffer = new SimpleLogBuffer(&reader_list, &log_tags, &log_statistics); in main() 265 LogReader* reader = new LogReader(log_buffer, &reader_list); in main() 273 LogListener* swl = new LogListener(log_buffer); in main() 280 CommandListener* cl = new CommandListener(log_buffer, &log_tags, &prune_list, &log_statistics); in main() 291 al = new LogAudit(log_buffer, dmesg_fd, &log_statistics); in main() 296 kl = new LogKlog(log_buffer, fdDmesg, fdPmesg, al != nullptr, &log_statistics); in main()
|
D | SerializedLogBufferTest.cpp | 37 SerializedLogBuffer log_buffer(&reader_list, &tags, &stats); in TEST() local 39 log_buffer.SetSize(LOG_ID_MAIN, kLogBufferMinSize); in TEST() 40 log_buffer.Clear(LOG_ID_MAIN, 0); in TEST() 44 log_buffer.Log(LOG_ID_MAIN, log_time(0, 1), kNonClearUid, 1, 1, kDontClearMessage.data(), in TEST() 52 log_buffer.Log(LOG_ID_MAIN, log_time(1, size_written), kClearUid, 1, 1, in TEST() 57 log_buffer.Clear(LOG_ID_MAIN, kClearUid); in TEST() 60 log_buffer.Log(LOG_ID_MAIN, log_time(0, 2), kNonClearUid, 1, 1, kDontClearMessage.data(), in TEST()
|
D | LogReaderThread.cpp | 29 LogReaderThread::LogReaderThread(LogBuffer* log_buffer, LogReaderList* reader_list, in LogReaderThread() argument 34 : log_buffer_(log_buffer), in LogReaderThread()
|
D | LogReaderThread.h | 40 LogReaderThread(LogBuffer* log_buffer, LogReaderList* reader_list,
|
D | SerializedLogBuffer.h | 79 void ClearLogsByUid(std::list<SerializedLogChunk>& log_buffer, uid_t uid, size_t max_size,
|
D | README.replay.md | 10 `log_buffer = new SimpleLogBuffer(&reader_list, &log_tags, &log_statistics);` in `main.cpp`.
|
/system/chre/platform/ |
D | platform.mk | 183 SLPI_QSH_SRCS += platform/shared/log_buffer.cc 316 GOOGLETEST_COMMON_SRCS += platform/shared/log_buffer.cc
|
/system/logging/liblog/tests/ |
D | liblog_test.cpp | 82 static void RunLogTests(log_id_t log_buffer, FWrite write_messages, FCheck check_message) { in RunLogTests() argument 86 android_logger_list_open(log_buffer, 0, 1000, pid)}; in RunLogTests() 98 ASSERT_EQ(log_buffer, log_msg.id()); in RunLogTests() 107 android_logger_list_open(log_buffer, ANDROID_LOG_NONBLOCK, 1000, pid)}; in RunLogTests() 119 ASSERT_EQ(log_buffer, log_msg.id()); in RunLogTests()
|
/system/chre/ |
D | Android.bp | 322 "platform/shared/log_buffer.cc",
|