diff options
author | Mark Salyzyn | 2014-04-01 19:19:47 -0500 |
---|---|---|
committer | Mark Salyzyn | 2014-04-02 15:12:04 -0500 |
commit | 1c950479393d42d18829d4009dbdb3a7f03acbb7 (patch) | |
tree | 1ba86b1f06f7df22e46ed2c022685fd71589d1bc /logd/LogBuffer.h | |
parent | 223fc42b5e289e882f67c893374ffbef595a6901 (diff) | |
download | platform-system-core-1c950479393d42d18829d4009dbdb3a7f03acbb7.tar.gz platform-system-core-1c950479393d42d18829d4009dbdb3a7f03acbb7.tar.xz platform-system-core-1c950479393d42d18829d4009dbdb3a7f03acbb7.zip |
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.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/logd/LogBuffer.h b/logd/LogBuffer.h index c3460cadf..dd02009e1 100644 --- a/logd/LogBuffer.h +++ b/logd/LogBuffer.h | |||
@@ -38,11 +38,9 @@ class LogBuffer { | |||
38 | 38 | ||
39 | bool dgram_qlen_statistics; | 39 | bool dgram_qlen_statistics; |
40 | 40 | ||
41 | #ifdef USERDEBUG_BUILD | ||
42 | PruneList mPrune; | 41 | PruneList mPrune; |
43 | 42 | ||
44 | unsigned long mMaxSize[LOG_ID_MAX]; | 43 | unsigned long mMaxSize[LOG_ID_MAX]; |
45 | #endif | ||
46 | 44 | ||
47 | public: | 45 | public: |
48 | LastLogTimes &mTimes; | 46 | LastLogTimes &mTimes; |
@@ -59,9 +57,7 @@ public: | |||
59 | 57 | ||
60 | void clear(log_id_t id); | 58 | void clear(log_id_t id); |
61 | unsigned long getSize(log_id_t id); | 59 | unsigned long getSize(log_id_t id); |
62 | #ifdef USERDEBUG_BUILD | ||
63 | int setSize(log_id_t id, unsigned long size); | 60 | int setSize(log_id_t id, unsigned long size); |
64 | #endif | ||
65 | unsigned long getSizeUsed(log_id_t id); | 61 | unsigned long getSizeUsed(log_id_t id); |
66 | // *strp uses malloc, use free to release. | 62 | // *strp uses malloc, use free to release. |
67 | void formatStatistics(char **strp, uid_t uid, unsigned int logMask); | 63 | void formatStatistics(char **strp, uid_t uid, unsigned int logMask); |
@@ -71,11 +67,9 @@ public: | |||
71 | dgram_qlen_statistics = true; | 67 | dgram_qlen_statistics = true; |
72 | } | 68 | } |
73 | 69 | ||
74 | #ifdef USERDEBUG_BUILD | ||
75 | int initPrune(char *cp) { return mPrune.init(cp); } | 70 | int initPrune(char *cp) { return mPrune.init(cp); } |
76 | // *strp uses malloc, use free to release. | 71 | // *strp uses malloc, use free to release. |
77 | void formatPrune(char **strp) { mPrune.format(strp); } | 72 | void formatPrune(char **strp) { mPrune.format(strp); } |
78 | #endif | ||
79 | 73 | ||
80 | private: | 74 | private: |
81 | void maybePrune(log_id_t id); | 75 | void maybePrune(log_id_t id); |