/system/core/liblog/tests/ |
D | libc_test.cpp | 52 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 …]
|
D | liblog_test.cpp | 143 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 …]
|
D | liblog_benchmark.cpp | 530 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/ |
D | logger.h | 95 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/ |
D | pmsg_reader.c | 36 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 …]
|
D | logger.h | 72 struct log_msg *log_msg); 122 struct log_msg logMsg; /* valid is logMsg.len != 0 */
|
D | logd_reader.c | 53 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()
|
D | logger_read.c | 346 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()
|
D | README | 77 log_msg *log_msg
|
/system/core/debuggerd/ |
D | utility.cpp | 109 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());
|
D | tombstone.cpp | 503 struct log_msg log_entry; in dump_log_file()
|
/system/core/logcat/ |
D | logcat.cpp | 147 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/ |
D | soft_keymaster_logger.h | 29 virtual int log_msg(LogLevel level, const char* fmt, va_list args) const;
|
D | logger.h | 37 virtual int log_msg(LogLevel level, const char* fmt, va_list args) const = 0;
|
/system/keymaster/ |
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
|
D | logger.cpp | 27 return instance_->log_msg(level, fmt, args); in Log()
|
D | android_keymaster_test_utils.h | 119 int log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function
|
/system/core/logd/tests/ |
D | logd_test.cpp | 206 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/ |
D | log_fake.cpp | 80 extern "C" int android_logger_list_read(struct logger_list*, struct log_msg*) { in android_logger_list_read() argument
|
/system/sepolicy/tools/ |
D | check_seapp.c | 19 #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/ |
D | auth_token_table_test.cpp | 37 int log_msg(LogLevel level, const char* fmt, va_list args) const { in log_msg() function in keymaster::test::StdoutLogger
|