/aosp12/bionic/libc/malloc_debug/tests/ |
H A D | malloc_debug_config_tests.cpp | 75 std::string log_msg( in TEST_F() local 84 std::string log_msg( in TEST_F() local 94 std::string log_msg( in TEST_F() local 104 std::string log_msg( in TEST_F() local 114 std::string log_msg( in TEST_F() local 299 std::string log_msg( in TEST_F() local 330 std::string log_msg( in TEST_F() local 480 std::string log_msg( in TEST_F() local 498 std::string log_msg( in TEST_F() local 534 std::string log_msg( in TEST_F() local [all …]
|
H A D | log_fake.cpp | 98 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
|
/aosp12/system/logging/liblog/ |
H A D | logger_read.cpp | 93 int android_logger_list_read(struct logger_list* logger_list, struct log_msg* log_msg) { in android_logger_list_read() argument 102 ret = PmsgRead(logger_list, log_msg); in android_logger_list_read() 104 ret = LogdRead(logger_list, log_msg); in android_logger_list_read() 116 if (ret < static_cast<int>(sizeof(log_msg->entry))) { in android_logger_list_read() 120 if (log_msg->entry.hdr_size < sizeof(log_msg->entry) || in android_logger_list_read() 121 log_msg->entry.hdr_size >= LOGGER_ENTRY_MAX_LEN - sizeof(log_msg->entry)) { in android_logger_list_read() 125 if (log_msg->entry.len > ret - log_msg->entry.hdr_size) { in android_logger_list_read() 129 log_msg->buf[log_msg->entry.len + log_msg->entry.hdr_size] = '\0'; in android_logger_list_read()
|
H A D | pmsg_reader.cpp | 31 int PmsgRead(struct logger_list* logger_list, struct log_msg* log_msg) { in PmsgRead() argument 41 memset(log_msg, 0, sizeof(*log_msg)); in PmsgRead() 99 char* msg = reinterpret_cast<char*>(&log_msg->entry) + sizeof(log_msg->entry); in PmsgRead() 114 log_msg->entry.hdr_size = sizeof(log_msg->entry); in PmsgRead() 115 log_msg->entry.pid = buf.p.pid; in PmsgRead() 116 log_msg->entry.tid = buf.l.tid; in PmsgRead() 119 log_msg->entry.lid = buf.l.id; in PmsgRead() 120 log_msg->entry.uid = buf.p.uid; in PmsgRead() 219 log_msg log_msg; in __android_log_pmsg_file_read() local 224 char* msg = (char*)&log_msg + hdr_size; in __android_log_pmsg_file_read() [all …]
|
H A D | pmsg_reader.h | 26 int PmsgRead(struct logger_list* logger_list, struct log_msg* log_msg);
|
H A D | logd_reader.h | 26 int LogdRead(struct logger_list* logger_list, struct log_msg* log_msg);
|
H A D | logd_reader.cpp | 365 int LogdRead(struct logger_list* logger_list, struct log_msg* log_msg) { in LogdRead() argument 372 ret = TEMP_FAILURE_RETRY(recv(ret, log_msg, LOGGER_ENTRY_MAX_LEN, 0)); in LogdRead()
|
/aosp12/system/logging/liblog/tests/ |
H A D | liblog_test.cpp | 95 log_msg log_msg; in RunLogTests() local 112 log_msg log_msg; in RunLogTests() local 260 auto check_function = [&](log_msg log_msg, bool* found) { in TEST() argument 309 auto check_function = [&](log_msg log_msg, bool* found) { in TEST() argument 356 auto check_function = [&](log_msg log_msg, bool* found) { in bswrite_test() argument 587 log_msg log_msg; in TEST() local 743 log_msg log_msg; in TEST() local 1109 log_msg log_msg; in TEST() local 1134 log_msg log_msg; in TEST() local 1540 log_msg log_msg; in count_matching_ts() local [all …]
|
H A D | log_wrap_test.cpp | 41 log_msg log_msg; in read_with_wrap() local 42 int ret = android_logger_list_read(logger_list, &log_msg); in read_with_wrap() 46 log_time start(log_msg.entry.sec, log_msg.entry.nsec); in read_with_wrap() 56 android_logger_list_read(logger_list, &log_msg); in read_with_wrap()
|
H A D | liblog_benchmark.cpp | 669 log_msg log_msg; in BM_log_latency() local 670 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_latency() 677 if ((log_msg.entry.len != (4 + 1 + 8)) || in BM_log_latency() 678 (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_latency() 682 char* eventData = log_msg.msg(); in BM_log_latency() 697 uint64_t end = log_msg.nsec(); in BM_log_latency() 742 log_msg log_msg; in BM_log_delay() local 743 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_delay() 750 if ((log_msg.entry.len != (4 + 1 + 8)) || in BM_log_delay() 751 (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_delay() [all …]
|
/aosp12/system/core/trusty/fuzz/ |
H A D | utils.cpp | 51 log_msg log_msg; in PrintTrustyLog() local 52 int rc = android_logger_list_read(logger_list, &log_msg); in PrintTrustyLog() 56 if (log_msg.entry.sec < kInitialTime) { in PrintTrustyLog() 59 char* msg = log_msg.msg(); in PrintTrustyLog() 61 std::string line(msg, log_msg.entry.len); in PrintTrustyLog()
|
/aosp12/system/logging/liblog/include/log/ |
H A D | log_read.h | 57 struct log_msg { struct 71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() argument 118 struct log_msg* log_msg);
|
/aosp12/system/logging/liblog/include_vndk/log/ |
H A D | log_read.h | 57 struct log_msg { struct 71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() argument 118 struct log_msg* log_msg);
|
/aosp12/system/logging/logd/ |
H A D | ReplayMessages.cpp | 79 static void PrintMessage(struct log_msg* buf) { in PrintMessage() 130 struct log_msg log_msg; in Write() local 131 log_msg.entry = entry; in Write() 132 if (log_msg.entry.len > LOGGER_ENTRY_MAX_PAYLOAD) { in Write() 133 fprintf(stderr, "payload too large %" PRIu16, log_msg.entry.len); in Write() 136 memcpy(log_msg.msg(), message, log_msg.entry.len); in Write() 138 PrintMessage(&log_msg); in Write()
|
H A D | LogTags.cpp | 308 struct log_msg log_msg; in ReadPersistEventLogTags() local 309 int ret = android_logger_list_read(logger_list, &log_msg); in ReadPersistEventLogTags() 312 const char* msg = log_msg.msg(); in ReadPersistEventLogTags() 314 if (log_msg.entry.len <= sizeof(uint32_t)) continue; in ReadPersistEventLogTags() 317 uid_t uid = log_msg.entry.uid; in ReadPersistEventLogTags() 323 auto ctx = create_android_log_parser(log_msg.msg() + sizeof(uint32_t), in ReadPersistEventLogTags() 324 log_msg.entry.len - sizeof(uint32_t)); in ReadPersistEventLogTags()
|
H A D | logd_test.cpp | 251 static void dump_log_msg(const char* prefix, log_msg* msg, int lid) { in dump_log_msg() 504 log_msg msg_wrap, msg_timeout; in timeout_negative() 609 log_msg msg_wrap, msg_timeout; in TEST() 755 log_msg msg; in TEST()
|
/aosp12/frameworks/base/core/jni/ |
H A D | eventlog_helper.h | 164 log_msg log_msg; in readEvents() local 165 int ret = android_logger_list_read(logger_list.get(), &log_msg); in readEvents() 182 if (log_msg.id() != LogID) { in readEvents() 186 int32_t tag = * (int32_t *) log_msg.msg(); in readEvents() 206 memcpy(bytes.get(), log_msg.buf, len); in readEvents()
|
/aosp12/system/logging/logcat/ |
H A D | logcat.cpp | 75 void ProcessBuffer(struct log_msg* buf); 189 void Logcat::ProcessBuffer(struct log_msg* buf) { in ProcessBuffer() 1081 struct log_msg log_msg; in Run() local 1082 int ret = android_logger_list_read(logger_list.get(), &log_msg); in Run() 1104 if (log_msg.id() > LOG_ID_MAX) { in Run() 1105 error(EXIT_FAILURE, 0, "Unexpected log id (%d) over LOG_ID_MAX (%d).", log_msg.id(), in Run() 1109 if (!uids.empty() && uids.count(log_msg.entry.uid) == 0) { in Run() 1114 if (!WriteFully(output_fd_, &log_msg, log_msg.len())) { in Run() 1118 ProcessBuffer(&log_msg); in Run()
|
/aosp12/system/core/debuggerd/libdebuggerd/ |
H A D | tombstone_proto.cpp | 475 log_msg log_entry; in dump_log_file() 526 LogMessage* log_msg = buffer.add_logs(); in dump_log_file() local 527 log_msg->set_timestamp(timestamp); in dump_log_file() 528 log_msg->set_pid(log_entry.entry.pid); in dump_log_file() 529 log_msg->set_tid(log_entry.entry.tid); in dump_log_file() 530 log_msg->set_priority(prio); in dump_log_file() 531 log_msg->set_tag(tag); in dump_log_file() 532 log_msg->set_message(msg); in dump_log_file()
|
/aosp12/system/keymaster/include/keymaster/ |
H A D | soft_keymaster_logger.h | 27 virtual int log_msg(LogLevel level, const char* fmt, va_list args) const;
|
H A D | logger.h | 37 virtual int log_msg(LogLevel level, const char* fmt, va_list args) const = 0;
|
/aosp12/system/keymaster/contexts/ |
H A D | soft_keymaster_logger.cpp | 27 int SoftKeymasterLogger::log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function in keymaster::SoftKeymasterLogger
|
/aosp12/system/core/debuggerd/libdebuggerd/test/ |
H A D | log_fake.cpp | 81 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
|
/aosp12/system/unwinding/libunwindstack/tests/ |
H A D | LogFake.cpp | 90 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
|
/aosp12/system/keymaster/android_keymaster/ |
H A D | logger.cpp | 27 return instance_->log_msg(level, fmt, args); in Log()
|