The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 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 |
Jim Miller | 04ac588 | 2009-07-01 18:28:04 -0700 | [diff] [blame] | 24 | # |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 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. |
| 38 | 42 answer (to life the universe etc|3) |
| 39 | 314 pi |
| 40 | 2718 e |
| 41 | |
Doug Zongker | 6f9d1c2 | 2009-09-20 15:48:22 -0700 | [diff] [blame] | 42 | # "account" is the java hash of the account name |
| 43 | 2720 sync (id|3),(event|1|5),(source|1|5),(account|1|5) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 44 | |
| 45 | # This event is logged when the location service uploads location data. |
| 46 | 2740 location_controller |
| 47 | # This event is logged when someone is deciding to force a garbage collection |
| 48 | 2741 force_gc (reason|3) |
| 49 | # This event is logged on each tickle |
| 50 | 2742 tickle (authority|3) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 51 | |
Ken Shirriff | f602030 | 2009-09-03 16:12:44 -0700 | [diff] [blame] | 52 | # contacts aggregation: time and number of contacts. |
| 53 | # count is negative for query phase, positive for merge phase |
| 54 | 2747 contacts_aggregation (aggregation time|2|3), (count|1|1) |
| 55 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 56 | # Device boot timings. We include monotonic clock values because the |
| 57 | # intrinsic event log times are wall-clock. |
| 58 | # |
| 59 | # Runtime starts: |
| 60 | 3000 boot_progress_start (time|2|3) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 61 | # ZygoteInit class preloading starts: |
| 62 | 3020 boot_progress_preload_start (time|2|3) |
| 63 | # ZygoteInit class preloading ends: |
| 64 | 3030 boot_progress_preload_end (time|2|3) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 65 | |
Carl Shapiro | dfe3b60 | 2011-01-19 17:29:54 -0800 | [diff] [blame] | 66 | # Dalvik VM |
Brad Fitzpatrick | 9915e3f | 2010-09-14 10:22:48 -0700 | [diff] [blame] | 67 | 20003 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) |
Wei Huang | 9d0d888 | 2009-06-17 14:38:28 -0700 | [diff] [blame] | 68 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 69 | 75000 sqlite_mem_alarm_current (current|1|2) |
| 70 | 75001 sqlite_mem_alarm_max (max|1|2) |
| 71 | 75002 sqlite_mem_alarm_alloc_attempt (attempts|1|4) |
| 72 | 75003 sqlite_mem_released (Memory released|1|2) |
Jeff Hamilton | 9e42da4 | 2009-09-29 11:46:46 -0700 | [diff] [blame] | 73 | 75004 sqlite_db_corrupt (Database file corrupt|3) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 74 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 75 | 50000 menu_item_selected (Menu type where 0 is options and 1 is context|1|5),(Menu item title|3) |
| 76 | 50001 menu_opened (Menu type where 0 is options and 1 is context|1|5) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 77 | |
Irfan Sheriff | efc6958 | 2010-07-20 22:23:14 -0700 | [diff] [blame] | 78 | # HSM wifi state change |
| 79 | # Hierarchical state class name (as defined in WifiStateTracker.java) |
| 80 | # Logged on every state change in the hierarchical state machine |
| 81 | 50021 wifi_state_changed (wifi_state|3) |
| 82 | # HSM wifi event |
| 83 | # [31-16] Reserved for future use |
| 84 | # [15 - 0] HSM event (as defined in WifiStateTracker.java) |
| 85 | # Logged when an event is handled in a hierarchical state |
| 86 | 50022 wifi_event_handled (wifi_event|1|5) |
| 87 | # Supplicant state change |
| 88 | # [31-13] Reserved for future use |
| 89 | # [8 - 0] Supplicant state (as defined in SupplicantState.java) |
| 90 | # Logged when the supplicant switches to a new state |
| 91 | 50023 wifi_supplicant_state_changed (supplicant_state|1|5) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 92 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 93 | # Do not change these names without updating tag in: |
| 94 | #//device/dalvik/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.c |
| 95 | 51000 socket_stats (send|1|2),(recv|1|2),(ip|1|5),(port|1|5),(close|1|5) |
| 96 | |
Dan Egnor | d3fe19f | 2009-11-23 14:49:21 -0800 | [diff] [blame] | 97 | # Database operation samples. |
| 98 | # db: the filename of the database |
| 99 | # sql: the executed query (without query args) |
| 100 | # time: cpu time millis (not wall time), including lock acquisition |
| 101 | # blocking_package: if this is on a main thread, the package name, otherwise "" |
| 102 | # sample_percent: the percent likelihood this query was logged |
Brad Fitzpatrick | 7c2be04 | 2010-04-08 13:24:36 -0700 | [diff] [blame] | 103 | 52000 db_sample (db|3),(sql|3),(time|1|3),(blocking_package|3),(sample_percent|1|6) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 104 | |
| 105 | # http request/response stats |
| 106 | 52001 http_stats (useragent|3),(response|2|3),(processing|2|3),(tx|1|2),(rx|1|2) |
| 107 | 60000 viewroot_draw (Draw time|1|3) |
| 108 | 60001 viewroot_layout (Layout time|1|3) |
| 109 | 60002 view_build_drawing_cache (View created drawing cache|1|5) |
| 110 | 60003 view_use_drawing_cache (View drawn using bitmap cache|1|5) |
| 111 | |
Mathias Agopian | 2da0032 | 2010-09-13 23:05:56 -0700 | [diff] [blame] | 112 | # graphics timestamp |
| 113 | 60100 sf_app_dequeue_before (buffer|1),(identity|1),(time|2) |
| 114 | 60101 sf_app_dequeue_after (buffer|1),(identity|1),(time|2) |
| 115 | 60102 sf_app_lock_before (buffer|1),(identity|1),(time|2) |
| 116 | 60103 sf_app_lock_after (buffer|1),(identity|1),(time|2) |
| 117 | 60104 sf_app_queue (buffer|1),(identity|1),(time|2) |
| 118 | 60105 sf_repaint (buffer|1),(time|2) |
| 119 | 60106 sf_composition_complete (buffer|1),(time|2) |
| 120 | 60107 sf_unlock_clients (buffer|1),(time|2) |
| 121 | 60108 sf_swapbuffers (buffer|1),(time|2) |
| 122 | 60109 sf_repaint_done (buffer|1),(time|2) |
| 123 | 60110 sf_fb_post_before (buffer|1),(time|2) |
| 124 | 60111 sf_fb_post_after (buffer|1),(time|2) |
| 125 | 60112 sf_fb_dequeue_before (buffer|1),(time|2) |
| 126 | 60113 sf_fb_dequeue_after (buffer|1),(time|2) |
| 127 | 60114 sf_fb_lock_before (buffer|1),(time|2) |
| 128 | 60115 sf_fb_lock_after (buffer|1),(time|2) |
| 129 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 130 | # 0 for screen off, 1 for screen on, 2 for key-guard done |
| 131 | 70000 screen_toggled (screen_state|1|5) |
| 132 | |
Jim Miller | cae5f6a | 2009-06-08 19:00:27 -0700 | [diff] [blame] | 133 | # aggregation service |
| 134 | 70200 aggregation (aggregation time|2|3) |
Jim Miller | 04ac588 | 2009-07-01 18:28:04 -0700 | [diff] [blame] | 135 | 70201 aggregation_test (field1|1|2),(field2|1|2),(field3|1|2),(field4|1|2),(field5|1|2) |
The Android Open Source Project | 38e2649 | 2009-06-12 11:14:35 -0700 | [diff] [blame] | 136 | |
Dan Egnor | 2cf6cff | 2009-06-11 15:28:59 -0700 | [diff] [blame] | 137 | # NOTE - the range 1000000-2000000 is reserved for partners and others who |
| 138 | # want to define their own log tags without conflicting with the core platform. |