Commit Graph

36695 Commits

Author SHA1 Message Date
Mark Salyzyn 007240daca Merge "bootstat: refine kernel panic details" am: 22a10f6766 am: 088fed7bb5
am: 7b25ef1ca8

Change-Id: Ibd4b27756b251fe14e71dfedcdccb517d2246aa6
2017-09-20 15:02:55 +00:00
Mark Salyzyn 7b25ef1ca8 Merge "bootstat: refine kernel panic details" am: 22a10f6766
am: 088fed7bb5

Change-Id: Ib31381d3eb39867f5e18c00833c02c903e037b70
2017-09-20 15:00:54 +00:00
Mark Salyzyn 088fed7bb5 Merge "bootstat: refine kernel panic details"
am: 22a10f6766

Change-Id: Ifcc5ceb11a6dfef8c6d4ee9951e943c0a5fc55bb
2017-09-20 14:55:20 +00:00
Mark Salyzyn 22a10f6766 Merge "bootstat: refine kernel panic details" 2017-09-20 14:45:17 +00:00
Tom Cherry 242f47d544 Merge "init: fix typo" am: 15a14d1ad9 am: 00a15fc9bf
am: 707a5ad27a

Change-Id: I3ae60ec3703ae653929d5e5bfb6f3cefd300b28a
2017-09-20 00:48:32 +00:00
Tom Cherry 707a5ad27a Merge "init: fix typo" am: 15a14d1ad9
am: 00a15fc9bf

Change-Id: I9aa06a67b378c1fa0b394f6ea2b924b32476a504
2017-09-20 00:46:31 +00:00
Tom Cherry 00a15fc9bf Merge "init: fix typo"
am: 15a14d1ad9

Change-Id: I3805f03671f0ed09320df88b96b5cd958a9f742d
2017-09-20 00:45:07 +00:00
Treehugger Robot 15a14d1ad9 Merge "init: fix typo" 2017-09-20 00:35:30 +00:00
Mark Salyzyn 6461089bf8 bootstat: refine kernel panic details
If bootloader reports kernel_panic, gives us permission for a
deeper check of which kind occurred.  Resolve a problem with
some kernels that do not have the 'sysrq: SysRq :' log stutter.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: Idb8978de7a4f4e3c671c6ab7efc5ebe841f7bbd8
2017-09-19 16:30:05 -07:00
James Hawkins 7d6324a78e Merge "libmetricslogger: Fix one incorrect (deprecated) logtag and one duplicate logtag." am: 8f3989b820 am: ae4ae45ca7
am: 81579a09bc

Change-Id: I6d34bbeb338732e8fe6f818a0f5bea5f3d7fd552
2017-09-19 22:53:23 +00:00
James Hawkins 81579a09bc Merge "libmetricslogger: Fix one incorrect (deprecated) logtag and one duplicate logtag." am: 8f3989b820
am: ae4ae45ca7

Change-Id: I4db57229f437647b5fb5abefd249edf98253b041
2017-09-19 22:52:17 +00:00
James Hawkins ae4ae45ca7 Merge "libmetricslogger: Fix one incorrect (deprecated) logtag and one duplicate logtag."
am: 8f3989b820

Change-Id: I53da00a3015fc28bfc259960ae2b28ae00c22f3e
2017-09-19 22:50:17 +00:00
Treehugger Robot 8f3989b820 Merge "libmetricslogger: Fix one incorrect (deprecated) logtag and one duplicate logtag." 2017-09-19 22:39:25 +00:00
Tom Cherry a141907ecf init: fix typo
Test: build
Change-Id: I2f6ff60356087f9fd6c6f24e3923d70b9e93dcf8
2017-09-19 13:13:17 -07:00
James Hawkins 2dcca295a6 libmetricslogger: Fix one incorrect (deprecated) logtag and one
duplicate logtag.

Bug: 65841976
Bug: 65961260
Test: none
Change-Id: I6491c3c05e3a56b45d4a77cfa83f8e14eb226e64
2017-09-19 12:03:47 -07:00
Tom Cherry 8b4315330e Merge "init: use protobuf for serialization of persistent properties" am: f5dba11085 am: 61b81a0341
am: 74c45a41cc

Change-Id: I517f2cbd9c0c2bde93ccb65afe8933e8294ff1ae
2017-09-19 17:20:29 +00:00
Tom Cherry 74c45a41cc Merge "init: use protobuf for serialization of persistent properties" am: f5dba11085
am: 61b81a0341

