Commit Graph

38707 Commits

Author SHA1 Message Date
Josh Gao 5791e21697 base: export GetThreadId.
and stop using the incorrect (on Mac) version in adb..

Test: mma
Change-Id: If28f6c8d73b03db863be13ed88df81422c3aef87
2018-03-16 15:35:52 -07:00
Jerry Zhang 99499f1740 adb: Remove usages of ENDPOINT_ALLOC
All devices that previously used ENDPOINT_ALLOC
are on the new async io routines. None of the devices
using aio_compat have ENDPOINT_ALLOC so remove the
code to stop logging failures.

Fixes: 74213465
Test: adb works
Change-Id: I0c903eb76b006b6bcce48cec24f5353fa47cc128
(cherry picked from commit 9a1be3ad0e)
2018-03-16 15:33:26 -07:00
Josh Gao 32caa9870f Merge "adb: add test for flushing socket data after a write failure." 2018-03-16 22:18:43 +00:00
Mark Salyzyn ee3c8e64dc Merge "bootstat: alias underline to space in bit error rate handling"
am: 40858e95b6

Change-Id: I8094305ff1b9610f8726d62476a5d5890f024618
2018-03-16 21:32:27 +00:00
Mark Salyzyn 07e4e9b5fc Merge "bootstat: comment out duplicate entries in kBootReasonMap"
am: 1408ceec4f

Change-Id: Ief59024678937b79200daeef5d9a1a70be43b3f1
2018-03-16 21:31:56 +00:00
Mark Salyzyn a2b4750771 Merge "bootstat: 3.18 kernel does not report "SysRq : Trigger a crash""
am: 5e2b2681ef

Change-Id: I9c3ad26c9c1a385aa2fe5bb428af5ff5c2221e00
2018-03-16 20:56:19 +00:00
Colin Cross 41e04f033f Merge "Remove test_suites: ["vts"] from memunreachable_binder_test"
am: c8e757b6dd

Change-Id: Ib5ca8bdf24e798210d417edd84449dcec52d75cd
2018-03-16 20:55:44 +00:00
Benedict Wong 3c7b751619 Merge "Set SPI Allocation Timeout to One Hour"
am: 78ca1fecef

Change-Id: I1919dd54d7c64e8a58f6397145e605ec1eb8c356
2018-03-16 20:43:23 +00:00
Mark Salyzyn a6c1ddd262 Merge "bootstat: test: regression from "Fix perfomance degredation from BootSequence atom""
am: 450b1afcb5

Change-Id: Ic9c63c3dcbd8b4345c1d3d4bb85b389f0258c39e
2018-03-16 20:39:15 +00:00
Treehugger Robot 40858e95b6 Merge "bootstat: alias underline to space in bit error rate handling" 2018-03-16 19:46:37 +00:00
Treehugger Robot 1408ceec4f Merge "bootstat: comment out duplicate entries in kBootReasonMap" 2018-03-16 19:35:24 +00:00
Treehugger Robot 5e2b2681ef Merge "bootstat: 3.18 kernel does not report "SysRq : Trigger a crash"" 2018-03-16 18:49:49 +00:00
Mark Salyzyn 25900dd772 bootstat: add support for regex in aliasReasons and powerkeys
Add support for regex in aliasReasons for the alias member.  Use this
new feature to check powerkey|power_key|PowerKey for a single entry.

Test: boot_reason_test.sh
Bug: 63736262
Change-Id: Ia6add99b9e33f3197643dbaab88dde20aa726f90
2018-03-16 11:41:17 -07:00
Treehugger Robot c8e757b6dd Merge "Remove test_suites: ["vts"] from memunreachable_binder_test" 2018-03-16 18:40:52 +00:00
Benedict Wong 78ca1fecef Merge "Set SPI Allocation Timeout to One Hour" 2018-03-16 17:45:20 +00:00
Mark Salyzyn 1e7d1c77fa bootstat: alias underline to space in bit error rate handling
When we are matching existing known boot reasons, we should try with
compliant underlines first, then again with underlines replaced with
spaces.  Replace references to Ber with BitError for maintenance
clarity.  Replace helper functions with C++11 lambdas.

Test: boot_reason_test.sh
Bug: 63736262
Change-Id: I91b865013513526a55a85523080c7127f198968c
2018-03-16 10:37:03 -07:00
Mark Salyzyn 2b820536e6 bootstat: comment out duplicate entries in kBootReasonMap
Two entries can be reused. The third "unknown" entry is not really
a duplicate since the kUnknownBootReason is not checked.  Duplicate
entries reused in the future, should have
analysis/uma/configs/clearcut/TRON/histograms.xml updated first.

Test: boot_reason_test.sh
Change-Id: If2071a18160dc2c93e851fecc6b8c11fc76c9845
2018-03-16 10:36:53 -07:00
Mark Salyzyn 853bb80e58 bootstat: 3.18 kernel does not report "SysRq : Trigger a crash"
Use an alternate means to determine that the sysrq crash was
requested.  Also, to be CTS compliant, the kernel_panic subreason
must be in lower case.

