Home
last modified time | relevance | path

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

/system/core/liblog/tests/
Dlibc_test.cpp52 log_msg log_msg; in TEST() local
53 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
57 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
59 if ((log_msg.entry.len != (4 + 1 + 4)) in TEST()
60 || ((int)log_msg.id() != LOG_ID_EVENTS)) { in TEST()
64 char *eventData = log_msg.msg(); in TEST()
113 log_msg log_msg; in TEST() local
114 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
118 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
120 if ((int)log_msg.id() != LOG_ID_CRASH) { in TEST()
[all …]
Dliblog_test.cpp143 log_msg log_msg; in TEST() local
144 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
148 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
150 if ((log_msg.entry.len != (4 + 1 + 8)) in TEST()
151 || (log_msg.id() != LOG_ID_EVENTS)) { in TEST()
155 char *eventData = log_msg.msg(); in TEST()
194 log_msg log_msg; in TEST() local
195 if (android_logger_list_read(logger_list, &log_msg) <= 0) { in TEST()
199 ASSERT_EQ(log_msg.entry.pid, pid); in TEST()
201 if ((log_msg.entry.sec < (ts.tv_sec - 1)) in TEST()
[all …]
Dliblog_benchmark.cpp530 log_msg log_msg; in BM_log_latency() local
531 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_latency()
538 if ((log_msg.entry.len != (4 + 1 + 8)) in BM_log_latency()
539 || (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_latency()
543 char* eventData = log_msg.msg(); in BM_log_latency()
558 uint64_t end = log_msg.nsec(); in BM_log_latency()
610 log_msg log_msg; in BM_log_delay() local
611 int ret = android_logger_list_read(logger_list, &log_msg); in BM_log_delay()
618 if ((log_msg.entry.len != (4 + 1 + 8)) in BM_log_delay()
619 || (log_msg.id() != LOG_ID_EVENTS)) { in BM_log_delay()
[all …]
/system/core/include/log/
Dlogger.h95 struct log_msg { struct
106 bool operator== (const log_msg &T) const argument
110 bool operator!= (const log_msg &T) const
114 bool operator< (const log_msg &T) const
120 bool operator>= (const log_msg &T) const
124 bool operator> (const log_msg &T) const
130 bool operator<= (const log_msg &T) const
192 struct log_msg *log_msg);
/system/core/liblog/
Dpmsg_reader.c36 struct log_msg *log_msg);
138 struct log_msg *log_msg) in pmsgRead() argument
151 memset(log_msg, 0, sizeof(*log_msg)); in pmsgRead()
207 log_msg->entry_v4.msg : in pmsgRead()
208 log_msg->entry_v3.msg, in pmsgRead()
217 log_msg->entry_v4.len = buf.p.len - sizeof(buf); in pmsgRead()
218 log_msg->entry_v4.hdr_size = is_system ? in pmsgRead()
219 sizeof(log_msg->entry_v4) : in pmsgRead()
220 sizeof(log_msg->entry_v3); in pmsgRead()
221 log_msg->entry_v4.pid = buf.p.pid; in pmsgRead()
[all …]
Dlogger.h72 struct log_msg *log_msg);
122 struct log_msg logMsg; /* valid is logMsg.len != 0 */
Dlogd_reader.c53 struct log_msg *log_msg);
597 struct log_msg *log_msg) in logdRead() argument
609 memset(log_msg, 0, sizeof(*log_msg)); in logdRead()
621 ret = recv(ret, log_msg, LOGGER_ENTRY_MAX_LEN, 0); in logdRead()
Dlogger_read.c346 struct log_msg *log_msg) in android_logger_list_read() argument
437 memcpy(log_msg, &oldest->logMsg, oldest->logMsg.entry.len + in android_logger_list_read()
446 return (transp->transport->read)(logger_list_internal, transp, log_msg); in android_logger_list_read()
DREADME77 log_msg *log_msg
/system/core/debuggerd/
Dutility.cpp109 std::string log_msg; local
112 android::base::StringAppendV(&log_msg, fmt, ap);
131 _LOG(log, logtype::MEMORY, "\n%s\n", log_msg.c_str());
Dtombstone.cpp503 struct log_msg log_entry; in dump_log_file()
/system/core/logcat/
Dlogcat.cpp147 void printBinary(struct log_msg *buf) in printBinary()
165 static void processBuffer(log_device_t* dev, struct log_msg *buf) in processBuffer()
1220 struct log_msg log_msg; in main() local
1222 int ret = android_logger_list_read(logger_list, &log_msg); in main()
1243 if (android_name_to_log_id(d->device) == log_msg.id()) { in main()
1250 d->binary = log_msg.id() == LOG_ID_EVENTS; in main()
1258 printBinary(&log_msg); in main()
1260 processBuffer(dev, &log_msg); in main()
/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/
Dsoft_keymaster_logger.cpp27 int SoftKeymasterLogger::log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function in keymaster::SoftKeymasterLogger
Dlogger.cpp27 return instance_->log_msg(level, fmt, args); in Log()
Dandroid_keymaster_test_utils.h119 int log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function
/system/core/logd/tests/
Dlogd_test.cpp206 log_msg *msg, unsigned int version, int lid) { in dump_log_msg()
302 log_msg msg; in TEST()
543 log_msg msg_wrap, msg_timeout; in timeout_negative()
622 log_msg msg_wrap, msg_timeout; in TEST()
742 log_msg msg; in TEST()
/system/core/debuggerd/test/
Dlog_fake.cpp80 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
/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__); }
285 log_msg(FILE *out, const char *prefix, const char *fmt, ...) { in log_msg() function
/system/security/keystore/tests/
Dauth_token_table_test.cpp37 int log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function in keymaster::test::StdoutLogger