Searched refs:hdr_size (Results 1 – 9 of 9) sorted by relevance
76 uint16_t hdr_size; /* sizeof(struct logger_entry_v2) */ member93 uint16_t hdr_size; /* sizeof(struct logger_entry_v3) */ member110 uint16_t hdr_size; /* sizeof(struct logger_entry_v4) */ member178 unsigned short hdr_size = entry.hdr_size; in msg() local179 if (!hdr_size) { in msg()180 hdr_size = sizeof(entry_v1); in msg()182 if ((hdr_size < sizeof(entry_v1)) || (hdr_size > sizeof(entry))) { in msg()185 return reinterpret_cast<char*>(buf) + hdr_size; in msg()188 return (entry.hdr_size ? entry.hdr_size in len()
315 if (ret < (int)(sizeof(log_msg->entry.len) + sizeof(log_msg->entry.hdr_size))) { 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()327 (log_msg->entry_v2.hdr_size > sizeof(log_msg->entry))) { in android_transport_read()332 if (ret <= log_msg->entry_v2.hdr_size) { in android_transport_read()335 log_msg->entry.len = ret - log_msg->entry_v2.hdr_size; in android_transport_read()416 if (ret < oldest->logMsg.entry.hdr_size) { in android_logger_list_read()420 (oldest->logMsg.entry.hdr_size > sizeof(oldest->logMsg) ? sizeof(oldest->logMsg) in android_logger_list_read()421 : oldest->logMsg.entry.hdr_size)); in android_logger_list_read()
220 log_msg->entry_v4.hdr_size = in pmsgRead()231 return ret + sizeof(buf.prio) + log_msg->entry_v4.hdr_size; in pmsgRead()340 size_t hdr_size = transp.logMsg.entry.hdr_size ? transp.logMsg.entry.hdr_size in __android_log_pmsg_file_read() local342 char* msg = (char*)&transp.logMsg + hdr_size; in __android_log_pmsg_file_read()345 if ((hdr_size < sizeof(transp.logMsg.entry_v1)) || (hdr_size > sizeof(transp.logMsg.entry))) { in __android_log_pmsg_file_read()481 calloc(1, sizeof(content->node) + hdr_size + transp.logMsg.entry.len)); in __android_log_pmsg_file_read()486 memcpy(&content->entry, &transp.logMsg.entry, hdr_size + transp.logMsg.entry.len); in __android_log_pmsg_file_read()558 memcpy(buf + len, (char*)&content->entry + content->entry.hdr_size + tag_len + sizeof(prio), in __android_log_pmsg_file_read()
532 if (buf2->hdr_size) { in android_log_processLogBuffer()533 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()538 msg = ((char*)buf2) + buf2->hdr_size; in android_log_processLogBuffer()539 if (buf2->hdr_size >= sizeof(struct logger_entry_v4)) { in android_log_processLogBuffer()1020 if (buf2->hdr_size) { in android_log_processBinaryLogBuffer()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()1026 eventData = ((unsigned char*)buf2) + buf2->hdr_size; in android_log_processBinaryLogBuffer()1027 if ((buf2->hdr_size >= sizeof(struct logger_entry_v3)) && in android_log_processBinaryLogBuffer()[all …]
161 log_msg.entry.hdr_size = sizeof(log_msg.entry); in stderrWrite()
248 entry.hdr_size = privileged ? sizeof(struct logger_entry_v4) in flushTo()259 iovec[0].iov_len = entry.hdr_size; in flushTo()
314 uid_t uid = (log_msg.entry.hdr_size >= sizeof(logger_entry_v4)) in ReadPersistEventLogTags()
250 switch (msg->entry.hdr_size) { in dump_log_msg()270 fprintf(stderr, "hdr_size=%u ", msg->entry.hdr_size); in dump_log_msg()