summaryrefslogtreecommitdiffstats
path: root/logd/LogBuffer.h
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-04-01 17:19:47 -0700
committerMark Salyzyn <salyzyn@google.com>2014-04-02 13:12:04 -0700
commit1c950479393d42d18829d4009dbdb3a7f03acbb7 (patch)
tree1ba86b1f06f7df22e46ed2c022685fd71589d1bc /logd/LogBuffer.h
parent223fc42b5e289e882f67c893374ffbef595a6901 (diff)
downloadsystem_core-1c950479393d42d18829d4009dbdb3a7f03acbb7.zip
system_core-1c950479393d42d18829d4009dbdb3a7f03acbb7.tar.gz
system_core-1c950479393d42d18829d4009dbdb3a7f03acbb7.tar.bz2
logd: liblog: logcat: enable prune features for user
- Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
Diffstat (limited to 'logd/LogBuffer.h')
-rw-r--r--logd/LogBuffer.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/logd/LogBuffer.h b/logd/LogBuffer.h
index c3460ca..dd02009 100644
--- a/logd/LogBuffer.h
+++ b/logd/LogBuffer.h
@@ -38,11 +38,9 @@ class LogBuffer {
bool dgram_qlen_statistics;
-#ifdef USERDEBUG_BUILD
PruneList mPrune;
unsigned long mMaxSize[LOG_ID_MAX];
-#endif
public:
LastLogTimes &mTimes;
@@ -59,9 +57,7 @@ public:
void clear(log_id_t id);
unsigned long getSize(log_id_t id);
-#ifdef USERDEBUG_BUILD
int setSize(log_id_t id, unsigned long size);
-#endif
unsigned long getSizeUsed(log_id_t id);
// *strp uses malloc, use free to release.
void formatStatistics(char **strp, uid_t uid, unsigned int logMask);
@@ -71,11 +67,9 @@ public:
dgram_qlen_statistics = true;
}
-#ifdef USERDEBUG_BUILD
int initPrune(char *cp) { return mPrune.init(cp); }
// *strp uses malloc, use free to release.
void formatPrune(char **strp) { mPrune.format(strp); }
-#endif
private:
void maybePrune(log_id_t id);