summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2015-11-30 13:36:09 -0600
committerMark Salyzyn2015-12-07 16:24:02 -0600
commitf8e546e6090002cde90c21c83b8cdef311e50816 (patch)
tree4b5fe35a78c69b0ec9294478a429ad6369df3156 /liblog/README
parentfc9f5b8af440974fb390f4572fa526cc68d824db (diff)
downloadplatform-system-core-f8e546e6090002cde90c21c83b8cdef311e50816.tar.gz
platform-system-core-f8e546e6090002cde90c21c83b8cdef311e50816.tar.xz
platform-system-core-f8e546e6090002cde90c21c83b8cdef311e50816.zip
liblog: Support for ANDROID_LOG_WRAP mode flag on reader
If ANDROID_LOG_WRAP is specified, add timeout=3600 to the reader request. logd will comply by going to sleep with the socket open. If the start time is about to wrap or get pruned in the specified log buffers, then wakeup and dump the logs; or wakeup on timeout, whichever comes first. Bug: 25929746 Change-Id: I531b4317a20abcf3ba87d78c68fa2f268a4488ab
Diffstat (limited to 'liblog/README')
-rw-r--r--liblog/README4
1 files changed, 4 insertions, 0 deletions
diff --git a/liblog/README b/liblog/README
index f29ac045b..df1e68c65 100644
--- a/liblog/README
+++ b/liblog/README
@@ -116,6 +116,10 @@ DESCRIPTION
116 code, otherwise the android_logger_list_read call will block for new 116 code, otherwise the android_logger_list_read call will block for new
117 entries. 117 entries.
118 118
119 The ANDROID_LOG_WRAP mode flag to the android_logger_list_alloc_time
120 signals logd to quiesce the reader until the buffer is about to prune
121 at the start time then proceed to dumping content.
122
119 The ANDROID_LOG_PSTORE mode flag to the android_logger_open is used to 123 The ANDROID_LOG_PSTORE mode flag to the android_logger_open is used to
120 switch from the active logs to the persistent logs from before the last 124 switch from the active logs to the persistent logs from before the last
121 reboot. 125 reboot.