event.logtags revision d89a501f8fff097b023a43e577e2d93e4f6278eb
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
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
42# "account" is the java hash of the account name
432720 sync (id|3),(event|1|5),(source|1|5),(account|1|5)
44
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)
51# What happens in a sync operation (bytes sent and received, and
52# operation details)
532743 sync_details (authority|3),(send|1|2),(recv|1|2),(details|3)
54
55# contacts aggregation: time and number of contacts.
56# count is negative for query phase, positive for merge phase
572747 contacts_aggregation (aggregation time|2|3), (count|1|1)
58
59# This event is logged when GTalkService encounters important events
602800 gtalkservice (eventType|1)
61# This event is logged for GTalk connection state changes. The status field is an int, but
62# it really contains 4 separate values, each taking up a byte
63#     (eventType << 24) + (connection state << 16) + (connection error << 8) + network state
642801 gtalk_connection (status|1)
65
66# Device boot timings.  We include monotonic clock values because the
67# intrinsic event log times are wall-clock.
68#
69# Runtime starts:
703000 boot_progress_start (time|2|3)
71# ZygoteInit class preloading starts:
723020 boot_progress_preload_start (time|2|3)
73# ZygoteInit class preloading ends:
743030 boot_progress_preload_end (time|2|3)
75
76# This event is logged when GTalk connection is closed.
77# The status field is an int, but contains 2 different values, it's represented as
78#
79#     (networkType << 8) + connection error
80#
81# the possible error values are
82#
83# no_error=0, no_network=1, connection_failed=2, unknown_host=3, auth_failed=4,
84# auth_expired=5, heart_beat_timeout=6, server_error=7, server_reject_rate_limiting=8, unknown=10
85#
86# duration is the connection duration.
874000 gtalk_conn_close (status|1),(duration|1)
88
89# This event is logged for GTalk heartbeat resets
90# interval_and_nt contains both the heartbeat interval and the network type, It's represented as
91#     (networkType << 16) + interval
92# interval is in seconds; network type can be 0 (mobile) or 1 (wifi); ip is the host ip addr.
934001 gtalk_heartbeat_reset (interval_and_nt|1),(ip|3)
94
95# dvm_gc_info: LIST (LONG, LONG, LONG)
96#
97# First LONG:
98#
99#    [63]    1
100#    [62-24] ASCII process identifier
101#    [23-12] GC time in ms
102#    [11- 0] Bytes freed
103#
104# Second LONG (aggregated heap info):
105#
106#    [63-62] 10
107#    [61-60] Reserved; must be zero
108#    [59-48] Objects freed
109#    [47-36] Actual size (current footprint)
110#    [35-24] Allowed size (current hard max)
111#    [23-12] Objects allocated
112#    [11- 0] Bytes allocated
113#
114# Third LONG (zygote heap info):
115#
116#    [63-62] 11
117#    [61-60] Reserved; must be zero
118#    [59-48] Soft limit
119#    [47-36] Actual size (current footprint)
120#    [35-24] Allowed size (current hard max)
121#    [23-12] Objects allocated
122#    [11- 0] Bytes allocated
123#
124# Fourth LONG:
125#
126#    [63-48] Reserved; must be zero
127#    [47-36] dlmallocFootprint
128#    [35-24] mallinfo: total allocated space
129#    [23-12] External byte limit
130#    [11- 0] External bytes allocated
131#
132# See HeapDebug.c
133#
13420001 dvm_gc_info (custom|2),(custom|2),(custom|2),(custom|2)
13520002 dvm_gc_madvise_info (total|1|2),(zygote|1|2)
136
13775000 sqlite_mem_alarm_current (current|1|2)
13875001 sqlite_mem_alarm_max (max|1|2)
13975002 sqlite_mem_alarm_alloc_attempt (attempts|1|4)
14075003 sqlite_mem_released (Memory released|1|2)
14175004 sqlite_db_corrupt (Database file corrupt|3)
142
14340000 checkin (Check in time|2|3)
144
14550000 menu_item_selected (Menu type where 0 is options and 1 is context|1|5),(Menu item title|3)
14650001 menu_opened (Menu type where 0 is options and 1 is context|1|5)
147
148# Wi-Fi network state changed:
149# [31- 6] Reserved for future use
150# [ 5- 0] Detailed state ordinal (as defined by NetworkInfo.DetailedState)
15150021 wifi_network_state_changed (network_state|1|5)
152
153# Wi-Fi supplicant state changed:
154# [31- 6] Reserved for future use
155# [ 5- 0] Supplicant state ordinal (as defined by SupplicantState)
15650022 wifi_supplicant_state_changed (supplicant_state|1|5)
157
158# Wi-Fi driver state changed:
159# [31- 1] Reserved for future use
160# [ 0- 0] Driver start (1) or stopped (0)
16150023 wifi_driver_state_changed (driver_state|1|5)
162
163# Wi-Fi interface configuration state changed:
164# [31- 1] Reserved for future use
165# [ 0- 0] Interface configuration succeeded (1) or failed (0)
16650024 wifi_interface_configuration_state_changed (IP_configuration|1|5)
167
168# Wi-Fi supplicant connection state changed:
169# [31- 2] Reserved for future use
170# [ 1- 0] Connected to supplicant (1) or disconnected from supplicant (0),
171#         or supplicant died (2)
17250025 wifi_supplicant_connection_state_changed (connected|1|5)
173
174# PDP Context has a bad DNS address
17550100 pdp_bad_dns_address (dns_address|3)
176
177# For data connection on PDP context, reached the data-out-without-data-in
178# packet count that triggers a countdown to radio restart
17950101 pdp_radio_reset_countdown_triggered (out_packet_count|1|1)
180
181# Radio restart - timed out with no incoming packets.
18250102 pdp_radio_reset (out_packet_count|1|1)
183
184# PDP context reset - timed out with no incoming packets.
18550103 pdp_context_reset (out_packet_count|1|1)
186
187# Reregister to data network - timed out with no incoming packets.
18850104 pdp_reregister_network (out_packet_count|1|1)
189
190# PDP Setup failures
19150105 pdp_setup_fail (cause|1|5), (cid|1|5), (network_type|1|5)
192
193# Call drops
19450106 call_drop (cause|1|5), (cid|1|5), (network_type|1|5)
195
196# Data network registration failed after successful voice registration
19750107 data_network_registration_fail (op_numeric|1|5), (cid|1|5)
198
199# Suspicious status of data connection while radio poweroff
20050108 data_network_status_on_radio_off (dc_state|3), (enable|1|5)
201
202# PDP drop caused by network
20350109 pdp_network_drop (cid|1|5), (network_type|1|5)
204
205# CDMA data network setup failure
20650110 cdma_data_setup_failed (cause|1|5), (cid|1|5), (network_type|1|5)
207
208# CDMA data network drop
20950111 cdma_data_drop (cid|1|5), (network_type|1|5)
210
211# GSM radio access technology switched
21250112 gsm_rat_switched (cid|1|5), (network_from|1|5), (network_to|1|5)
213
214# Do not change these names without updating tag in:
215#//device/dalvik/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.c
21651000 socket_stats (send|1|2),(recv|1|2),(ip|1|5),(port|1|5),(close|1|5)
217
218# Database operation samples.
219# db: the filename of the database
220# sql: the executed query (without query args)
221# time: cpu time millis (not wall time), including lock acquisition
222# blocking_package: if this is on a main thread, the package name, otherwise ""
223# sample_percent: the percent likelihood this query was logged
22452000 db_operation (db|3),(sql|3),(time|1|3),(blocking_package|3),(sample_percent|1|6)
225
226# http request/response stats
22752001 http_stats (useragent|3),(response|2|3),(processing|2|3),(tx|1|2),(rx|1|2)
22860000 viewroot_draw (Draw time|1|3)
22960001 viewroot_layout (Layout time|1|3)
23060002 view_build_drawing_cache (View created drawing cache|1|5)
23160003 view_use_drawing_cache (View drawn using bitmap cache|1|5)
232
233# 0 for screen off, 1 for screen on, 2 for key-guard done
23470000 screen_toggled (screen_state|1|5)
235
236# browser stats for diary study
23770101 browser_zoom_level_change (start level|1|5),(end level|1|5),(time|2|3)
23870102 browser_double_tap_duration (duration|1|3),(time|2|3)
239
240# aggregation service
24170200 aggregation (aggregation time|2|3)
24270201 aggregation_test (field1|1|2),(field2|1|2),(field3|1|2),(field4|1|2),(field5|1|2)
243
244# NOTE - the range 1000000-2000000 is reserved for partners and others who
245# want to define their own log tags without conflicting with the core platform.
246