summaryrefslogtreecommitdiffstats
path: root/logd/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logd/main.cpp')
-rw-r--r--logd/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/logd/main.cpp b/logd/main.cpp
index 6216b95c3..8792d3224 100644
--- a/logd/main.cpp
+++ b/logd/main.cpp
@@ -24,9 +24,12 @@
#include <sys/capability.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <unistd.h>
#include <linux/prctl.h>
+#include <cutils/properties.h>
+
#include "private/android_filesystem_config.h"
#include "CommandListener.h"
#include "LogBuffer.h"
@@ -92,6 +95,12 @@ int main() {
LogBuffer *logBuf = new LogBuffer(times);
+ char dgram_qlen_statistics[PROPERTY_VALUE_MAX];
+ property_get("logd.dgram_qlen.statistics", dgram_qlen_statistics, "");
+ if (atol(dgram_qlen_statistics)) {
+ logBuf->enableDgramQlenStatistics();
+ }
+
// LogReader listens on /dev/socket/logdr. When a client
// connects, log entries in the LogBuffer are written to the client.