summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2014-02-14 18:05:05 -0600
committerMark Salyzyn2014-03-14 12:23:51 -0500
commitfa3716b2501ccddc8e0cd30f6343692b8deb7639 (patch)
treecee7ad53c6d2e9d2aa972686ef7ea203c9d75c28 /logd/LogTimes.cpp
parent6ab10a1c17d048e88f929d35293d266b6480f6d6 (diff)
downloadplatform-system-core-fa3716b2501ccddc8e0cd30f6343692b8deb7639.tar.gz
platform-system-core-fa3716b2501ccddc8e0cd30f6343692b8deb7639.tar.xz
platform-system-core-fa3716b2501ccddc8e0cd30f6343692b8deb7639.zip
logd: liblog: logcat: Arbitrary time to tail
Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
Diffstat (limited to 'logd/LogTimes.cpp')
-rw-r--r--logd/LogTimes.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/logd/LogTimes.cpp b/logd/LogTimes.cpp
index 67cc65ecf..8cb015ca3 100644
--- a/logd/LogTimes.cpp
+++ b/logd/LogTimes.cpp
@@ -25,7 +25,8 @@ const struct timespec LogTimeEntry::EPOCH = { 0, 1 };
25 25
26LogTimeEntry::LogTimeEntry(LogReader &reader, SocketClient *client, 26LogTimeEntry::LogTimeEntry(LogReader &reader, SocketClient *client,
27 bool nonBlock, unsigned long tail, 27 bool nonBlock, unsigned long tail,
28 unsigned int logMask, pid_t pid) 28 unsigned int logMask, pid_t pid,
29 log_time start)
29 : mRefCount(1) 30 : mRefCount(1)
30 , mRelease(false) 31 , mRelease(false)
31 , mError(false) 32 , mError(false)
@@ -39,7 +40,7 @@ LogTimeEntry::LogTimeEntry(LogReader &reader, SocketClient *client,
39 , mTail(tail) 40 , mTail(tail)
40 , mIndex(0) 41 , mIndex(0)
41 , mClient(client) 42 , mClient(client)
42 , mStart(EPOCH) 43 , mStart(start)
43 , mNonBlock(nonBlock) 44 , mNonBlock(nonBlock)
44 , mEnd(CLOCK_MONOTONIC) 45 , mEnd(CLOCK_MONOTONIC)
45{ } 46{ }