summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2015-02-12 17:14:26 -0600
committerMark Salyzyn2015-03-04 15:21:41 -0600
commitd45d36e011bf2a42bffac07424d3990022287f3c (patch)
tree45ca563150afa1e1d44b6fed19d164ab67db9a9f /liblog/event.logtags
parent29eb57066c37bf667a56bb4a7143b50664d5eb44 (diff)
downloadplatform-system-core-d45d36e011bf2a42bffac07424d3990022287f3c.tar.gz
platform-system-core-d45d36e011bf2a42bffac07424d3990022287f3c.tar.xz
platform-system-core-d45d36e011bf2a42bffac07424d3990022287f3c.zip
liblog: Instrument logging of logd write drops
- If logger system is prostrated, send an event message with the liblog tag from the associated UID and PID with a count of dropped messages once logging is resumed. - Added to the README a description of the error return values. - Describe in the README the appropriate mitigations for dropped messages. - If the caller sees this message, then /proc/sys/net/unix/max_dgram_qlen is likely too small Change-Id: Iaf387b9e5e1b6aa93bebc7481f9e8353732e3229
Diffstat (limited to 'liblog/event.logtags')
-rw-r--r--liblog/event.logtags36
1 files changed, 36 insertions, 0 deletions
diff --git a/liblog/event.logtags b/liblog/event.logtags
new file mode 100644
index 000000000..72ecab198
--- /dev/null
+++ b/liblog/event.logtags
@@ -0,0 +1,36 @@
1# The entries in this file map a sparse set of log tag numbers to tag names.
2# This is installed on the device, in /system/etc, and parsed by logcat.
3#
4# Tag numbers are decimal integers, from 0 to 2^31. (Let's leave the
5# negative values alone for now.)
6#
7# Tag names are one or more ASCII letters and numbers or underscores, i.e.
8# "[A-Z][a-z][0-9]_". Do not include spaces or punctuation (the former
9# impacts log readability, the latter makes regex searches more annoying).
10#
11# Tag numbers and names are separated by whitespace. Blank lines and lines
12# starting with '#' are ignored.
13#
14# Optionally, after the tag names can be put a description for the value(s)
15# of the tag. Description are in the format
16# (<name>|data type[|data unit])
17# Multiple values are separated by commas.
18#
19# The data type is a number from the following values:
20# 1: int
21# 2: long
22# 3: string
23# 4: list
24#
25# The data unit is a number taken from the following list:
26# 1: Number of objects
27# 2: Number of bytes
28# 3: Number of milliseconds
29# 4: Number of allocations
30# 5: Id
31# 6: Percent
32# Default value for data of type int/long is 2 (bytes).
33#
34# TODO: generate ".java" and ".h" files with integer constants from this file.
35
361005 liblog (dropped|1)