summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot2017-04-18 18:46:16 -0500
committerGerrit Code Review2017-04-18 18:46:18 -0500
commit0ca7eec9b0bbb1c636eb0278ff695e93450fd7d8 (patch)
treeb46188546e85d741bfaac77c98ec17c3905e570d
parentedaed3ed7a6034bd0bd07e55585b6c81333b9d3a (diff)
parentfa3add33644eb0e0335fefafef41de5e2d3c0b3c (diff)
downloadplatform-system-core-0ca7eec9b0bbb1c636eb0278ff695e93450fd7d8.tar.gz
platform-system-core-0ca7eec9b0bbb1c636eb0278ff695e93450fd7d8.tar.xz
platform-system-core-0ca7eec9b0bbb1c636eb0278ff695e93450fd7d8.zip
Merge "logd: report log reader instantiation"
-rw-r--r--logd/LogReader.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/logd/LogReader.cpp b/logd/LogReader.cpp
index af19279a4..feb105f76 100644
--- a/logd/LogReader.cpp
+++ b/logd/LogReader.cpp
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include <ctype.h> 17#include <ctype.h>
18#include <inttypes.h>
18#include <poll.h> 19#include <poll.h>
19#include <sys/prctl.h> 20#include <sys/prctl.h>
20#include <sys/socket.h> 21#include <sys/socket.h>
@@ -192,6 +193,12 @@ bool LogReader::onDataAvailable(SocketClient* cli) {
192 } 193 }
193 } 194 }
194 195
196 android::prdebug(
197 "logdr: UID=%d GID=%d PID=%d %c tail=%lu logMask=%x pid=%d "
198 "start=%" PRIu64 "ns timeout=%" PRIu64 "ns\n",
199 cli->getUid(), cli->getGid(), cli->getPid(), nonBlock ? 'n' : 'b', tail,
200 logMask, (int)pid, sequence.nsec(), timeout);
201
195 FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence, timeout); 202 FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence, timeout);
196 203
197 // Set acceptable upper limit to wait for slow reader processing b/27242723 204 // Set acceptable upper limit to wait for slow reader processing b/27242723