Test: boot_reason_test.sh
Bug: 74595769
Bug: 63736262
Change-Id: Ica06960ce62d220a909006e365951376d672b7e6
2018-03-16 09:39:17 -07:00
Treehugger Robot 450b1afcb5 Merge "bootstat: test: regression from "Fix perfomance degredation from BootSequence atom"" 2018-03-16 16:18:24 +00:00
Bowgo Tsai 6b31653f96 Merge "Support /odm partition"
am: 97debc7055

Change-Id: I4af59f5479a8d452dcbbb157334c416f18db5469
2018-03-16 04:06:25 +00:00
Treehugger Robot 97debc7055 Merge "Support /odm partition" 2018-03-16 03:51:28 +00:00
Christopher Ferris 5e67b426d8 Merge "Handle ARM thumb function symbols."
am: a411fc65d1

Change-Id: Iff3c8ff23fa4aec5f3e5721bf0339d3c94c1c328
2018-03-16 02:35:20 +00:00
Christopher Ferris a411fc65d1 Merge "Handle ARM thumb function symbols." 2018-03-16 02:14:10 +00:00
Bowgo Tsai 8c91e2bfbb Merge "adb: checks device state when using adb disable-verity for AVB"
am: d5fc6bdd36

Change-Id: I030049c206492ebc980a4080804f8d3e290b6487
2018-03-16 01:56:43 +00:00
Treehugger Robot d5fc6bdd36 Merge "adb: checks device state when using adb disable-verity for AVB" 2018-03-16 01:33:51 +00:00
Mark Salyzyn 7f5a562177 bootstat: test: regression from "Fix perfomance degredation from BootSequence atom"
Added --set_system_boot_reason to expected filter

Test: boot_reason_test.sh
Bug: 74595769
Bug: 63736262
Bug: 72864061
Change-Id: Ie912d097fb6468dd826fd9422758fb9fb3e1ee29
2018-03-15 16:42:31 -07:00
Josh Gao df3bae9f06 adb: add test for flushing socket data after a write failure.
Add a currently failing test that's a reduced case of the 'concurrent
adb shell' flakiness reported in b/74616284.

Bug: http://b/74616284
Test: changed #if 0 to #if 1, test fails
Change-Id: Id170a185f7c5d2ff44f772f7849a73227f9df441
2018-03-15 15:33:01 -07:00
Christopher Ferris 704ec9adba Handle ARM thumb function symbols.
ARM thumb functions will have the zero bit set to one, which can cause
function name lookups to fail.

Add an ARM special GetFunctionName that handles this condition.

Fix a couple of the function offsets in unit tests.

Bug: 74844137

Test: Ran unit tests.
Test: Ran debuggerd -b on processes on a bullhead device.
Change-Id: Ibd407db34eaaa641f91fdb4f589c44a0dcc0216a
2018-03-15 15:14:18 -07:00
Colin Cross f013b62152 Remove test_suites: ["vts"] from memunreachable_binder_test
memunreachable_binder_test is pulled in by
test/vts/tools/build/tasks/list/vts_test_bin_package_list.mk, it
doesn't need to be listed in test_suites.

Fixes warnings:
build/make/core/base_rules.mk:620: warning: overriding commands for target `out/host/linux-x86/vts/android-vts/testcases/memunreachable_binder_test'
build/make/core/base_rules.mk:620: warning: ignoring old commands for target `out/host/linux-x86/vts/android-vts/testcases/memunreachable_binder_test'

Test: vts-tradefed run commandAndExit vts -m VtsKernelBinderTest
Change-Id: Ifd282b2f5bb652295fa34ad247919eb85ea7abc8
2018-03-15 14:57:22 -07:00
Tom Cherry 573352ff05 Merge "init: add timers around sync() during shutdown"
am: 39273df651

Change-Id: Iad1e45761ebbc0a8ccd269734807bbae8ff36209
2018-03-15 20:23:16 +00:00
Tom Cherry 39273df651 Merge "init: add timers around sync() during shutdown" 2018-03-15 20:04:17 +00:00
Tom Cherry 1f9d5406b3 init: add timers around sync() during shutdown
It seems that these sync() calls may take a long time in some
occasions, so we add these logs to check.

Bug: 74817735
Test: tree hugger
Change-Id: Id3635f6c7a6618b20c7caf93b05e50cc50ef99de
2018-03-15 10:24:00 -07:00
Bowgo Tsai 8cc9c3835a adb: checks device state when using adb disable-verity for AVB
adb disable-verity will toggle a flag in /vbmeta and introduce AVB
verification error on next boot. If the device is LOCKED, it will make
the device unbootable because verification error isn't allowed when the
device is locked.

Also indicating 'adb root' when failed to get verity state.

Bug: 70969453
Test: adb disable-verity should pop-up warning if the device is locked.

