Home
last modified time | relevance | path

Searched refs:hdr_size (Results 1 – 12 of 12) sorted by relevance

/system/core/liblog/include_vndk/log/
Dlog_read.h75 uint16_t hdr_size; /* sizeof(struct logger_entry_v2) */ member
94 uint16_t hdr_size; /* sizeof(struct logger_entry_v3) */ member
113 uint16_t hdr_size; /* sizeof(struct logger_entry_v4) */ member
182 unsigned short hdr_size = entry.hdr_size; in msg() local
183 if (!hdr_size) { in msg()
184 hdr_size = sizeof(entry_v1); in msg()
186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) { in msg()
189 return reinterpret_cast<char*>(buf) + hdr_size; in msg()
192 return (entry.hdr_size ? entry.hdr_size in len()
/system/core/liblog/include/log/
Dlog_read.h75 uint16_t hdr_size; /* sizeof(struct logger_entry_v2) */ member
94 uint16_t hdr_size; /* sizeof(struct logger_entry_v3) */ member
113 uint16_t hdr_size; /* sizeof(struct logger_entry_v4) */ member
182 unsigned short hdr_size = entry.hdr_size; in msg() local
183 if (!hdr_size) { in msg()
184 hdr_size = sizeof(entry_v1); in msg()
186 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) { in msg()
189 return reinterpret_cast<char*>(buf) + hdr_size; in msg()
192 return (entry.hdr_size ? entry.hdr_size in len()
/system/core/debuggerd/libdebuggerd/
Delf_utils.cpp55 size_t hdr_size = phdr.p_filesz; in get_build_id() local
57 while (hdr_size >= sizeof(NhdrType)) { in get_build_id()
84 hdr_size -= sizeof(nhdr); in get_build_id()
87 if (hdr_size < skip_bytes) { in get_build_id()
90 hdr_size -= skip_bytes; in get_build_id()
Dtombstone.cpp515 unsigned hdr_size = log_entry.entry.hdr_size; in dump_log_file() local
516 if (!hdr_size) { in dump_log_file()
517 hdr_size = sizeof(log_entry.entry_v1); in dump_log_file()
519 if ((hdr_size < sizeof(log_entry.entry_v1)) || in dump_log_file()
520 (hdr_size > sizeof(log_entry.entry))) { in dump_log_file()
523 char* msg = reinterpret_cast<char*>(log_entry.buf) + hdr_size; in dump_log_file()
/system/core/liblog/
Dlogger_read.c343 if (ret < (int)(sizeof(log_msg->entry.len) + sizeof(log_msg->entry.hdr_size))) { in android_transport_read()
351 if (log_msg->entry_v2.hdr_size == 0) { in android_transport_read()
352 log_msg->entry_v2.hdr_size = sizeof(struct logger_entry); in android_transport_read()
354 if ((log_msg->entry_v2.hdr_size < sizeof(log_msg->entry_v1)) || in android_transport_read()
355 (log_msg->entry_v2.hdr_size > sizeof(log_msg->entry))) { in android_transport_read()
360 if (ret <= log_msg->entry_v2.hdr_size) { in android_transport_read()
363 log_msg->entry.len = ret - log_msg->entry_v2.hdr_size; in android_transport_read()
450 if (ret < oldest->logMsg.entry.hdr_size) { in android_logger_list_read()
453 (oldest->logMsg.entry.hdr_size > sizeof(oldest->logMsg) in android_logger_list_read()
455 : oldest->logMsg.entry.hdr_size)); in android_logger_list_read()
Dpmsg_reader.c226 log_msg->entry_v4.hdr_size = in pmsgRead()
237 return ret + sizeof(buf.prio) + log_msg->entry_v4.hdr_size; in pmsgRead()
342 size_t hdr_size = transp.logMsg.entry.hdr_size in __android_log_pmsg_file_read() local
343 ? transp.logMsg.entry.hdr_size in __android_log_pmsg_file_read()
345 char* msg = (char*)&transp.logMsg + hdr_size; in __android_log_pmsg_file_read()
348 if ((hdr_size < sizeof(transp.logMsg.entry_v1)) || in __android_log_pmsg_file_read()
349 (hdr_size > sizeof(transp.logMsg.entry))) { in __android_log_pmsg_file_read()
487 calloc(1, sizeof(content->node) + hdr_size + transp.logMsg.entry.len); in __android_log_pmsg_file_read()
493 hdr_size + transp.logMsg.entry.len); in __android_log_pmsg_file_read()
567 (char*)&content->entry + content->entry.hdr_size + tag_len + in __android_log_pmsg_file_read()
Dlogprint.c542 if (buf2->hdr_size) { in android_log_processLogBuffer()
543 if ((buf2->hdr_size < sizeof(((struct log_msg*)NULL)->entry_v1)) || in android_log_processLogBuffer()
544 (buf2->hdr_size > sizeof(((struct log_msg*)NULL)->entry))) { in android_log_processLogBuffer()
548 msg = ((char*)buf2) + buf2->hdr_size; in android_log_processLogBuffer()
549 if (buf2->hdr_size >= sizeof(struct logger_entry_v4)) { in android_log_processLogBuffer()
1040 if (buf2->hdr_size) { in android_log_processBinaryLogBuffer()
1041 if ((buf2->hdr_size < sizeof(((struct log_msg*)NULL)->entry_v1)) || in android_log_processBinaryLogBuffer()
1042 (buf2->hdr_size > sizeof(((struct log_msg*)NULL)->entry))) { in android_log_processBinaryLogBuffer()
1046 eventData = ((unsigned char*)buf2) + buf2->hdr_size; in android_log_processBinaryLogBuffer()
1047 if ((buf2->hdr_size >= sizeof(struct logger_entry_v3)) && in android_log_processBinaryLogBuffer()
[all …]
Dstderr_write.c163 log_msg.entry.hdr_size = sizeof(log_msg.entry); in stderrWrite()
Dlocal_logger.c409 log_msg->entry_v3.hdr_size = sizeof(log_msg->entry_v3); in writeToLocalRead()
416 ret += log_msg->entry_v3.hdr_size; in writeToLocalRead()
/system/core/logd/
DLogBufferElement.cpp237 entry.hdr_size = privileged ? sizeof(struct logger_entry_v4) in flushTo()
248 iovec[0].iov_len = entry.hdr_size; in flushTo()
DLogTags.cpp311 uid_t uid = (log_msg.entry.hdr_size >= sizeof(logger_entry_v4)) in ReadPersistEventLogTags()
/system/core/logd/tests/
Dlogd_test.cpp251 switch (msg->entry.hdr_size) { in dump_log_msg()
271 fprintf(stderr, "hdr_size=%u ", msg->entry.hdr_size); in dump_log_msg()