Searched refs:hdr_size (Results 1 – 11 of 11) sorted by relevance
/system/core/liblog/include/log/ |
D | log_read.h | 41 uint16_t hdr_size; /* sizeof(struct logger_entry) */ member 70 unsigned short hdr_size = entry.hdr_size; in msg() local 71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() 74 return reinterpret_cast<char*>(buf) + hdr_size; in msg() 76 unsigned int len() { return entry.hdr_size + entry.len; } in len()
|
/system/core/liblog/include_vndk/log/ |
D | log_read.h | 41 uint16_t hdr_size; /* sizeof(struct logger_entry) */ member 70 unsigned short hdr_size = entry.hdr_size; in msg() local 71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() 74 return reinterpret_cast<char*>(buf) + hdr_size; in msg() 76 unsigned int len() { return entry.hdr_size + entry.len; } in len()
|
/system/core/liblog/ |
D | logger_read.cpp | 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()
|
D | pmsg_reader.cpp | 114 log_msg->entry.hdr_size = sizeof(log_msg->entry); in PmsgRead() 122 return ret + sizeof(buf.prio) + log_msg->entry.hdr_size; in PmsgRead() 222 size_t hdr_size = log_msg.entry.hdr_size; in __android_log_pmsg_file_read() local 224 char* msg = (char*)&log_msg + hdr_size; in __android_log_pmsg_file_read() 227 if (hdr_size != sizeof(log_msg.entry)) { in __android_log_pmsg_file_read() 363 calloc(1, sizeof(content->node) + hdr_size + log_msg.entry.len)); in __android_log_pmsg_file_read() 368 memcpy(&content->entry, &log_msg.entry, hdr_size + log_msg.entry.len); in __android_log_pmsg_file_read() 440 memcpy(buf + len, (char*)&content->entry + content->entry.hdr_size + tag_len + sizeof(prio), in __android_log_pmsg_file_read()
|
D | logprint.cpp | 533 if (buf->hdr_size < sizeof(logger_entry)) { in android_log_processLogBuffer() 537 char* msg = reinterpret_cast<char*>(buf) + buf->hdr_size; in android_log_processLogBuffer() 989 if (buf->hdr_size < sizeof(logger_entry)) { in android_log_processBinaryLogBuffer() 993 eventData = reinterpret_cast<unsigned char*>(buf) + buf->hdr_size; in android_log_processBinaryLogBuffer() 1052 eventData = reinterpret_cast<unsigned char*>(buf) + buf->hdr_size; in android_log_processBinaryLogBuffer()
|
/system/core/liblog/tests/ |
D | logprint_test.cpp | 104 auto create_buf = [](char* buf, size_t len, uint16_t hdr_size) { in TEST() argument 107 header->hdr_size = hdr_size; in TEST() 114 char* message = buf + header->hdr_size; in TEST()
|
/system/core/logd/ |
D | LogBufferTest.cpp | 58 if (expected.hdr_size != result.hdr_size) { in CompareLoggerEntries() 59 errors.emplace_back(StringPrintf("hdr_size: %" PRIu16 " vs %" PRIu16, expected.hdr_size, in CompareLoggerEntries() 60 result.hdr_size)); in CompareLoggerEntries() 182 entry.hdr_size = sizeof(logger_entry); in FixupMessages() 263 .hdr_size = sizeof(logger_entry), in GenerateRandomLogMessage()
|
D | SerializedLogEntry.h | 69 entry.hdr_size = sizeof(struct logger_entry); in Flush()
|
D | LogReader.cpp | 55 iovec[0].iov_len = entry.hdr_size; in Write()
|
D | logd_test.cpp | 252 EXPECT_GE(msg->entry.hdr_size, sizeof(logger_entry)); in dump_log_msg() 255 fprintf(stderr, "hdr_size=%u ", msg->entry.hdr_size); in dump_log_msg()
|
D | LogBufferElement.cpp | 273 entry.hdr_size = sizeof(struct logger_entry); in FlushTo()
|