blob: 4dabbbc8235170fce2d281c0c6a6a8d068af80b3 [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
422719 configuration_changed (config mask|1|5)
432720 sync (id|3),(event|1|5),(source|1|5)
442721 cpu (total|1|6),(user|1|6),(system|1|6),(iowait|1|6),(irq|1|6),(softirq|1|6)
452722 battery_level (level|1|6),(voltage|1|1),(temperature|1|1)
462723 battery_status (status|1|5),(health|1|5),(present|1|5),(plugged|1|5),(technology|3)
47# This is logged when the device is being forced to sleep (typically by
48# the user pressing the power button).
492724 power_sleep_requested (wakeLocksCleared|1|1)
50# This is logged when the screen on broadcast has completed
512725 power_screen_broadcast_send (wakelockCount|1|1)
52# This is logged when the screen broadcast has completed
532726 power_screen_broadcast_done (on|1|5),(broadcastDuration|2|3),(wakelockCount|1|1)
54# This is logged when the screen on broadcast has completed
552727 power_screen_broadcast_stop (which|1|5),(wakelockCount|1|1)
56# This is logged when the screen is turned on or off.
572728 power_screen_state (offOrOn|1|5),(becauseOfUser|1|5),(totalTouchDownTime|2|3),(touchCycles|1|1)
58# This is logged when the partial wake lock (keeping the device awake
59# regardless of whether the screen is off) is acquired or released.
602729 power_partial_wake_state (releasedorAcquired|1|5),(tag|3)
Jim Miller04ac5882009-07-01 18:28:04 -070061# This is logged when battery goes from discharging to charging.
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080062# It lets us count the total amount of time between charges and the discharge level
632730 battery_discharge (duration|2|3),(minLevel|1|6),(maxLevel|1|6)
64#
Jim Miller04ac5882009-07-01 18:28:04 -070065# Leave IDs through 2739 for more power logs
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080066#
67
68# This event is logged when the location service uploads location data.
692740 location_controller
70# This event is logged when someone is deciding to force a garbage collection
712741 force_gc (reason|3)
72# This event is logged on each tickle
732742 tickle (authority|3)
74# What happens in a sync operation (bytes sent and received, and
75# operation details)
762743 sync_details (authority|3),(send|1|2),(recv|1|2),(details|3)
77
78# The disk space free on the /data partition, in bytes
792744 free_storage_changed (data|2|2)
80# Device low memory notification and disk space free on the /data partition, in bytes at that time
812745 low_storage (data|2|2)
82# disk space free on the /data partition in bytes
832746 free_storage_left (data|2|2)
84
85# when a NotificationManager.notify is called
862750 notification_enqueue (pkg|3),(id|1|5),(notification|3)
87# when someone tries to cancel a notification, the notification manager sometimes
88# calls this with flags too
892751 notification_cancel (pkg|3),(id|1|5),(required_flags|1)
90# when someone tries to cancel all of the notifications for a particular package
912752 notification_cancel_all (pkg|3),(required_flags|1)
92
93# This event is logged when GTalkService encounters important events
942800 gtalkservice (eventType|1)
95# This event is logged for GTalk connection state changes. The status field is an int, but
96# it really contains 4 separate values, each taking up a byte
Wei Huang9d0d8882009-06-17 14:38:28 -070097# (eventType << 24) + (connection state << 16) + (connection error << 8) + network state
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800982801 gtalk_connection (status|1)
99
1002802 watchdog (Service|3)
1012803 watchdog_proc_pss (Process|3),(Pid|1|5),(Pss|1|2)
1022804 watchdog_soft_reset (Process|3),(Pid|1|5),(MaxPss|1|2),(Pss|1|2),(Skip|3)
1032805 watchdog_hard_reset (Process|3),(Pid|1|5),(MaxPss|1|2),(Pss|1|2)
1042806 watchdog_pss_stats (EmptyPss|1|2),(EmptyCount|1|1),(BackgroundPss|1|2),(BackgroundCount|1|1),(ServicePss|1|2),(ServiceCount|1|1),(VisiblePss|1|2),(VisibleCount|1|1),(ForegroundPss|1|2),(ForegroundCount|1|1),(NoPssCount|1|1)
1052807 watchdog_proc_stats (DeathsInOne|1|1),(DeathsInTwo|1|1),(DeathsInThree|1|1),(DeathsInFour|1|1),(DeathsInFive|1|1)
1062808 watchdog_scheduled_reboot (Now|2|1),(Interval|1|3),(StartTime|1|3),(Window|1|3),(Skip|3)
1072809 watchdog_meminfo (MemFree|1|2),(Buffers|1|2),(Cached|1|2),(Active|1|2),(Inactive|1|2),(AnonPages|1|2),(Mapped|1|2),(Slab|1|2),(SReclaimable|1|2),(SUnreclaim|1|2),(PageTables|1|2)
1082810 watchdog_vmstat (runtime|2|3),(pgfree|1|1),(pgactivate|1|1),(pgdeactivate|1|1),(pgfault|1|1),(pgmajfault|1|1)
1092811 watchdog_requested_reboot (NoWait|1|1),(ScheduleInterval|1|3),(RecheckInterval|1|3),(StartTime|1|3),(Window|1|3),(MinScreenOff|1|3),(MinNextAlarm|1|3)
110
111# Device boot timings. We include monotonic clock values because the
112# intrinsic event log times are wall-clock.
113#
114# Runtime starts:
1153000 boot_progress_start (time|2|3)
116# SystemServer.run() starts:
1173010 boot_progress_system_run (time|2|3)
118# ZygoteInit class preloading starts:
1193020 boot_progress_preload_start (time|2|3)
120# ZygoteInit class preloading ends:
1213030 boot_progress_preload_end (time|2|3)
122# ActivityManagerService.systemReady() starts:
1233040 boot_progress_ams_ready (time|2|3)
124# ActivityManagerService calls enableScreenAfterBoot():
1253050 boot_progress_enable_screen (time|2|3)
126# Package Manager starts:
1273060 boot_progress_pms_start (time|2|3)
128# Package Manager .apk scan starts:
1293070 boot_progress_pms_system_scan_start (time|2|3)
130# Package Manager .apk scan starts:
1313080 boot_progress_pms_data_scan_start (time|2|3)
132# Package Manager .apk scan ends:
1333090 boot_progress_pms_scan_end (time|2|3)
134# Package Manager ready:
1353100 boot_progress_pms_ready (time|2|3)
136# + check activity_launch_time for Home app
137
Wei Huang9d0d8882009-06-17 14:38:28 -0700138# This event is logged when GTalk connection is closed.
139# The status field is an int, but contains 2 different values, it's represented as
140#
141# (networkType << 8) + connection error
142#
143# the possible error values are
144#
145# no_error=0, no_network=1, connection_failed=2, unknown_host=3, auth_failed=4,
146# auth_expired=5, heart_beat_timeout=6, server_error=7, server_reject_rate_limiting=8, unknown=10
147#
148# duration is the connection duration.
1494000 gtalk_conn_close (status|1),(duration|1)
150
151# This event is logged for GTalk heartbeat resets
152# interval_and_nt contains both the heartbeat interval and the network type, It's represented as
153# (networkType << 16) + interval
154# interval is in seconds; network type can be 0 (mobile) or 1 (wifi); ip is the host ip addr.
1554001 gtalk_heartbeat_reset (interval_and_nt|1),(ip|3)
156
157
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800158# Do not change these names without updating the checkin_events setting in
159# google3/googledata/wireless/android/provisioning/gservices.config !!
160#
161# An activity is being finished:
16230001 am_finish_activity (Token|1|5),(Task ID|1|5),(Component Name|3),(Reason|3)
163# A task is being brought to the front of the screen:
16430002 am_task_to_front (Task|1|5)
165# An existing activity is being given a new intent:
16630003 am_new_intent (Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME Type|3),(URI|3),(Flags|1|5)
167# A new task is being created:
16830004 am_create_task (Task ID|1|5)
169# A new activity is being created in an existing task:
17030005 am_create_activity (Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME Type|3),(URI|3),(Flags|1|5)
171# An activity has been resumed into the foreground but was not already running:
17230006 am_restart_activity (Token|1|5),(Task ID|1|5),(Component Name|3)
173# An activity has been resumed and is now in the foreground:
17430007 am_resume_activity (Token|1|5),(Task ID|1|5),(Component Name|3)
175# Application Not Responding
17630008 anr (pid|1|5),(Package Name|3),(reason|3)
177# Activity launch time
17830009 activity_launch_time (Token|1|5),(Component Name|3),(time|2|3)
179# Application process bound to work
18030010 am_proc_bound (PID|1|5),(Process Name|3)
181# Application process died
18230011 am_proc_died (PID|1|5),(Process Name|3)
Jim Miller04ac5882009-07-01 18:28:04 -0700183# The Activity Manager failed to pause the given activity.
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080018430012 am_failed_to_pause (Token|1|5),(Wanting to pause|3),(Currently pausing|3)
Jim Miller04ac5882009-07-01 18:28:04 -0700185# Attempting to pause the current activity
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080018630013 am_pause_activity (Token|1|5),(Component Name|3)
187# Application process has been started
18830014 am_proc_start (PID|1|5),(UID|1|5),(Process Name|3),(Type|3),(Component|3)
189# An application process has been marked as bad
19030015 am_proc_bad (UID|1|5),(Process Name|3)
191# An application process that was bad is now marked as good
19230016 am_proc_good (UID|1|5),(Process Name|3)
193# Reporting to applications that memory is low
19430017 am_low_memory (Num Processes|1|1)
195# An activity is being destroyed:
19630018 am_destroy_activity (Token|1|5),(Task ID|1|5),(Component Name|3)
197# An activity has been relaunched, resumed, and is now in the foreground:
19830019 am_relaunch_resume_activity (Token|1|5),(Task ID|1|5),(Component Name|3)
199# An activity has been relaunched:
20030020 am_relaunch_activity (Token|1|5),(Task ID|1|5),(Component Name|3)
201# The activity's onPause has been called.
20230021 am_on_paused_called (Component Name|3)
203# The activity's onResume has been called.
20430022 am_on_resume_called (Component Name|3)
205# Kill a process to reclaim memory.
20630023 am_kill_for_memory (PID|1|5),(Process Name|3),(OomAdj|1|5)
207# Discard an undelivered serialized broadcast (timeout/ANR/crash)
20830024 am_broadcast_discard_filter (Broadcast|1|5),(Action|3),(Receiver Number|1|1),(BroadcastFilter|1|5)
20930025 am_broadcast_discard_app (Broadcast|1|5),(Action|3),(Receiver Number|1|1),(App|3)
210# A service is being created
21130030 am_create_service (Service Record|1|5),(Name|3),(Intent|3),(PID|1|5)
212# A service is being destroyed
21330031 am_destroy_service (Service Record|1|5),(Name|3),(PID|1|5)
214# A process has crashed too many times, it is being cleared
21530032 am_process_crashed_too_much (Name|3),(PID|1|5)
216# An unknown process is trying to attach to the activity manager
21730033 am_drop_process (PID|1|5)
218# A service has crashed too many times, it is being stopped
21930034 am_service_crashed_too_much (Crash Count|1|1),(Component Name|3),(PID|1|5)
220# A service is going to be restarted after its process went away
22130035 am_schedule_service_restart (Component Name|3),(Time|2|3)
222# A client was waiting for a content provider, but its process was lost
22330036 am_provider_lost_process (Package Name|3),(UID|1|5),(Name|3)
224
225# Out of memory for surfaces.
22631000 wm_no_surface_memory (Window|3),(PID|1|5),(Operation|3)
227
228# Re-connecting to input method service because we haven't received its interface
22932000 imf_force_reconnect_ime (IME|4),(Time Since Connect|2|3),(Showing|1|1)
230
231# dvm_gc_info: LIST (LONG, LONG, LONG)
232#
233# First LONG:
234#
235# [63] 1
236# [62-24] ASCII process identifier
237# [23-12] GC time in ms
238# [11- 0] Bytes freed
239#
240# Second LONG (aggregated heap info):
241#
242# [63-62] 10
243# [61-60] Reserved; must be zero
244# [59-48] Objects freed
245# [47-36] Actual size (current footprint)
246# [35-24] Allowed size (current hard max)
247# [23-12] Objects allocated
248# [11- 0] Bytes allocated
249#
250# Third LONG (zygote heap info):
251#
252# [63-62] 11
253# [61-60] Reserved; must be zero
254# [59-48] Soft limit
255# [47-36] Actual size (current footprint)
256# [35-24] Allowed size (current hard max)
257# [23-12] Objects allocated
258# [11- 0] Bytes allocated
259#
260# Fourth LONG:
261#
262# [63-48] Reserved; must be zero
263# [47-36] dlmallocFootprint
264# [35-24] mallinfo: total allocated space
265# [23-12] External byte limit
266# [11- 0] External bytes allocated
267#
268# See HeapDebug.c
269#
27020001 dvm_gc_info (custom|2),(custom|2),(custom|2),(custom|2)
27120002 dvm_gc_madvise_info (total|1|2),(zygote|1|2)
272
27375000 sqlite_mem_alarm_current (current|1|2)
27475001 sqlite_mem_alarm_max (max|1|2)
27575002 sqlite_mem_alarm_alloc_attempt (attempts|1|4)
27675003 sqlite_mem_released (Memory released|1|2)
277
27840000 checkin (Check in time|2|3)
279
28050000 menu_item_selected (Menu type where 0 is options and 1 is context|1|5),(Menu item title|3)
28150001 menu_opened (Menu type where 0 is options and 1 is context|1|5)
282# Connectivity state changed:
283# [31-13] Reserved for future use
284# [12- 9] Network subtype (for mobile network, as defined by TelephonyManager)
Jim Miller04ac5882009-07-01 18:28:04 -0700285# [ 8- 3] Detailed state ordinal (as defined by NetworkInfo.DetailedState)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800286# [ 2- 0] Network type (as defined by ConnectivityManager)
28750020 connectivity_state_changed (custom|1|5)
288
289# Wi-Fi network state changed:
290# [31- 6] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700291# [ 5- 0] Detailed state ordinal (as defined by NetworkInfo.DetailedState)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080029250021 wifi_network_state_changed (network_state|1|5)
293
294# Wi-Fi supplicant state changed:
295# [31- 6] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700296# [ 5- 0] Supplicant state ordinal (as defined by SupplicantState)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080029750022 wifi_supplicant_state_changed (supplicant_state|1|5)
298
299# Wi-Fi driver state changed:
300# [31- 1] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700301# [ 0- 0] Driver start (1) or stopped (0)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080030250023 wifi_driver_state_changed (driver_state|1|5)
303
304# Wi-Fi interface configuration state changed:
305# [31- 1] Reserved for future use
Jim Miller04ac5882009-07-01 18:28:04 -0700306# [ 0- 0] Interface configuration succeeded (1) or failed (0)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080030750024 wifi_interface_configuration_state_changed (IP_configuration|1|5)
308
309# Wi-Fi supplicant connection state changed:
310# [31- 2] Reserved for future use
311# [ 1- 0] Connected to supplicant (1) or disconnected from supplicant (0),
312# or supplicant died (2)
31350025 wifi_supplicant_connection_state_changed (connected|1|5)
314
315# PDP Context has a bad DNS address
31650100 pdp_bad_dns_address (dns_address|3)
317
318# For data connection on PDP context, reached the data-out-without-data-in
319# packet count that triggers a countdown to radio restart
32050101 pdp_radio_reset_countdown_triggered (out_packet_count|1|1)
321
322# Radio restart - timed out with no incoming packets.
32350102 pdp_radio_reset (out_packet_count|1|1)
324
325# PDP context reset - timed out with no incoming packets.
32650103 pdp_context_reset (out_packet_count|1|1)
327
328# Reregister to data network - timed out with no incoming packets.
32950104 pdp_reregister_network (out_packet_count|1|1)
330
331# PDP Setup failures
33250105 pdp_setup_fail (cause|1|5), (cid|1|5), (network_type|1|5)
333
334# Call drops
33550106 call_drop (cause|1|5), (cid|1|5), (network_type|1|5)
336
337# Data network registration failed after successful voice registration
33850107 data_network_registration_fail (op_numeric|1|5), (cid|1|5)
339
340# Suspicious status of data connection while radio poweroff
34150108 data_network_status_on_radio_off (dc_state|3), (enable|1|5)
342
343# PDP drop caused by network
34450109 pdp_network_drop (cid|1|5), (network_type|1|5)
345
Tammo Spalink473b9b22009-05-19 15:26:18 +0800346# CDMA data network setup failure
34750110 cdma_data_setup_failed (cause|1|5), (cid|1|5), (network_type|1|5)
348
349# CDMA data network drop
35050111 cdma_data_drop (cid|1|5), (network_type|1|5)
351
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800352# Do not change these names without updating tag in:
353#//device/dalvik/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.c
35451000 socket_stats (send|1|2),(recv|1|2),(ip|1|5),(port|1|5),(close|1|5)
355
Jim Miller04ac5882009-07-01 18:28:04 -0700356# db stats. 0 is query, 1 is write (may become more fine grained in the
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800357# future)
35852000 db_operation (name|3),(op_type|1|5),(time|2|3)
359
360# http request/response stats
36152001 http_stats (useragent|3),(response|2|3),(processing|2|3),(tx|1|2),(rx|1|2)
36260000 viewroot_draw (Draw time|1|3)
36360001 viewroot_layout (Layout time|1|3)
36460002 view_build_drawing_cache (View created drawing cache|1|5)
36560003 view_use_drawing_cache (View drawn using bitmap cache|1|5)
366
367# 0 for screen off, 1 for screen on, 2 for key-guard done
36870000 screen_toggled (screen_state|1|5)
369
370# browser stats for diary study
37170101 browser_zoom_level_change (start level|1|5),(end level|1|5),(time|2|3)
37270102 browser_double_tap_duration (duration|1|3),(time|2|3)
Jim Millercae5f6a2009-06-08 19:00:27 -0700373
374# aggregation service
37570200 aggregation (aggregation time|2|3)
Jim Miller04ac5882009-07-01 18:28:04 -070037670201 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 -0700377
Dan Egnor2cf6cff2009-06-11 15:28:59 -0700378# NOTE - the range 1000000-2000000 is reserved for partners and others who
379# want to define their own log tags without conflicting with the core platform.