blob: f146738050fc53240b62d2280f0e5623476e7d56 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001# 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
Jim Miller04ac5882009-07-01 18:28:04 -070024#
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080025# 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
36# These are used for testing, do not modify without updating
37# tests/framework-tests/src/android/util/EventLogFunctionalTest.java.
3842 answer (to life the universe etc|3)
39314 pi
402718 e
41
Doug Zongker6f9d1c22009-09-20 15:48:22 -070042# "account" is the java hash of the account name
432720 sync (id|3),(event|1|5),(source|1|5),(account|1|5)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080044
45# This event is logged when the location service uploads location data.
462740 location_controller
47# This event is logged when someone is deciding to force a garbage collection
482741 force_gc (reason|3)
49# This event is logged on each tickle
502742 tickle (authority|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080051
Ken Shirrifff6020302009-09-03 16:12:44 -070052# contacts aggregation: time and number of contacts.
53# count is negative for query phase, positive for merge phase
542747 contacts_aggregation (aggregation time|2|3), (count|1|1)
55
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080056# Device boot timings. We include monotonic clock values because the
57# intrinsic event log times are wall-clock.
58#
59# Runtime starts:
603000 boot_progress_start (time|2|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080061# ZygoteInit class preloading starts:
623020 boot_progress_preload_start (time|2|3)
63# ZygoteInit class preloading ends:
643030 boot_progress_preload_end (time|2|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080065
Dan Egnor894c5cd2009-07-27 12:28:59 -070066# dvm_gc_info: LIST (LONG, LONG, LONG)
67#
68# First LONG:
69#
70# [63] 1
71# [62-24] ASCII process identifier
72# [23-12] GC time in ms
73# [11- 0] Bytes freed
74#
75# Second LONG (aggregated heap info):
76#
77# [63-62] 10
78# [61-60] Reserved; must be zero
79# [59-48] Objects freed
80# [47-36] Actual size (current footprint)
81# [35-24] Allowed size (current hard max)
82# [23-12] Objects allocated
83# [11- 0] Bytes allocated
84#
85# Third LONG (zygote heap info):
86#
87# [63-62] 11
88# [61-60] Reserved; must be zero
89# [59-48] Soft limit
90# [47-36] Actual size (current footprint)
91# [35-24] Allowed size (current hard max)
92# [23-12] Objects allocated
93# [11- 0] Bytes allocated
94#
95# Fourth LONG:
96#
97# [63-48] Reserved; must be zero
98# [47-36] dlmallocFootprint
99# [35-24] mallinfo: total allocated space
100# [23-12] External byte limit
101# [11- 0] External bytes allocated
102#
103# See HeapDebug.c
104#
10520001 dvm_gc_info (custom|2),(custom|2),(custom|2),(custom|2)
10620002 dvm_gc_madvise_info (total|1|2),(zygote|1|2)
Carl Shapiroc24b4d82010-04-12 14:13:28 -070010720003 dvm_lock_sample (process|3),(main|1|5),(thread|3),(time|1|3),(file|3),(line|1|5),(sample_percent|1|6)
Wei Huang9d0d8882009-06-17 14:38:28 -0700108
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080010975000 sqlite_mem_alarm_current (current|1|2)
11075001 sqlite_mem_alarm_max (max|1|2)
11175002 sqlite_mem_alarm_alloc_attempt (attempts|1|4)
11275003 sqlite_mem_released (Memory released|1|2)
Jeff Hamilton9e42da42009-09-29 11:46:46 -070011375004 sqlite_db_corrupt (Database file corrupt|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800114
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080011550000 menu_item_selected (Menu type where 0 is options and 1 is context|1|5),(Menu item title|3)
11650001 menu_opened (Menu type where 0 is options and 1 is context|1|5)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800117
118# Wi-Fi network state changed:
119# [31- 6] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700120# [ 5- 0] Detailed state ordinal (as defined by NetworkInfo.DetailedState)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080012150021 wifi_network_state_changed (network_state|1|5)
122
123# Wi-Fi supplicant state changed:
124# [31- 6] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700125# [ 5- 0] Supplicant state ordinal (as defined by SupplicantState)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080012650022 wifi_supplicant_state_changed (supplicant_state|1|5)
127
128# Wi-Fi driver state changed:
129# [31- 1] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700130# [ 0- 0] Driver start (1) or stopped (0)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080013150023 wifi_driver_state_changed (driver_state|1|5)
132
133# Wi-Fi interface configuration state changed:
134# [31- 1] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700135# [ 0- 0] Interface configuration succeeded (1) or failed (0)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080013650024 wifi_interface_configuration_state_changed (IP_configuration|1|5)
137
138# Wi-Fi supplicant connection state changed:
139# [31- 2] Reserved for future use
140# [ 1- 0] Connected to supplicant (1) or disconnected from supplicant (0),
141# or supplicant died (2)
14250025 wifi_supplicant_connection_state_changed (connected|1|5)
143
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800144# Do not change these names without updating tag in:
145#//device/dalvik/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.c
14651000 socket_stats (send|1|2),(recv|1|2),(ip|1|5),(port|1|5),(close|1|5)
147
Dan Egnord3fe19f2009-11-23 14:49:21 -0800148# Database operation samples.
149# db: the filename of the database
150# sql: the executed query (without query args)
151# time: cpu time millis (not wall time), including lock acquisition
152# blocking_package: if this is on a main thread, the package name, otherwise ""
153# sample_percent: the percent likelihood this query was logged
Brad Fitzpatrick7c2be042010-04-08 13:24:36 -070015452000 db_sample (db|3),(sql|3),(time|1|3),(blocking_package|3),(sample_percent|1|6)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800155
156# http request/response stats
15752001 http_stats (useragent|3),(response|2|3),(processing|2|3),(tx|1|2),(rx|1|2)
15860000 viewroot_draw (Draw time|1|3)
15960001 viewroot_layout (Layout time|1|3)
16060002 view_build_drawing_cache (View created drawing cache|1|5)
16160003 view_use_drawing_cache (View drawn using bitmap cache|1|5)
162
163# 0 for screen off, 1 for screen on, 2 for key-guard done
16470000 screen_toggled (screen_state|1|5)
165
Jim Millercae5f6a2009-06-08 19:00:27 -0700166# aggregation service
16770200 aggregation (aggregation time|2|3)
Jim Miller04ac5882009-07-01 18:28:04 -070016870201 aggregation_test (field1|1|2),(field2|1|2),(field3|1|2),(field4|1|2),(field5|1|2)
The Android Open Source Project38e26492009-06-12 11:14:35 -0700169
Dan Egnor2cf6cff2009-06-11 15:28:59 -0700170# NOTE - the range 1000000-2000000 is reserved for partners and others who
171# want to define their own log tags without conflicting with the core platform.