Home
last modified time | relevance | path

Searched refs:log_buffer (Results 1 – 8 of 8) sorted by relevance

/system/core/logd/fuzz/
Dlog_buffer_log_fuzzer.cpp57 int write_log_messages(const uint8_t** pdata, size_t* data_left, LogBuffer* log_buffer, in write_log_messages() argument
91 log_buffer->Log(log_id, logInput->realtime, logInput->uid, logInput->pid, logInput->tid, msg, in write_log_messages()
118 std::unique_ptr<LogBuffer> log_buffer; in LLVMFuzzerTestOneInput() local
120 log_buffer.reset(new SerializedLogBuffer(&reader_list, &tags, &stats)); in LLVMFuzzerTestOneInput()
122 log_buffer.reset(new ChattyLogBuffer(&reader_list, &tags, &prune_list, &stats)); in LLVMFuzzerTestOneInput()
129 log_id_for_each(i) { log_buffer->SetSize(i, 10000); } in LLVMFuzzerTestOneInput()
132 if (!write_log_messages(pdata, &data_left, log_buffer.get(), &stats)) { in LLVMFuzzerTestOneInput()
142 new LogReaderThread(log_buffer.get(), &reader_list, std::move(test_writer), true, 0, in LLVMFuzzerTestOneInput()
156 log_id_for_each(i) { log_buffer->Clear(i, 0); } in LLVMFuzzerTestOneInput()
/system/core/logd/
Dmain.cpp282 LogBuffer* log_buffer = nullptr; in main() local
284 log_buffer = new ChattyLogBuffer(&reader_list, &log_tags, &prune_list, &log_statistics); in main()
286 log_buffer = new SerializedLogBuffer(&reader_list, &log_tags, &log_statistics); in main()
288 log_buffer = new SimpleLogBuffer(&reader_list, &log_tags, &log_statistics); in main()
295 LogReader* reader = new LogReader(log_buffer, &reader_list); in main()
303 LogListener* swl = new LogListener(log_buffer); in main()
310 CommandListener* cl = new CommandListener(log_buffer, &log_tags, &prune_list, &log_statistics); in main()
321 al = new LogAudit(log_buffer, dmesg_fd, &log_statistics); in main()
326 kl = new LogKlog(log_buffer, fdDmesg, fdPmesg, al != nullptr, &log_statistics); in main()
DSerializedLogBuffer.cpp152 auto& log_buffer = logs_[log_id]; in Prune() local
153 auto it = log_buffer.begin(); in Prune()
154 while (it != log_buffer.end()) { in Prune()
171 log_buffer.erase(it_to_prune); in Prune()
176 log_buffer.erase(it_to_prune); in Prune()
186 if (it == log_buffer.end()) { in Prune()
DLogReaderThread.cpp28 LogReaderThread::LogReaderThread(LogBuffer* log_buffer, LogReaderList* reader_list, in LogReaderThread() argument
33 : log_buffer_(log_buffer), in LogReaderThread()
DLogReaderThread.h39 LogReaderThread(LogBuffer* log_buffer, LogReaderList* reader_list,
DREADME.replay.md10 `log_buffer = new SimpleLogBuffer(&reader_list, &log_tags, &log_statistics);` in `main.cpp`.
/system/chre/host/msm/daemon/
Dchre_daemon.cc160 static void log_buffer(const uint8_t * /*buffer*/, size_t /*size*/) {} in log_buffer() function
162 static void log_buffer(const uint8_t *buffer, size_t size) { in log_buffer() function
604 log_buffer(static_cast<const uint8_t *>(data), length); in sendMessageToChre()
835 log_buffer(messageBuffer, messageLen); in chre_message_to_host_thread()
/system/core/liblog/tests/
Dliblog_test.cpp82 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()