Change-Id: I1ed705e34334ea2231c96b16ddb8d225067af2f0
2018-03-15 18:34:42 +08:00
Jiyong Park bde587f715 Merge "Revert "libutilscallstack is private VNDK-SP""
am: 7a72d07e40

Change-Id: Ie1a7a614e797ccf65ca4d711068718a2830f1479
2018-03-15 01:52:11 +00:00
Treehugger Robot 7a72d07e40 Merge "Revert "libutilscallstack is private VNDK-SP"" 2018-03-15 01:35:13 +00:00
Suren Baghdasaryan 3a5f6f2422 Merge changes Ida58d13d,Ia9441cc5,Id840983d,I73611593
am: 0d1d773d54

Change-Id: Ia8144010577d9759ff267e84d0ad8159b6a7135e
2018-03-14 18:26:33 +00:00
Benedict Wong 00308f8554 Set SPI Allocation Timeout to One Hour
This change increases the default expiration length of an SA to 1h. The
IPsec API expects that SPIs are allocated indefinitely, but potential
for instability requires that these get cleaned up automatically. As
such, the duration was chosen as a sane, but long timeout value.

Bug: 72316671
Test: Added CTS tests to enforce this behavior
Change-Id: I47aef9cea4a09da253b2ec048a8797af5fa25529
2018-03-14 18:24:23 +00:00
Treehugger Robot 0d1d773d54 Merge changes Ida58d13d,Ia9441cc5,Id840983d,I73611593
* changes:
  lmkd: Fix lmkd-test to work with relative paths
  lmkd: Implement lmkd-test
  lmkd: Introduce liblmkd_utils for communicating with lmkd process
  lmkd: Add support for multiple lmkd client connections
2018-03-14 16:38:21 +00:00
Bowgo Tsai 39476ffd8a Support /odm partition
Bug: 64195575
Test: boot a device
Change-Id: I52c0da32aef80c060f6efa47ddf62577fb543ad8
2018-03-14 16:19:03 +08:00
Jiyong Park 130fea3478 Revert "libutilscallstack is private VNDK-SP"
CallStack.cpp was part of libutils, but has been separated into a new
library libutilscallstack [1] and then made invisible to vendors [2].
However, this is causing problem to the vendors who have been using
the CallStack class from libutils, because the class is no longer
available to them.

In order to support them, marking libutilscallstack as
'vendor_available: true'.

This reverts commit a32678df55.

[1] https://android-review.googlesource.com/c/platform/system/core/+/591954
[2] https://android-review.googlesource.com/c/platform/system/core/+/599754
Bug: 74600214
Test: m -j
Test: 2016/2017 pixel devices boots to the UI and Photo Editing works

Change-Id: Iaa232ed978378b566a4710e2320ee6ed04572e14
2018-03-14 16:21:00 +09:00
Mark Salyzyn e963876bd0 Merge "logd: identical check access message data out of range"
am: 887d74b479

Change-Id: I81a8f1ae6ea5560d30c92c73cce9825505a56cbd
2018-03-13 22:04:35 +00:00
Treehugger Robot 887d74b479 Merge "logd: identical check access message data out of range" 2018-03-13 21:51:53 +00:00
Suren Baghdasaryan b453066e20 lmkd: Fix lmkd-test to work with relative paths
This change allows lmkd-test to work correctly when it's started
using absolute as well as relative path.

Change-Id: Ida58d13d66a224119a363f59cc59289f0167d3c9
2018-03-13 12:34:18 -07:00
Mark Salyzyn 22712428b8 logd: identical check access message data out of range
While running AddressSanitizer, binary events were fed into logd
that were smaller than the binary event string header. Fix is to
check the buffer sizes before performing the memcmp operation.

Test: compile
Bug: 74574189
Change-Id: Ic01ef6fb0725258d9f39bbdca582ed648a1adc5d
2018-03-13 12:16:39 -07:00
David Srbecky 9a3421a195 Merge "Remove libunwindstack_dex"
am: ff9b1db67c

Change-Id: I2215708be1157ffb4884a9ac0711cc63fd091262
2018-03-13 11:45:47 +00:00
David Srbecky ff9b1db67c Merge "Remove libunwindstack_dex" 2018-03-13 11:31:22 +00:00
Jaekyun Seok 8a5e67befe Merge "Export init.svc.console as an actionable property"
am: 9f5e6dbe85

Change-Id: I310e9cbbeae8594af67712b6259eeeeb6217039b
2018-03-13 01:03:08 +00:00
Treehugger Robot 9f5e6dbe85 Merge "Export init.svc.console as an actionable property" 2018-03-12 22:47:29 +00:00
Dan Willemsen 2527add41a Merge "Remove obsolete BRILLO variable"
am: dbfbf85f0c

Change-Id: I64c9e1b2dfb78af0bdddbd074398f36bdd20f327
2018-03-12 21:55:33 +00:00
Dan Willemsen dbfbf85f0c Merge "Remove obsolete BRILLO variable" 2018-03-12 21:26:03 +00:00