Home
last modified time | relevance | path

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

12

/system/core/liblog/
Dstderr_write.cpp150 struct log_msg log_msg; in stderrWrite() local
160 log_msg.entry.len = 0; in stderrWrite()
161 log_msg.entry.hdr_size = sizeof(log_msg.entry); in stderrWrite()
162 log_msg.entry.pid = getpid(); in stderrWrite()
164 log_msg.entry.tid = gettid(); in stderrWrite()
166 log_msg.entry.tid = getpid(); in stderrWrite()
168 log_msg.entry.sec = ts->tv_sec; in stderrWrite()
169 log_msg.entry.nsec = ts->tv_nsec; in stderrWrite()
170 log_msg.entry.lid = logId; in stderrWrite()
171 log_msg.entry.uid = __android_log_uid(); in stderrWrite()
[all …]
Dlogger_read.cpp305 struct log_msg* log_msg) { in android_transport_read() argument
306 int ret = (*transp->transport->read)(logger_list, transp, log_msg); in android_transport_read()
308 if (ret > (int)sizeof(*log_msg)) { in android_transport_read()
309 ret = sizeof(*log_msg); in android_transport_read()
315 if (ret < (int)(sizeof(log_msg->entry.len) + sizeof(log_msg->entry.hdr_size))) { in android_transport_read()
316 if (ret >= (int)sizeof(log_msg->entry.len)) { in android_transport_read()
317 log_msg->entry.len = 0; in android_transport_read()
323 if (log_msg->entry_v2.hdr_size == 0) { in android_transport_read()
324 log_msg->entry_v2.hdr_size = sizeof(struct logger_entry); in android_transport_read()
326 if ((log_msg->entry_v2.hdr_size < sizeof(log_msg->entry_v1)) || in android_transport_read()
[all …]
Dpmsg_reader.cpp35 struct android_log_transport_context* transp, struct log_msg* log_msg);
131 struct android_log_transport_context* transp, struct log_msg* log_msg) { in pmsgRead() argument
144 memset(log_msg, 0, sizeof(*log_msg)); in pmsgRead()
205 char* msg = is_system ? log_msg->entry_v4.msg : log_msg->entry_v3.msg; in pmsgRead()
219 log_msg->entry_v4.len = buf.p.len - sizeof(buf) + sizeof(buf.prio); in pmsgRead()
220 log_msg->entry_v4.hdr_size = in pmsgRead()
221 is_system ? sizeof(log_msg->entry_v4) : sizeof(log_msg->entry_v3); in pmsgRead()
222 log_msg->entry_v4.pid = buf.p.pid; in pmsgRead()
223 log_msg->entry_v4.tid = buf.l.tid; in pmsgRead()
224 log_msg->entry_v4.sec = buf.l.realtime.tv_sec; in pmsgRead()
[all …]
Dlogger.h74 struct log_msg* log_msg);
123 struct log_msg logMsg; /* peek at upcoming data, valid if logMsg.len != 0 */
Dlogd_reader.cpp50 struct android_log_transport_context* transp, struct log_msg* log_msg);
440 struct android_log_transport_context* transp, struct log_msg* log_msg) { in logdRead() argument
451 memset(log_msg, 0, sizeof(*log_msg)); in logdRead()
473 ret = recv(ret, log_msg, LOGGER_ENTRY_MAX_LEN, 0); in logdRead()
DREADME.md74 int android_logger_list_read(struct logger_list *logger_list, struct log_msg *log_msg)
Dlogprint.cpp533 if ((buf2->hdr_size < sizeof(((struct log_msg*)NULL)->entry_v1)) || in android_log_processLogBuffer()
534 (buf2->hdr_size > sizeof(((struct log_msg*)NULL)->entry))) { in android_log_processLogBuffer()
1021 if ((buf2->hdr_size < sizeof(((struct log_msg*)NULL)->entry_v1)) || in android_log_processBinaryLogBuffer()
1022 (buf2->hdr_size > sizeof(((struct log_msg*)NULL)->entry))) { in android_log_processBinaryLogBuffer()
/system/core/liblog/tests/
Dlog_read_test.cpp58 log_msg log_msg; in TEST() local
59 if (android_logger_list_read(logger_list, &log_msg) <= 0) break; in TEST()
61 EXPECT_EQ(log_msg.entry.pid, pid); in TEST()
64 EXPECT_EQ(log_msg.id(), LOG_ID_MAIN); in TEST()
66 if (log_msg.entry.len != buf.length()) continue; in TEST()
68 if (buf != std::string(log_msg.msg(), log_msg.entry.len)) continue; in TEST()
Dliblog_test.cpp220 log_msg log_msg; in TEST() local
221 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
225 EXPECT_EQ(log_msg.entry.pid, pid); in TEST()
227 if ((log_msg.entry.len != sizeof(android_log_event_long_t)) || in TEST()
228 (log_msg.id() != LOG_ID_EVENTS)) { in TEST()
233 eventData = reinterpret_cast<android_log_event_long_t*>(log_msg.msg()); in TEST()
334 log_msg log_msg; in TEST() local
335 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
339 EXPECT_EQ(log_msg.entry.pid, pid); in TEST()
341 if ((log_msg.entry.len != sizeof(android_log_event_long_t)) || in TEST()
[all …]
Dlog_wrap_test.cpp44 log_msg log_msg; in read_with_wrap() local
45 int ret = android_logger_list_read(logger_list, &log_msg); in read_with_wrap()
49 log_time start(log_msg.entry.sec, log_msg.entry.nsec); in read_with_wrap()
59 android_logger_list_read(logger_list, &log_msg); in read_with_wrap()
Dliblog_benchmark.cpp702 log_msg log_msg; in BM_log_latency() local
703 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_latency()
710 if ((log_msg.entry.len != (4 + 1 + 8)) || in BM_log_latency()
711 (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_latency()
715 char* eventData = log_msg.msg(); in BM_log_latency()
730 uint64_t end = log_msg.nsec(); in BM_log_latency()
776 log_msg log_msg; in BM_log_delay() local
777 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_delay()
784 if ((log_msg.entry.len != (4 + 1 + 8)) || in BM_log_delay()
785 (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_delay()
[all …]
/system/core/liblog/include_vndk/log/
Dlog_read.h138 struct log_msg { struct
149 bool operator==(const log_msg& T) const { argument
152 bool operator!=(const log_msg& T) const {
155 bool operator<(const log_msg& T) const {
159 bool operator>=(const log_msg& T) const {
162 bool operator>(const log_msg& T) const {
166 bool operator<=(const log_msg& T) const {
235 struct log_msg* log_msg);
/system/core/liblog/include/log/
Dlog_read.h138 struct log_msg { struct
149 bool operator==(const log_msg& T) const { argument
152 bool operator!=(const log_msg& T) const {
155 bool operator<(const log_msg& T) const {
159 bool operator>=(const log_msg& T) const {
162 bool operator>(const log_msg& T) const {
166 bool operator<=(const log_msg& T) const {
235 struct log_msg* log_msg);
/system/core/logd/tests/
Dlogd_test.cpp244 static void dump_log_msg(const char* prefix, log_msg* msg, unsigned int version, in dump_log_msg()
354 log_msg msg; in TEST()
606 log_msg msg_wrap, msg_timeout; in timeout_negative()
710 log_msg msg_wrap, msg_timeout; in TEST()
854 log_msg msg; in TEST()
999 log_msg log_msg; in __android_log_btwrite_multiple__helper() local
1000 if (android_logger_list_read(logger_list, &log_msg) <= 0) break; in __android_log_btwrite_multiple__helper()
1002 if ((log_msg.entry.pid != pid) || (log_msg.entry.len < (4 + 1 + 8)) || in __android_log_btwrite_multiple__helper()
1003 (log_msg.id() != LOG_ID_EVENTS)) in __android_log_btwrite_multiple__helper()
1006 char* eventData = log_msg.msg(); in __android_log_btwrite_multiple__helper()
[all …]
/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/logd/
DLogTags.cpp305 struct log_msg log_msg; in ReadPersistEventLogTags() local
306 int ret = android_logger_list_read(logger_list, &log_msg); in ReadPersistEventLogTags()
309 const char* msg = log_msg.msg(); in ReadPersistEventLogTags()
311 if (log_msg.entry.len <= sizeof(uint32_t)) continue; in ReadPersistEventLogTags()
314 uid_t uid = (log_msg.entry.hdr_size >= sizeof(logger_entry_v4)) in ReadPersistEventLogTags()
315 ? 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()
/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/core/logcat/
Dlogcat.cpp300 void printBinary(android_logcat_context_internal* context, struct log_msg* buf) { in printBinary()
316 log_device_t* dev, struct log_msg* buf) { in processBuffer()
1591 struct log_msg log_msg; in __logcat() local
1592 int ret = android_logger_list_read(logger_list, &log_msg); in __logcat()
1615 if (android_name_to_log_id(d->device) == log_msg.id()) break; in __logcat()
1620 d->binary = log_msg.id() == LOG_ID_EVENTS; in __logcat()
1629 printBinary(context, &log_msg); in __logcat()
1631 processBuffer(context, dev, &log_msg); in __logcat()
/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::__anon4c3c8d860111::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::__anon72f30ba80111::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

12