Lines Matching refs:entry
345 * entry allocated by caller. Pointers will point directly into buf
347 * Returns 0 on success and -1 on invalid wire format (entry will be
351 AndroidLogEntry *entry)
353 entry->tv_sec = buf->sec;
354 entry->tv_nsec = buf->nsec;
355 entry->pid = buf->pid;
356 entry->tid = buf->tid;
370 // An well-formed entry must consist of at least a priority
372 fprintf(stderr, "+++ LOG: entry too small\n");
401 entry->priority = buf->msg[0];
402 entry->tag = buf->msg + 1;
403 entry->message = buf->msg + msgStart;
404 entry->messageLen = msgEnd - msgStart;
592 * Convert a binary log entry to ASCII form.
600 AndroidLogEntry *entry, const EventTagMap* map, char* messageBuf,
607 entry->tv_sec = buf->sec;
608 entry->tv_nsec = buf->nsec;
609 entry->priority = ANDROID_LOG_INFO;
610 entry->pid = buf->pid;
611 entry->tid = buf->tid;
625 entry->tag = android_lookupEventTag(map, tagIndex);
627 entry->tag = NULL;
635 if (entry->tag == NULL) {
639 entry->tag = messageBuf;
653 fprintf(stderr, "Binary log entry conversion failed\n");
681 * entry->messageLen.
684 entry->messageLen = outBuf - messageBuf;
685 assert(entry->messageLen == (messageBufLen-1) - outRemaining);
687 entry->message = messageBuf;
704 const AndroidLogEntry *entry,
718 priChar = filterPriToChar(entry->priority);
730 ptm = localtime_r(&(entry->tv_sec), &tmBuf);
732 ptm = localtime(&(entry->tv_sec));
745 "%c/%-8s: ", priChar, entry->tag);
750 "%c(%5d) ", priChar, entry->pid);
752 " (%s)\n", entry->tag);
756 "%c(%5d:%5d) ", priChar, entry->pid, entry->tid);
768 "%s.%03ld %c/%-8s(%5d): ", timeBuf, entry->tv_nsec / 1000000,
769 priChar, entry->tag, entry->pid);
775 "%s.%03ld %5d %5d %c %-8s: ", timeBuf, entry->tv_nsec / 1000000,
776 entry->pid, entry->tid, priChar, entry->tag);
783 timeBuf, entry->tv_nsec / 1000000, entry->pid,
784 entry->tid, priChar, entry->tag);
792 "%c/%-8s(%5d): ", priChar, entry->tag, entry->pid);
820 pm = entry->message;
825 while (pm < (entry->message + entry->messageLen)) {
829 if (pm > entry->message && *(pm-1) != '\n') numLines++;
834 bufferSize = (numLines * (prefixLen + suffixLen)) + entry->messageLen + 1;
849 pm = entry->message;
854 strncat(p, entry->message, entry->messageLen);
855 p += entry->messageLen;
859 while(pm < (entry->message + entry->messageLen)) {
865 while (pm < (entry->message + entry->messageLen)
896 const AndroidLogEntry *entry)
904 sizeof(defaultBuffer), entry, &totalLen);