Home
last modified time | relevance | path

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

/system/core/liblog/tests/
Dlibc_test.cpp54 log_msg log_msg; in TEST() local
55 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
59 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
61 if ((log_msg.entry.len != (4 + 1 + 4)) in TEST()
62 || ((int)log_msg.id() != LOG_ID_EVENTS)) { in TEST()
66 char *eventData = log_msg.msg(); in TEST()
115 log_msg log_msg; in TEST() local
116 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
120 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
122 if ((int)log_msg.id() != LOG_ID_CRASH) { in TEST()
[all …]
Dliblog_benchmark.cpp150 log_msg log_msg; in BM_log_latency() local
151 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_latency()
158 if ((log_msg.entry.len != (4 + 1 + 8)) in BM_log_latency()
159 || (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_latency()
163 char* eventData = log_msg.msg(); in BM_log_latency()
178 uint64_t end = log_msg.nsec(); in BM_log_latency()
230 log_msg log_msg; in BM_log_delay() local
231 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_delay()
238 if ((log_msg.entry.len != (4 + 1 + 8)) in BM_log_delay()
239 || (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_delay()
[all …]
Dliblog_test.cpp135 log_msg log_msg; in TEST() local
136 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
140 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
142 if ((log_msg.entry.len != (4 + 1 + 8)) in TEST()
143 || (log_msg.id() != LOG_ID_EVENTS)) { in TEST()
147 char *eventData = log_msg.msg(); in TEST()
246 log_msg log_msg; in TEST() local
247 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
255 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
257 if ((log_msg.entry.len != (4 + 1 + 8)) in TEST()
[all …]
/system/core/include/log/
Dlogger.h79 struct log_msg { struct
89 bool operator== (const log_msg &T) const argument
93 bool operator!= (const log_msg &T) const
97 bool operator< (const log_msg &T) const
103 bool operator>= (const log_msg &T) const
107 bool operator> (const log_msg &T) const
113 bool operator<= (const log_msg &T) const
166 struct log_msg *log_msg);
/system/core/liblog/
Dlog_read_kern.c145 struct log_msg entry;
150 struct log_msg entry; /* Truncated to event->len() + 1 to save space */
401 struct log_msg *log_msg) in android_logger_list_flush() argument
469 memcpy(log_msg->buf, firstentry->entry.buf, ret); in android_logger_list_flush()
474 memset(log_msg->buf + ret, 0, diff); in android_logger_list_flush()
476 memcpy(log_msg->buf + ret + diff, firstentry->entry.buf + ret, in android_logger_list_flush()
479 log_msg->entry.hdr_size = ret; in android_logger_list_flush()
480 log_msg->entry.lid = firstlogger->id; in android_logger_list_flush()
502 struct log_msg *log_msg) in android_logger_list_read() argument
509 memset(log_msg, 0, sizeof(struct log_msg)); in android_logger_list_read()
[all …]
Dlog_read.c569 struct log_msg *log_msg) in android_logger_list_read() argument
670 memset(log_msg, 0, sizeof(*log_msg)); in android_logger_list_read()
678 ret = recv(logger_list->sock, log_msg, LOGGER_ENTRY_MAX_LEN, 0); in android_logger_list_read()
697 if (log_msg->entry.lid == logger->id) { in android_logger_list_read()
DREADME77 log_msg *log_msg
/system/core/logcat/
Dlogcat.cpp115 void printBinary(struct log_msg *buf) in printBinary()
122 static void processBuffer(log_device_t* dev, struct log_msg *buf) in processBuffer()
839 struct log_msg log_msg; in main() local
840 int ret = android_logger_list_read(logger_list, &log_msg); in main()
865 if (android_name_to_log_id(dev->device) == log_msg.id()) { in main()
876 android::printBinary(&log_msg); in main()
878 android::processBuffer(dev, &log_msg); in main()
/system/core/logd/tests/
Dlogd_test.cpp359 log_msg *msg, unsigned int version, int lid) { in dump_log_msg()
437 log_msg msg; in TEST()
/system/core/debuggerd/
Dtombstone.cpp468 struct log_msg log_entry; in dump_log_file()