Change-Id: I65fa2e2d610b68ef4b3adc751cfaa58856323762
2017-09-19 17:18:59 +00:00
Tom Cherry 61b81a0341 Merge "init: use protobuf for serialization of persistent properties"
am: f5dba11085

Change-Id: I6177b5b86290a50884f6212d45a09604b69cffd6
2017-09-19 17:16:59 +00:00
Tom Cherry f5dba11085 Merge "init: use protobuf for serialization of persistent properties" 2017-09-19 17:07:00 +00:00
Tom Cherry a97faba653 init: use protobuf for serialization of persistent properties
I probably should have done this from the start...  There's a shim to
convert my manually serialized format to protobuf, and since that has
not yet shipped, it'll be reverted in a short period of time.

Test: init unit tests
Test: upgrade from legacy and intermediate property formats successfully
Change-Id: Iad25f6c30d0b44d294230a53dd6876222d1c785b
2017-09-19 09:56:31 -07:00
Mark Salyzyn 67cb93ece1 Merge "bootstat: reduce overall boot time" am: e42278d114 am: c19c573b74
am: a7fb1a934a

Change-Id: I41da6e5eaaf4a698b06bed8fb707c9e6287ff93d
2017-09-19 14:49:19 +00:00
Mark Salyzyn a7fb1a934a Merge "bootstat: reduce overall boot time" am: e42278d114
am: c19c573b74

Change-Id: Ia6e4983fd6cdc4fc77ae492b436b5c707ed72997
2017-09-19 14:47:49 +00:00
Mark Salyzyn c19c573b74 Merge "bootstat: reduce overall boot time"
am: e42278d114

Change-Id: I1cea97eacb8671a30c36f271c33a328aad4ea2ae
2017-09-19 14:45:48 +00:00
Mark Salyzyn 0237864398 Merge "bootstat: battery test fails on QC devices" am: 834e89c25a am: 808d1d4f80
am: 0ce7bc4332

Change-Id: Id03f6c713003cfbf28f6e936fba2a87ce82e9232
2017-09-19 14:45:02 +00:00
Mark Salyzyn b32a04436a Merge "bootstat: bootloader stat files misspelled" am: b04f454216 am: 2c1ecaa540
am: 4ccde7c4b8

Change-Id: Ic23826a0662e505d52112ae2f783df897b0691e6
2017-09-19 14:44:32 +00:00
Mark Salyzyn 47e4866d4a Merge "bootstat: reboot cold, warm and hard tests failed" am: ae054903af am: 0d8863f6a5
am: eb0e45c602

Change-Id: Iaefec65b06e5d8d503ab2f4c8fd1f21d41f8dc49
2017-09-19 14:43:49 +00:00
Mark Salyzyn 0ce7bc4332 Merge "bootstat: battery test fails on QC devices" am: 834e89c25a
am: 808d1d4f80

Change-Id: I7712a717995d5e702a186fe6c9762692ecb479b9
2017-09-19 14:42:45 +00:00
Mark Salyzyn 4ccde7c4b8 Merge "bootstat: bootloader stat files misspelled" am: b04f454216
am: 2c1ecaa540

Change-Id: I6b701d64555ebd1cdd87cbb5dae7e78249229538
2017-09-19 14:42:16 +00:00
Mark Salyzyn eb0e45c602 Merge "bootstat: reboot cold, warm and hard tests failed" am: ae054903af
am: 0d8863f6a5

Change-Id: I7dc05af0b63bcc9ee828162a6930834ebe56a699
2017-09-19 14:41:49 +00:00
Mark Salyzyn 808d1d4f80 Merge "bootstat: battery test fails on QC devices"
am: 834e89c25a

Change-Id: I09dcbce33600fa9d2126300de10416400c82cb60
2017-09-19 14:40:58 +00:00
Mark Salyzyn 2c1ecaa540 Merge "bootstat: bootloader stat files misspelled"
am: b04f454216

Change-Id: I78d23ab58f2cad26af698f8a65a140797cddaf5c
2017-09-19 14:40:22 +00:00
Mark Salyzyn e42278d114 Merge "bootstat: reduce overall boot time" 2017-09-19 14:40:14 +00:00
Mark Salyzyn 0d8863f6a5 Merge "bootstat: reboot cold, warm and hard tests failed"
am: ae054903af

