summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2014-10-15 10:49:39 -0500
committerMark Salyzyn2015-05-12 17:51:46 -0500
commitae4d928d816e30dbe57c2c321b0f0759d0567b3f (patch)
tree1864654936a95477657cacf0539c2b206c280867 /logd/LogListener.cpp
parent74f0a578a8ee0957b849e811af5fc30c74be55f0 (diff)
downloadplatform-system-core-ae4d928d816e30dbe57c2c321b0f0759d0567b3f.tar.gz
platform-system-core-ae4d928d816e30dbe57c2c321b0f0759d0567b3f.tar.xz
platform-system-core-ae4d928d816e30dbe57c2c321b0f0759d0567b3f.zip
logd: Add klogd
- Add a klogd to collect the kernel logs and place them into a new kernel log buffer - Parse priority, tag and message from the kernel log messages. - Turn off pruning for worst UID for the kernel log buffer - Sniff for 'PM: suspend exit', 'PM: suspend enter' and 'Suspended for' messages and correct the internal definition time correction against monotonic dynamically. - Discern if we have monotonic or real time (delineation 1980) in audit messages. - perform appropriate math to correct the timestamp to be real time - filter out any external sources of kernel logging Change-Id: I8d4c7c5ac19f1f3218079ee3a05a50e2ca55f60d
Diffstat (limited to 'logd/LogListener.cpp')
-rw-r--r--logd/LogListener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp
index 05ced062b..17b6e6f9a 100644
--- a/logd/LogListener.cpp
+++ b/logd/LogListener.cpp
@@ -88,7 +88,7 @@ bool LogListener::onDataAvailable(SocketClient *cli) {
88 } 88 }
89 89
90 android_log_header_t *header = reinterpret_cast<android_log_header_t *>(buffer); 90 android_log_header_t *header = reinterpret_cast<android_log_header_t *>(buffer);
91 if (/* header->id < LOG_ID_MIN || */ header->id >= LOG_ID_MAX) { 91 if (/* header->id < LOG_ID_MIN || */ header->id >= LOG_ID_MAX || header->id == LOG_ID_KERNEL) {
92 return false; 92 return false;
93 } 93 }
94 94