summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorhaohuang <haohuang@codeaurora.org>2019-09-16 16:03:09 +0800
committerhaohuang <haohuang@codeaurora.org>2019-11-29 16:28:04 +0800
commitd71529af0f5b103cdbe2679148bd7268cb4713b8 (patch)
tree37acfdeb4fb01c87982bbd8b18f168898bd5f4f2 /etc
parenta43430218337739c0c1143dc55474d1036d50558 (diff)
downloadgps-d71529af0f5b103cdbe2679148bd7268cb4713b8.tar.gz
Logging buffer implemented by skip list
Use skip list to implement a log buffer, log sentences will be inserted into this buffer once the log print function is called. the buffer will be dumped when GNSS process crash/killed or send SIGUSR1 signal manually. Change-Id: I5e23cdf30c263fa59108070c9dbfd95c49c2e9b6 CRs-Fixed: 2571326
Diffstat (limited to 'etc')
-rw-r--r--etc/gps.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/gps.conf b/etc/gps.conf
index 47aa8ef..1d4e233 100644
--- a/etc/gps.conf
+++ b/etc/gps.conf
@@ -322,3 +322,24 @@ CP_MTLR_ES=0
# and QCSR SS5 hardware receiver.
# By default QTI GNSS receiver is enabled.
# GNSS_DEPLOYMENT = 0
+
+##################################################
+## LOG BUFFER CONFIGURATION
+##################################################
+#LOG_BUFFER_ENABLED, 1=enable, 0=disable
+#*_LEVEL_TIME_DEPTH, maximum time depth of level *
+#in log buffer, unit is second
+#*_LEVEL_MAX_CAPACITY, maximum numbers of level *
+#log print sentences in log buffer
+LOG_BUFFER_ENABLED = 0
+E_LEVEL_TIME_DEPTH = 600
+E_LEVEL_MAX_CAPACITY = 50
+W_LEVEL_TIME_DEPTH = 500
+W_LEVEL_MAX_CAPACITY = 100
+I_LEVEL_TIME_DEPTH = 400
+I_LEVEL_MAX_CAPACITY = 200
+D_LEVEL_TIME_DEPTH = 30
+D_LEVEL_MAX_CAPACITY = 300
+V_LEVEL_TIME_DEPTH = 200
+V_LEVEL_MAX_CAPACITY = 400
+