Change-Id: I39805b14c6a9e5f9800f2240e2063add1b846877
2017-09-19 14:39:51 +00:00
Mark Salyzyn 834e89c25a Merge "bootstat: battery test fails on QC devices" 2017-09-19 14:38:39 +00:00
Mark Salyzyn 557a9d4054 bootstat: reduce overall boot time
Run bootstat as a oneshot service rather than as a series of inline
exec commands.  exec commands impact boot time.

Test: cts-tradefed run cts-dev --module CtsBootStatsTestCases
      system/core/bootstat/boot_reason_test.sh all
         (make sure it filters out new init reports)
Bug: 65736247
Change-Id: Ic9d509a8cbee4bc1e278081de1001e25ae0915fd
2017-09-19 07:36:34 -07:00
Mark Salyzyn 8a30fcabcb bootstat: battery test fails on QC devices
Send the message multiple times into the last dmesg log so that one
may be picked up without data corruption.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: Ie42ad1940b1eb4915e4cf6cc61815d0275a70ffe
2017-09-19 07:36:34 -07:00
Mark Salyzyn b04f454216 Merge "bootstat: bootloader stat files misspelled" 2017-09-19 14:35:36 +00:00
Mark Salyzyn 25246ddfe6 bootstat: bootloader stat files misspelled
Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: I6620c9965f4af8b6a3829f1f4cdcc9b691471a71
2017-09-19 14:34:42 +00:00
Mark Salyzyn ae054903af Merge "bootstat: reboot cold, warm and hard tests failed" 2017-09-19 14:32:57 +00:00
Android Build Merger (Role) 140fef0bd4 Merge "Simplify lmkd functionality am: 19e26708c2" into oc-mr1-dev-plus-aosp 2017-09-18 21:42:41 +00:00
Tom Cherry 6a842f9883 Merge "init: add exec_background command" am: 424ed42fb4 am: a6d75117e2
am: a53db4220f

Change-Id: I8e718e5647908c7dc98bf8ca7e398f73808a7d43
2017-09-18 21:42:08 +00:00
Robert Benea fc2b942cf3 Simplify lmkd functionality
am: 19e26708c2

Change-Id: Ic3a375d9eeb37f9aea7c4d52235e6d32ed7e00fd
2017-09-18 21:42:08 +00:00
Tom Cherry a53db4220f Merge "init: add exec_background command" am: 424ed42fb4
am: a6d75117e2

Change-Id: Ib912b0423493662faf6bc20718ef4f6e0d4fd545
2017-09-18 21:39:41 +00:00
Tom Cherry a6d75117e2 Merge "init: add exec_background command"
am: 424ed42fb4

Change-Id: I9529146ea9b29b2fb2e2c92f3533efc4e3106943
2017-09-18 21:37:38 +00:00
Tom Cherry 424ed42fb4 Merge "init: add exec_background command" 2017-09-18 21:33:26 +00:00
Mark Salyzyn 08b0256ea1 bootstat: reboot cold, warm and hard tests failed
If the bootloader insists on reporting reboot for cold, warm and
hard, we need to reconstruct canonical reason from the
persist.sys.boot.reason property.

Some log lines contained bootstate, letting their noise through
during testing, changed regex to look for bootstat[^e].

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: I3788c6cf8aca7fc73dd01bf95acb596d18ed7ee4
2017-09-18 21:03:10 +00:00
James Hawkins 921b1340cf Merge "bootstat: Log the ro.boot.bootreason property through the new platform_reason Tron field." am: 2fb5fa336b am: 52fe6feeb4
am: 8440d77a5f

Change-Id: Iaa77ceb44b8ab144a6a7a3332e07ac1818a0755a
2017-09-18 20:35:08 +00:00
James Hawkins 8440d77a5f Merge "bootstat: Log the ro.boot.bootreason property through the new platform_reason Tron field." am: 2fb5fa336b
am: 52fe6feeb4

Change-Id: Ic84b6b0beab9adcbc166cf52d8ea5b1a4c05d772
2017-09-18 20:18:42 +00:00
James Hawkins 52fe6feeb4 Merge "bootstat: Log the ro.boot.bootreason property through the new platform_reason Tron field."
am: 2fb5fa336b

Change-Id: I8f719dab152697f6159ea5dc395258e7598e3208
2017-09-18 20:11:09 +00:00
Treehugger Robot 2fb5fa336b Merge "bootstat: Log the ro.boot.bootreason property through the new platform_reason Tron field." 2017-09-18 19:36:40 +00:00