Merge "logd: report log reader instantiation" am: 0ca7eec9b0 am: 7a8a048f56

am: b0bf71f166

Change-Id: Ia0e3abedff63270e9b874bb7c98010d4df14b28d
This commit is contained in:
Mark Salyzyn 2017-04-19 00:00:10 +00:00 committed by android-build-merger
commit 642eb61aa1
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@
*/
#include <ctype.h>
#include <inttypes.h>
#include <poll.h>
#include <sys/prctl.h>
#include <sys/socket.h>
@ -192,6 +193,12 @@ bool LogReader::onDataAvailable(SocketClient* cli) {
}
}
android::prdebug(
"logdr: UID=%d GID=%d PID=%d %c tail=%lu logMask=%x pid=%d "
"start=%" PRIu64 "ns timeout=%" PRIu64 "ns\n",
cli->getUid(), cli->getGid(), cli->getPid(), nonBlock ? 'n' : 'b', tail,
logMask, (int)pid, sequence.nsec(), timeout);
FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence, timeout);
// Set acceptable upper limit to wait for slow reader processing b/27242723