summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Lafon2017-08-24 22:14:06 -0500
committerYao Chen2017-11-14 18:20:00 -0600
commit701a0658e6241589a643c3dcab483d3999a4c8e8 (patch)
treeec8b88391e483b0bff7dc50b4549fa025f62f969 /liblog/include
parent21d3840eb39291bbc59f0dc5a33fc58b152994fe (diff)
downloadplatform-system-core-701a0658e6241589a643c3dcab483d3999a4c8e8.tar.gz
platform-system-core-701a0658e6241589a643c3dcab483d3999a4c8e8.tar.xz
platform-system-core-701a0658e6241589a643c3dcab483d3999a4c8e8.zip
Create stats buffer in logd.
Bug: 69323063 Test: ran unit tests. Change-Id: Icfb827ab4674172c26b4bbfe1a9b3bffc03dc24b (cherry picked from commit 1b1b6f50c78d88e3256a5e13559d92fbb6d1c8fe)
Diffstat (limited to 'liblog/include')
-rw-r--r--liblog/include/log/log.h2
-rw-r--r--liblog/include/log/log_id.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/liblog/include/log/log.h b/liblog/include/log/log.h
index d01708d8b..3813e6e32 100644
--- a/liblog/include/log/log.h
+++ b/liblog/include/log/log.h
@@ -95,6 +95,8 @@ int __android_log_btwrite(int32_t tag, char type, const void* payload,
95 size_t len); 95 size_t len);
96int __android_log_bswrite(int32_t tag, const char* payload); 96int __android_log_bswrite(int32_t tag, const char* payload);
97 97
98int __android_log_stats_bwrite(int32_t tag, const void* payload, size_t len);
99
98#define android_bWriteLog(tag, payload, len) \ 100#define android_bWriteLog(tag, payload, len) \
99 __android_log_bwrite(tag, payload, len) 101 __android_log_bwrite(tag, payload, len)
100#define android_btWriteLog(tag, type, payload, len) \ 102#define android_btWriteLog(tag, type, payload, len) \
diff --git a/liblog/include/log/log_id.h b/liblog/include/log/log_id.h
index 7bfa2770b..c44f5a2eb 100644
--- a/liblog/include/log/log_id.h
+++ b/liblog/include/log/log_id.h
@@ -31,8 +31,9 @@ typedef enum log_id {
31 LOG_ID_EVENTS = 2, 31 LOG_ID_EVENTS = 2,
32 LOG_ID_SYSTEM = 3, 32 LOG_ID_SYSTEM = 3,
33 LOG_ID_CRASH = 4, 33 LOG_ID_CRASH = 4,
34 LOG_ID_SECURITY = 5, 34 LOG_ID_STATS = 5,
35 LOG_ID_KERNEL = 6, /* place last, third-parties can not use it */ 35 LOG_ID_SECURITY = 6,
36 LOG_ID_KERNEL = 7, /* place last, third-parties can not use it */
36 37
37 LOG_ID_MAX 38 LOG_ID_MAX
38} log_id_t; 39} log_id_t;