Home
last modified time | relevance | path

Searched refs:log_msg (Results 1 – 25 of 27) sorted by relevance

12

/system/core/liblog/
Dlogger_read.cpp93 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()
Dpmsg_reader.cpp31 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()
113 log_msg->entry.len = buf.p.len - sizeof(buf) + sizeof(buf.prio); 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()
117 log_msg->entry.sec = buf.l.realtime.tv_sec; in PmsgRead()
118 log_msg->entry.nsec = buf.l.realtime.tv_nsec; in PmsgRead()
119 log_msg->entry.lid = buf.l.id; in PmsgRead()
[all …]
Dpmsg_reader.h26 int PmsgRead(struct logger_list* logger_list, struct log_msg* log_msg);
Dlogd_reader.h26 int LogdRead(struct logger_list* logger_list, struct log_msg* log_msg);
Dlogd_reader.cpp347 int LogdRead(struct logger_list* logger_list, struct log_msg* log_msg) { in LogdRead() argument
354 ret = TEMP_FAILURE_RETRY(recv(ret, log_msg, LOGGER_ENTRY_MAX_LEN, 0)); in LogdRead()
DREADME.md72 int android_logger_list_read(struct logger_list *logger_list, struct log_msg *log_msg)
/system/core/liblog/tests/
Dlog_wrap_test.cpp41 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()
Dliblog_test.cpp95 log_msg log_msg; in RunLogTests() local
96 ASSERT_GT(android_logger_list_read(logger_list.get(), &log_msg), 0); in RunLogTests()
98 ASSERT_EQ(log_buffer, log_msg.id()); in RunLogTests()
99 ASSERT_EQ(pid, log_msg.entry.pid); in RunLogTests()
101 ASSERT_NE(nullptr, log_msg.msg()); in RunLogTests()
103 check_message(log_msg, &found); in RunLogTests()
112 log_msg log_msg; in RunLogTests() local
113 auto ret = android_logger_list_read(logger_list_non_block.get(), &log_msg); in RunLogTests()
119 ASSERT_EQ(log_buffer, log_msg.id()); in RunLogTests()
120 ASSERT_EQ(pid, log_msg.entry.pid); in RunLogTests()
[all …]
Dliblog_benchmark.cpp669 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 …]
/system/core/liblog/include/log/
Dlog_read.h57 struct log_msg { struct
71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() argument
111 struct log_msg* log_msg);
/system/core/liblog/include_vndk/log/
Dlog_read.h57 struct log_msg { struct
71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() argument
111 struct log_msg* log_msg);
/system/core/logd/
DReplayMessages.cpp90 static void PrintMessage(struct log_msg* buf) { in PrintMessage()
124 struct log_msg log_msg; in Write() local
125 log_msg.entry = entry; in Write()
126 if (log_msg.entry.len > LOGGER_ENTRY_MAX_PAYLOAD) { in Write()
127 fprintf(stderr, "payload too large %" PRIu16, log_msg.entry.len); in Write()
130 memcpy(log_msg.msg(), message, log_msg.entry.len); in Write()
132 PrintMessage(&log_msg); in Write()
DLogTags.cpp307 struct log_msg log_msg; in ReadPersistEventLogTags() local
308 int ret = android_logger_list_read(logger_list, &log_msg); in ReadPersistEventLogTags()
311 const char* msg = log_msg.msg(); in ReadPersistEventLogTags()
313 if (log_msg.entry.len <= sizeof(uint32_t)) continue; in ReadPersistEventLogTags()
316 uid_t uid = log_msg.entry.uid; in ReadPersistEventLogTags()
322 auto ctx = create_android_log_parser(log_msg.msg() + sizeof(uint32_t), in ReadPersistEventLogTags()
323 log_msg.entry.len - sizeof(uint32_t)); in ReadPersistEventLogTags()
Dlogd_test.cpp247 static void dump_log_msg(const char* prefix, log_msg* msg, int lid) { in dump_log_msg()
500 log_msg msg_wrap, msg_timeout; in timeout_negative()
605 log_msg msg_wrap, msg_timeout; in TEST()
751 log_msg msg; in TEST()
/system/core/logcat/
Dlogcat.cpp74 void ProcessBuffer(struct log_msg* buf);
187 void Logcat::ProcessBuffer(struct log_msg* buf) { in ProcessBuffer()
1158 struct log_msg log_msg; in Run() local
1159 int ret = android_logger_list_read(logger_list.get(), &log_msg); in Run()
1181 if (log_msg.id() > LOG_ID_MAX) { in Run()
1182 error(EXIT_FAILURE, 0, "Unexpected log id (%d) over LOG_ID_MAX (%d).", log_msg.id(), in Run()
1186 if (!uids.empty() && uids.count(log_msg.entry.uid) == 0) { in Run()
1190 PrintDividers(log_msg.id(), printDividers); in Run()
1193 TEMP_FAILURE_RETRY(write(output_fd_.get(), &log_msg, log_msg.len())); in Run()
1195 ProcessBuffer(&log_msg); in Run()
/system/keymaster/include/keymaster/
Dsoft_keymaster_logger.h29 virtual int log_msg(LogLevel level, const char* fmt, va_list args) const;
Dlogger.h37 virtual int log_msg(LogLevel level, const char* fmt, va_list args) const = 0;
/system/keymaster/contexts/
Dsoft_keymaster_logger.cpp27 int SoftKeymasterLogger::log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function in keymaster::SoftKeymasterLogger
/system/core/debuggerd/libdebuggerd/test/
Dlog_fake.cpp81 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
/system/core/libunwindstack/tests/
DLogFake.cpp90 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
/system/keymaster/android_keymaster/
Dlogger.cpp27 return instance_->log_msg(level, fmt, args); in Log()
/system/security/keystore/tests/
Dauth_token_formatting_test.cpp44 int log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function in keystore::test::__anonc0d9919d0111::StdoutLogger
Dconfirmationui_rate_limiting_test.cpp34 int log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function in keystore::test::__anon362dafdf0111::StdoutLogger
/system/sepolicy/tools/
Dcheck_seapp.c19 #define log_error(fmt, ...) log_msg(stderr, "Error: ", fmt, ##__VA_ARGS__)
20 #define log_warn(fmt, ...) log_msg(stderr, "Warning: ", fmt, ##__VA_ARGS__)
21 #define log_info(fmt, ...) if (logging_verbose ) { log_msg(stdout, "Info: ", fmt, ##__VA_ARGS__); }
288 log_msg(FILE *out, const char *prefix, const char *fmt, ...) { in log_msg() function
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp466 log_msg log_entry; in dump_log_file()

12