b7893e6fa4b3a3cff3963d357086275a57489097 |
17-Jan-2017 |
James Hawkins <jhawkins@google.com> |
bootstat: Fix false metrics due to soft reboots. Use a flag to enable/disable logging metrics, set to false during soft reboots. Bug: 32807863 Change-Id: Ib1359327af4e18d40400c29961c454f7be1b8d0c Test: None (cherry picked from commit 800ceb45b15c2b63edd4c699862653c55fe55ef2)
ootstat.rc
|
88a579a1bc70ffd6e423fe3e679c7350d6e25759 |
01-Dec-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Fix the boot complete signal for FBE devices. FBE devices suffice with bootanim=stopped, but must be gated on ro.crypto.type=file. Bug: 33049941 Test: adb reboot && adb logcat | grep bootstat < Has output Change-Id: I346d47aaf9d1d4b40f05906056849630b922a20d (cherry picked from commit e4079fbdefac654f84b091335cc67fd89d79841c)
ootstat.rc
|
16e84cc1e1c8e1b02f646226e38cdc091c3f9a1a |
14-Apr-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Calculate and log the time_since_last_boot metric. Bug: 28163811 Change-Id: I2e1350531f6a0fc891c270cfdfca6c8ad63f8040 (cherry picked from commit 2d8b3e66c6fd298bc8f4dc4e8205bb469a89a6f8)
ootstat.cpp
|
f85554e12ff1a75d4bc47ac602c9201acc43ecc6 |
28-Jul-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Fix a potential unhandled exception for malformed input. In rare cases the hardware storage on the device may be hosed and return garbage. Use ParseInt which handles bad input instead of stoi. BUG: 29334139 Change-Id: I91aedc169df110bea8097775f73dda11def22311 (cherry picked from commit 4dded613b3aaee016adffd895edf3866426fc22a)
oot_event_record_store.cpp
ootstat.cpp
|
69d2f9819785775c86137f5ff3298cd46b14a516 |
23-Mar-2016 |
Josh Gao <jmgao@google.com> |
adb: fix fd double close, Subprocess lifetime issue. This commit fixes two somewhat related issues in shell_service. - The fd returned by StartSubprocess is owned by a unique_fd contained in the Subprocess object, but also gets closed by the caller. Resolve this by duping the returned file descriptor. - A Subprocess object can be destroyed immediately after its initial construction in StartSubprocess if we're sufficiently unlucky. Split up the fork/exec and "start management thread" steps, so that we can safely do everything we need to do on the Subprocess before handing it over to the thread that'll eventually destroy it. Also includes squashed patches from AOSP master that allow for use of unique_fd inside adb. Bug: http://b/29254462 Change-Id: Id9cf0b7e7a7293bee7176919edc758597691c636 (cherry picked from commit c0e6e40cc916747a0a22c2538874348cda0ef607) (cherry picked from commit 54c72aaccc45edf4832cfdc5053d9ae6acc9bcdf) (cherry picked from commit 2c5d1d7cd914ec8ebf76c8a59d0889ebf5b538cd) (cherry picked from commit 2a7b86337f7b149887588e4df532272abe3e931c) (cherry picked from commit 13ea01db451b3993d175110a3336a58482be883d) (cherry picked from commit 344778da411ebb47966961f3a70ca0848425194f)
oot_event_record_store_test.cpp
|
2a5d4245a33280d2d2a847a0736fce1160f527ac |
09-Apr-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Differentiate system update boot times. Bug: 27454343 Change-Id: Idb2e6f55ad7dda546a486954201619bb73cee6b0 (cherry picked from commit b9cf77159a1dc7830eba28a8a3a4ac203e76ea1d)
ootstat.cpp
|
4b7138889635e716989a6f7772f185ab1d63526b |
30-Mar-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Two changes to aid in debugging TimeSinceFactoryReset. * Also log to the BootEventRecordStore to check lossiness. * Log factory_reset_current_time_failure separately. Bug: 27550578 Change-Id: Id3d579a74a59ac28290cb7d6048765519f9ba59b (cherry picked from commit fff95ba5dd9da74afe6897db1726c0b5f70e8930)
ootstat.cpp
|
6105846a0e6abe6be7d81675d13e40d4f0f6e840 |
25-Mar-2016 |
James Hawkins <jhawkins@google.com> |
Revert "Revert "bootstat: Handle v1 record files which do not contain file contents."" This reverts commit 756b6a53a7c473d04dfe1e28b9deaa40a71e5818. The change is updated to use utimes (instead of futimens) since only support for seconds resolution is required. Bug: 27836969 Change-Id: I7134f759fb643e1a149158fcf6e20f76538b57d3 (cherry picked from commit c0dc139b4a311e0c04af5713c064de13da76c354)
oot_event_record_store.cpp
oot_event_record_store.h
oot_event_record_store_test.cpp
|
77fc4bac4e8888fbfeba43c6954a894945fc2511 |
28-Mar-2016 |
James Hawkins <jhawkins@google.com> |
Revert "bootstat: Handle v1 record files which do not contain file contents." This reverts commit 13b42bf8a80b600c0f3aec93c1fb6802026d3e43. I accidentally merged the wrong version of this change (this version had to be reverted on master). Change-Id: I651e3bf50515daed08464a49ace2eefefdad89c0
oot_event_record_store.cpp
oot_event_record_store.h
oot_event_record_store_test.cpp
|
13b42bf8a80b600c0f3aec93c1fb6802026d3e43 |
25-Mar-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Handle v1 record files which do not contain file contents. Bug: 27836969 Change-Id: I18fcdab7ca32d00af3f8827f42d47868492ed719 (cherry picked from commit 84fda19c835219a320e79680acef059c3ebc2621)
oot_event_record_store.cpp
oot_event_record_store.h
oot_event_record_store_test.cpp
|
e8e8cf3f9509808b23506597d23212ac972d1393 |
22-Mar-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Track record inconsistencies w/ a debug metric, bootstat_mtime_matches_content. Fixed a file descriptor leak while I was in here. Bug: 27550578 Change-Id: I8e252e4f5bb3c4e2ae96a1560fbb32ae636722a0 (cherry picked from commit 6f28299d0d10a7c397d563dc8293dacf6acadc04)
ndroid.mk
oot_event_record_store.cpp
ootstat.cpp
istogram_logger.cpp
istogram_logger.h
|
eef069acc58a55f8f9c028b6d9a737d7b1851354 |
11-Mar-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Disambiguate boot time on encrypted devices. This change introduces new metrics to discern boot time on encrypted devices: * post_decrypt_time_elapsed * boot_decryption_complete * boot_complete_post_decrypt * boot_complete_no_encryption Bug: 27497357 Change-Id: I8d3a411029bd6a45f80589ff67c408593e133a87 (cherry picked from commit c08e996ac86bc0a27a754c1fddc4bda535f7e49f)
ndroid.mk
oot_event_record_store.cpp
oot_event_record_store_test.cpp
ootstat.cpp
ootstat.rc
ptime_parser.cpp
ptime_parser.h
|
6b930bf06076644b6b4456ee5eac01f1e1048132 |
09-Mar-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Add more debug logging metrics to RecordFactoryReset. In an effort to track down the source of some wonky data being reported. Bug: 27550578 Change-Id: I1f08447c0203e7982d1b44bc04b531e96358c223 (cherry picked from commit 0660b307b869c76696adac35b14c3cfe91592c2a)
ootstat.cpp
|
a69e45f93ac3ceaa79ae61c1b70d9eb745061925 |
08-Mar-2016 |
James Hawkins <jhawkins@google.com> |
Merge "bootstat: Gate boot time metrics logging on an encrypted device being decrypted." into nyc-dev
|
7763bcb1b8e9d44c61cd8c23e6d83f3eee29fdc3 |
03-Mar-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Gate boot time metrics logging on an encrypted device being decrypted. This prevents double-counting boot metrics for encrypted devices. Bug: 27454346 Change-Id: If63dd421e4f91a01b43d730d59896544a26d138a (cherry picked from commit 5e655f02c5e772447254d68a5b299a625399f3cb)
ootstat.rc
|
e501044c468997004f24208d243ab66d6276dc18 |
03-Mar-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Don't log time_since_factory_reset on device reset. The zero value is meaningless and skews the histogram buckets. Bug: 27477664 Change-Id: Idd641aa3005819905a2ecf664d2a5781dbbff59b (cherry picked from commit 3bf9b147f261b08abfa6ca59064e35b434201202)
ootstat.cpp
|
c0188da289969db7e814bacdac83e37afa6849c3 |
24-Feb-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Record the time since factory reset on init. Bug: 25448351 Change-Id: I71905a598e74f41c18a96d469c7a6ddd5a2e07fb (cherry picked from commit 53684ea625b9cff34f9cdb2d4bae4cd25538ca3b)
EADME.md
ootstat.cpp
ootstat.rc
|
35349148e18a3fb86cf3a3e253359af44a2396a8 |
17-Feb-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Record metrics for factory_reset and time_since_factory_reset. Bug: 25448351 Change-Id: I9b3a557317bc256a078f76e2b65d16bc071e4a6a (cherry picked from commit 500d71566aa74b01fce729205b02a166bcf203f7)
oot_event_record_store.cpp
oot_event_record_store.h
oot_event_record_store_test.cpp
ootstat.cpp
|
ee79e73373012a2d7ebd57ff87b2a3d229c8da0b |
13-Feb-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Add a few more bootreasons and rebase the index against index 1. This is necessary to match the mapping in the internal infrastructure. Bug: 21724738 Change-Id: I292166ff5c0dea7f3d771627120f16af4c56073b (cherry picked from commit 6f74c0b8433626a8565c07ba7fd2cb4fdebba880)
ootstat.cpp
|
10f54be6d01c5e90540f4a83a76aef120bff782f |
10-Feb-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Add support for logging the boot_reason metric. This value is read from the ro.boot.bootreason system property. Bug: 21724738 Change-Id: I43bef3d85ba9c8d87669a91da1aa675d9a86e348 (cherry picked from commit a4a1a4ac8556fd9550d5b6c916546519b3641fb0)
ndroid.mk
EADME.md
oot_event_record_store.cpp
oot_event_record_store.h
oot_event_record_store_test.cpp
ootstat.cpp
ootstat.rc
|
dac84b5a1adf75fd81a7456faac7bf3953e8276a |
26-Jan-2016 |
James Hawkins <jhawkins@google.com> |
Merge "bootstat: Hook up bootstat to record the boot complete signal and log boot events in the LOCAL_INIT_RC file, bootstat.rc."
|
6bff639c1999a392e15a35e62d84337441db9fe0 |
22-Jan-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Hook up bootstat to record the boot complete signal and log boot events in the LOCAL_INIT_RC file, bootstat.rc. This change also creates the /data/misc/bootstat dir during the filesystem creation block in init.rc. Bug: 21724738 Change-Id: I2ad6913c0235d5f926c6ef8b3c65d650159c6ed7
ndroid.mk
ootstat.rc
|
5699ee889ab8e355cf33c29d54633e9f56743310 |
23-Jan-2016 |
Ian Pedowitz <ijpedowitz@google.com> |
Removing -std=c++14 from bootstat Android.mk From comments in 7e04be06d174771e2e4c5e037e432d67b8d8b805, this is not needed. Change-Id: I427efac8d5e0750ea5f4e77e1582d134d9cae089
ndroid.mk
|
7e04be06d174771e2e4c5e037e432d67b8d8b805 |
23-Jan-2016 |
Rom Lemarchand <romlem@android.com> |
bootstat: Use Clang and c++14 standard Change-Id: Ic156eea4d8731e67b26da0a56a7e69b13df659cb
ndroid.mk
|
5cd4bc299b9a6ab5c19c4252bc4afc7f6701497a |
22-Jan-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Fix the build on git_mnc-dr1.5-dev-plus-aosp by adding missing C++ includes Bug: 21724738 Change-Id: I27e1e8d7897302a1f2d1e4d44c226450194f1933
oot_event_record_store.cpp
vent_log_list_builder.cpp
|
6d0d12a9d8fea7569ff1e054365c0fcebdca8f84 |
20-Jan-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Followup cleanups from the initial bootstat checkin. * Clarify the README.md that the logs data may be utilized by anyone. * Fix a whitespace issue. Bug: 21724738 Change-Id: Id472485f505afb14588ccd645844a3f4a728abc2
EADME.md
oot_event_record_store_test.cpp
|
eabe08b55eb7a8eceda02d302cea4d4f216e0d53 |
20-Jan-2016 |
James Hawkins <jhawkins@google.com> |
bootstat: Fix the base includes to be AOSP-friendly. Change-Id: I625cc55b41f5258addf3bb74bcef42063c565465 Bug: 21724738
oot_event_record_store.cpp
oot_event_record_store.h
oot_event_record_store_test.cpp
ootstat.cpp
vent_log_list_builder.cpp
vent_log_list_builder.h
estrunner.cpp
|
abd73e617970e2e4cb390d5f66cfd0dda57579d8 |
20-Jan-2016 |
James Hawkins <jhawkins@google.com> |
system/core: Add initial implementation of the bootstat command. The bootstat command enables the measurement and logging of boot time metrics for GMS devices. BUG:21724738 Change-Id: I331456dd38a60fb4ef24a4d5320909dbad30db66
ndroid.mk
EADME.md
oot_event_record_store.cpp
oot_event_record_store.h
oot_event_record_store_test.cpp
ootstat.cpp
vent_log_list_builder.cpp
vent_log_list_builder.h
vent_log_list_builder_test.cpp
estrunner.cpp
|