blob: 750761f4208c7fc157c65578e8e4f225aaad415e [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
Jeff Brown44193d92015-04-28 12:47:02 -070024# 5: float
Jim Miller04ac5882009-07-01 18:28:04 -070025#
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080026# The data unit is a number taken from the following list:
27# 1: Number of objects
28# 2: Number of bytes
29# 3: Number of milliseconds
30# 4: Number of allocations
31# 5: Id
32# 6: Percent
Mark Salyzyn5768d3d2016-11-10 10:24:44 -080033# s: Number of seconds (monotonic time)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080034# Default value for data of type int/long is 2 (bytes).
35#
36# TODO: generate ".java" and ".h" files with integer constants from this file.
37
38# These are used for testing, do not modify without updating
39# tests/framework-tests/src/android/util/EventLogFunctionalTest.java.
Mark Salyzynfe8c96d2017-03-28 11:40:55 -070040# system/core/liblog/tests/liblog_benchmark.cpp
41# system/core/liblog/tests/liblog_test.cpp
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08004242 answer (to life the universe etc|3)
43314 pi
442718 e
45
Doug Zongker6f9d1c22009-09-20 15:48:22 -070046# "account" is the java hash of the account name
472720 sync (id|3),(event|1|5),(source|1|5),(account|1|5)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080048
49# This event is logged when the location service uploads location data.
502740 location_controller
51# This event is logged when someone is deciding to force a garbage collection
522741 force_gc (reason|3)
53# This event is logged on each tickle
542742 tickle (authority|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080055
Ken Shirrifff6020302009-09-03 16:12:44 -070056# contacts aggregation: time and number of contacts.
57# count is negative for query phase, positive for merge phase
582747 contacts_aggregation (aggregation time|2|3), (count|1|1)
59
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080060# Device boot timings. We include monotonic clock values because the
61# intrinsic event log times are wall-clock.
62#
63# Runtime starts:
643000 boot_progress_start (time|2|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080065# ZygoteInit class preloading starts:
663020 boot_progress_preload_start (time|2|3)
67# ZygoteInit class preloading ends:
683030 boot_progress_preload_end (time|2|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080069
Mathew Inwood8ec1c7e2018-03-23 16:22:54 +000070# Dalvik VM / ART
Brad Fitzpatrick9915e3f2010-09-14 10:22:48 -07007120003 dvm_lock_sample (process|3),(main|1|5),(thread|3),(time|1|3),(file|3),(line|1|5),(ownerfile|3),(ownerline|1|5),(sample_percent|1|6)
Mathew Inwood8ec1c7e2018-03-23 16:22:54 +00007220004 art_hidden_api_access (access_method|1),(flags|1),(class|3),(member|3),(type_signature|3)
Wei Huang9d0d8882009-06-17 14:38:28 -070073
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08007475000 sqlite_mem_alarm_current (current|1|2)
7575001 sqlite_mem_alarm_max (max|1|2)
7675002 sqlite_mem_alarm_alloc_attempt (attempts|1|4)
7775003 sqlite_mem_released (Memory released|1|2)
Jeff Hamilton9e42da42009-09-29 11:46:46 -07007875004 sqlite_db_corrupt (Database file corrupt|3)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080079
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08008050000 menu_item_selected (Menu type where 0 is options and 1 is context|1|5),(Menu item title|3)
8150001 menu_opened (Menu type where 0 is options and 1 is context|1|5)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080082
Irfan Sheriffefc69582010-07-20 22:23:14 -070083# HSM wifi state change
84# Hierarchical state class name (as defined in WifiStateTracker.java)
85# Logged on every state change in the hierarchical state machine
8650021 wifi_state_changed (wifi_state|3)
87# HSM wifi event
88# [31-16] Reserved for future use
89# [15 - 0] HSM event (as defined in WifiStateTracker.java)
90# Logged when an event is handled in a hierarchical state
9150022 wifi_event_handled (wifi_event|1|5)
92# Supplicant state change
93# [31-13] Reserved for future use
94# [8 - 0] Supplicant state (as defined in SupplicantState.java)
95# Logged when the supplicant switches to a new state
9650023 wifi_supplicant_state_changed (supplicant_state|1|5)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080097
Dan Egnord3fe19f2009-11-23 14:49:21 -080098# Database operation samples.
99# db: the filename of the database
100# sql: the executed query (without query args)
101# time: cpu time millis (not wall time), including lock acquisition
102# blocking_package: if this is on a main thread, the package name, otherwise ""
103# sample_percent: the percent likelihood this query was logged
Brad Fitzpatrick7c2be042010-04-08 13:24:36 -070010452000 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 -0800105
106# http request/response stats
10752001 http_stats (useragent|3),(response|2|3),(processing|2|3),(tx|1|2),(rx|1|2)
10860000 viewroot_draw (Draw time|1|3)
10960001 viewroot_layout (Layout time|1|3)
11060002 view_build_drawing_cache (View created drawing cache|1|5)
11160003 view_use_drawing_cache (View drawn using bitmap cache|1|5)
112
Mathias Agopian2da00322010-09-13 23:05:56 -0700113# graphics timestamp
Mathias Agopian32a9d692013-06-04 18:47:31 -0700114# 60100 - 60199 reserved for surfaceflinger
Mathias Agopian2da00322010-09-13 23:05:56 -0700115
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -0800116# 0 for screen off, 1 for screen on, 2 for key-guard done
11770000 screen_toggled (screen_state|1|5)
118
Jim Millercae5f6a2009-06-08 19:00:27 -0700119# aggregation service
12070200 aggregation (aggregation time|2|3)
Jim Miller04ac5882009-07-01 18:28:04 -070012170201 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 -0700122
Tom Cherryf9ec3462018-04-18 16:25:56 -0700123# gms refuses to register this log tag, b/30156345
12470220 gms_unknown
125
Geremy Condrae2c01bc2012-06-08 17:10:50 -0700126# libc failure logging
12780100 bionic_event_memcpy_buffer_overflow (uid|1)
12880105 bionic_event_strcat_buffer_overflow (uid|1)
12980110 bionic_event_memmov_buffer_overflow (uid|1)
13080115 bionic_event_strncat_buffer_overflow (uid|1)
13180120 bionic_event_strncpy_buffer_overflow (uid|1)
13280125 bionic_event_memset_buffer_overflow (uid|1)
13380130 bionic_event_strcpy_buffer_overflow (uid|1)
134
13580200 bionic_event_strcat_integer_overflow (uid|1)
13680205 bionic_event_strncat_integer_overflow (uid|1)
137
13880300 bionic_event_resolver_old_response (uid|1)
13980305 bionic_event_resolver_wrong_server (uid|1)
14080310 bionic_event_resolver_wrong_query (uid|1)
141
Geremy Condrad8325672012-09-11 21:38:31 -0700142# libcore failure logging
William Luh52493062013-09-04 16:31:24 -070014390100 exp_det_cert_pin_failure (certs|4)
Geremy Condrad8325672012-09-11 21:38:31 -0700144
William Luh66929db2014-06-16 12:45:23 -07001451397638484 snet_event_log (subtag|3) (uid|1) (message|3)
146
Yao Chenc6eafeb2017-11-13 21:05:47 -0800147# for events that go to stats log buffer
1481937006964 stats_log (atom_id|1|5),(data|4)
149
Dan Egnor2cf6cff2009-06-11 15:28:59 -0700150# NOTE - the range 1000000-2000000 is reserved for partners and others who
151# want to define their own log tags without conflicting with the core platform.