Commit Graph

59638 Commits

Author SHA1 Message Date
Nikita Ioffe 3143c5c28a Merge "Add reason why userspace reboot shutdown sequence failed" into rvc-dev am: eb3f92f1ba
Change-Id: I6d8a9d0776bea7ef92174845cda1f9b5e8d1c315
2020-05-01 10:58:18 +00:00
Nikita Ioffe dc3985f52b Merge "Reject services that are both critical and oneshot" into rvc-dev am: d172618e38
Change-Id: I6a17d256b26c28b0cb88d85f6c3c72e36db313fb
2020-05-01 10:57:43 +00:00
Nikita Ioffe eb3f92f1ba Merge "Add reason why userspace reboot shutdown sequence failed" into rvc-dev 2020-05-01 10:42:49 +00:00
Nikita Ioffe d172618e38 Merge "Reject services that are both critical and oneshot" into rvc-dev 2020-05-01 10:42:41 +00:00
android-build-team Robot 953d73aef7 Snap for 6450912 from 6697ea52ec to mainline-release
Change-Id: I99ee1d9c7a215a6269d5256a6a95f7e3fcd2aed2
2020-05-01 07:03:54 +00:00
yongcheol.lee 6697ea52ec Restore fastboot delete-logical-partition command for VTS am: 65e8e3803e am: 221de15b07 am: 4616cd736f
Change-Id: Ia0d4b1e6e705034f93c19a17d180af7e459042e0
2020-05-01 00:03:19 +00:00
yongcheol.lee 4616cd736f Restore fastboot delete-logical-partition command for VTS am: 65e8e3803e am: 221de15b07
Change-Id: I13bd23587db103c6d62755fed400f219b7d48d1e
2020-04-30 23:48:14 +00:00
yongcheol.lee 221de15b07 Restore fastboot delete-logical-partition command for VTS am: 65e8e3803e
Change-Id: Ia2af9b5c733538b1e2a82a286514657b4bb47b80
2020-04-30 23:35:31 +00:00
yongcheol.lee 65e8e3803e Restore fastboot delete-logical-partition command for VTS
1. delete-logical-partition was deleted
	- After merge "Don't require bootloader fastboot for VTS compliance." commit, delete-logical-partition sequence was deleted in LogicalPartitionCompliance test. "create-logical-partition failed" is occurred when run vts fastbootverification module. So restore this sequence.


Test: run vts -m VtsFastbootVerification
Bug: 153913610

Signed-off-by: Yongcheol LEE <yongcheol09.lee@lge.com>
Change-Id: I00366b281eafa5677b0941419a86f2702fb3484b
Merged-In: I00366b281eafa5677b0941419a86f2702fb3484b
2020-04-30 21:52:07 +00:00
Nikita Ioffe a4e83ad3d7 Add reason why userspace reboot shutdown sequence failed
Test: atest CtsUserspaceRebootHostSideTestCases
Bug: 154772075
Change-Id: I7e4674c474189b0185c020e3e066aea5678d7428
2020-04-30 22:37:15 +01:00
Nikita Ioffe 6a3c94b3aa Reject services that are both critical and oneshot
Test: atest CtsInitTestCases
Test: builds
Test: device boots
Bug: 155275196
Change-Id: I1bb9099371bd1a3f339396ef343c49b054fcef66
2020-04-30 19:52:43 +01:00
TreeHugger Robot fcd33f7cfc Merge "logd: disable flaky logd.timeout test" into rvc-dev am: 090eb40355 am: 45339b236d am: 0167df0fe8
Change-Id: I26aadd0ff4c2562f8cbeb6c72e384e2d8217aee9
2020-04-30 17:51:07 +00:00
TreeHugger Robot 0167df0fe8 Merge "logd: disable flaky logd.timeout test" into rvc-dev am: 090eb40355 am: 45339b236d
Change-Id: Iffa181f87f782d6f228906580c133a46152da989
2020-04-30 17:32:26 +00:00
TreeHugger Robot 45339b236d Merge "logd: disable flaky logd.timeout test" into rvc-dev am: 090eb40355
Change-Id: I5fdaeb0060d71343d0f78832ea001ec076c755aa
2020-04-30 17:09:57 +00:00
TreeHugger Robot 090eb40355 Merge "logd: disable flaky logd.timeout test" into rvc-dev 2020-04-30 16:46:38 +00:00
Elliott Hughes d90237d76c Avoid zero-initializing our most-used buffers. am: 08929cc389 am: 9d63c3f8c5 am: 019c7ae0b9
Change-Id: Ic9b865233053b800add8c7e28e8355b1bc2ef1c6
2020-04-30 15:51:45 +00:00
Elliott Hughes 019c7ae0b9 Avoid zero-initializing our most-used buffers. am: 08929cc389 am: 9d63c3f8c5
Change-Id: I624840f90a1241c6baf8f81234edf9401c4b05d6
2020-04-30 15:41:24 +00:00
Tom Cherry 98a2724fbc logd: disable flaky logd.timeout test
This test is repeatedly seen to be flaky.  Disable it until we can run
tests against a dedicated logd instance.

Bug: 155146087
Test: logd-unit-tests
Merged-In: I0cd953955f613e40d17df73f70543d7d2f0925b6
Change-Id: I0cd953955f613e40d17df73f70543d7d2f0925b6
(cherry picked from commit 25a4d708e2)
2020-04-30 08:39:09 -07:00
Elliott Hughes 9d63c3f8c5 Avoid zero-initializing our most-used buffers. am: 08929cc389
Change-Id: I0674d4880ae0596a9ebf4e448d72eaacaf0ca99e
2020-04-30 15:25:56 +00:00
Kyle Lin 106d6fe775 rootdir: init.rc: mount tracefs
Bug: 153849221
Test: build and try to capture the trace by perfetto and systrace
Change-Id: Ie8a13e12038bd66afcd264079a2c5f25daaa20ee
Merged-In: Ie8a13e12038bd66afcd264079a2c5f25daaa20ee
(cherry picked from commit 9d19a05422)
2020-04-30 22:04:37 +08:00
Elliott Hughes 08929cc389 Avoid zero-initializing our most-used buffers.
The StringPrintf one is heavily used and brings the overhead versus
fmtlib down to 1.5x rather than 2x. I don't have a convenient benchmark
for the other two.

Test: libbase tests & benchmarks
Bug: http://b/155324241
Change-Id: I9e704a360846d5520c53f668e7c315b0c0ea55f8
(cherry picked from commit 8c253d4d42)
2020-04-29 16:49:13 -07:00
Jeffrey Huang df5f2781a6 Merge "Add test for AStatsSocket_close()" into rvc-dev am: 053ade4320 am: c57b3a654c am: 16ffdd9721
Change-Id: I7b96f42ce8fafe63a42e6e49acbb6a26959a1f05
2020-04-29 19:28:38 +00:00
Jeffrey Huang 16ffdd9721 Merge "Add test for AStatsSocket_close()" into rvc-dev am: 053ade4320 am: c57b3a654c
Change-Id: I1580f3d8e44eb65a408ae1a08e0fa71bd7497311
2020-04-29 19:15:03 +00:00
Jeffrey Huang c57b3a654c Merge "Add test for AStatsSocket_close()" into rvc-dev am: 053ade4320
Change-Id: I562ba4b9bffb459b204839452e4f07eff5031256
2020-04-29 18:58:39 +00:00
Tom Cherry 0ce45f8a98 Merge "liblog: remove Rwlocks for logd_socket and pmsg_fd" into rvc-dev am: 03ead14288 am: 178a714b88 am: a42ea365b1
Change-Id: Id317c7b0ea6d8bd762ac2854f5847b9dc69bcf76
2020-04-29 18:48:52 +00:00
Tom Cherry 0afef6921c init: fix restarting of subcontext am: e70c28bdad am: 18603dab4e am: 497026f429
Change-Id: I344d2c15543d75d00e58e069817a2c0a483df952
2020-04-29 18:47:46 +00:00
Jeffrey Huang 053ade4320 Merge "Add test for AStatsSocket_close()" into rvc-dev 2020-04-29 18:46:26 +00:00
Tom Cherry a42ea365b1 Merge "liblog: remove Rwlocks for logd_socket and pmsg_fd" into rvc-dev am: 03ead14288 am: 178a714b88
Change-Id: Id520589867b2d74a515fdaadeb9f15da9f3e1b74
2020-04-29 18:35:36 +00:00
Tom Cherry 497026f429 init: fix restarting of subcontext am: e70c28bdad am: 18603dab4e
Change-Id: If6e4797c331d7a5a625a6d13c28c46626f89dd86
2020-04-29 18:34:28 +00:00
Tom Cherry 178a714b88 Merge "liblog: remove Rwlocks for logd_socket and pmsg_fd" into rvc-dev am: 03ead14288
Change-Id: I77df9c4c1f4d5bbf34f4e96d42ebb9343ef446c5
2020-04-29 17:48:38 +00:00
Tom Cherry 18603dab4e init: fix restarting of subcontext am: e70c28bdad
Change-Id: I50ca8c3852473b666909603e9b3471fd237f00b5
2020-04-29 17:48:23 +00:00
Tom Cherry 03ead14288 Merge "liblog: remove Rwlocks for logd_socket and pmsg_fd" into rvc-dev 2020-04-29 17:46:59 +00:00
Tom Cherry 561c8a9aa6 Merge "base: reimagine line splitting in logger.cpp" into rvc-dev am: 806c0206b8 am: 711bf7d7d4 am: 9bc3bb9667
Change-Id: Ib1698eed00d958142461bc8702be7dc086c18ad7
2020-04-29 15:58:27 +00:00
Tom Cherry e70c28bdad init: fix restarting of subcontext
When the subcontext code was redone to allow only one subcontext
(vendor_init), the code for restarting it and for terminating it
during shutdown was not updated, resulting in it not working.

Bug: 155203339
Test: kill subcontext init and notice it restart
Test: subcontext init stops during shutdown
Merged-In: Ib77f59d1e7be0ffcfd3f31c8450dc022c20bb322
Change-Id: Ib77f59d1e7be0ffcfd3f31c8450dc022c20bb322
(cherry picked from commit e3e77d382f)
2020-04-29 08:41:21 -07:00
Tom Cherry 9bc3bb9667 Merge "base: reimagine line splitting in logger.cpp" into rvc-dev am: 806c0206b8 am: 711bf7d7d4
Change-Id: Icb82afa84aae92519d3dc658f53fe1797924d7b3
2020-04-29 15:40:49 +00:00
Tom Cherry 61910f123f liblog: remove Rwlocks for logd_socket and pmsg_fd
These historically used atomics to manage their lifetime.  They were
unfortunately unsafe and later replace with a RwLock.  A lock is
also problematic as it is too heavy weight for the typical use case
and implies that logging is neither async nor fork safe.

This change returns us to using atomics with two key changes:
1) compare_exchange_strong() is used instead of atomic_exchange().
   The latter has a race condition where a separate thread could have
   read the atomic value into a register, while the thread performing
   the atomic_exchange closes that FD.  The new code only changes the
   FD in the atomic if it is uninitialized.
2) Using the fact that DGRAM sockets can have connect() called on them
   multiple times, it uses a single logd_socket for the duration of
   the program.

These sockets are thread/async/fork safely created and accessed.

The one caveat is __android_log_close(), which is intended only to be
used by zygote when it is single threaded and is therefore not thread
safe.  It will close this socket and reset the underlying variable,
such that the next log message will go through the above
initialization.

Bug: 65062446
Test: logging works, logging unit tests
Test: new unit test
Merged-In: Ia4dbf7479dbe50683d124558ab2f83bff53b8f5f
Change-Id: Ia4dbf7479dbe50683d124558ab2f83bff53b8f5f
(cherry picked from commit 7acfba274c)
2020-04-29 08:39:26 -07:00
Tom Cherry 711bf7d7d4 Merge "base: reimagine line splitting in logger.cpp" into rvc-dev am: 806c0206b8
Change-Id: I145322010f5de413eba5aa9086cffae0a5f0e96a
2020-04-29 15:24:52 +00:00
Tom Cherry 806c0206b8 Merge "base: reimagine line splitting in logger.cpp" into rvc-dev 2020-04-29 15:05:36 +00:00
Jiyong Park a2606921b2 Set apex_available property
The marked library(ies) were available to the APEXes via the
hand-written whitelist in build/soong/apex/apex.go. Trying to remove the
whitelist by adding apex_available property to the Android.bp of the
libraries.

Bug: 150999716
Test: m
Change-Id: I54db09314c7236a227f04281a439c1d5dc56ef2c
2020-04-29 17:01:15 +09:00
android-build-team Robot 7bdcb68d81 Snap for 6441286 from 58f584cb6d to mainline-release
Change-Id: Ic5f3169676ca666aba341c16e3be85bc068d8f2e
2020-04-29 07:12:54 +00:00
TreeHugger Robot 7be560ad61 Merge "libbase/liblog: set min_sdk_version" into rvc-dev am: 8d24215d33 am: 00ff629944 am: 777fba3823
Change-Id: I6d693748004545f65c68ae472cf24c2e0b564cf8
2020-04-29 06:20:19 +00:00
TreeHugger Robot 777fba3823 Merge "libbase/liblog: set min_sdk_version" into rvc-dev am: 8d24215d33 am: 00ff629944
Change-Id: Ib289c89f541ba04dfdeb3e9c5ab35f2a8874dc0b
2020-04-29 06:07:00 +00:00
TreeHugger Robot 00ff629944 Merge "libbase/liblog: set min_sdk_version" into rvc-dev am: 8d24215d33
Change-Id: Ibb1a65c661643887b7fd6a971a63f0ee33c0d10b
2020-04-29 05:54:41 +00:00
TreeHugger Robot 8d24215d33 Merge "libbase/liblog: set min_sdk_version" into rvc-dev 2020-04-29 05:45:30 +00:00
TreeHugger Robot 58f584cb6d Merge "Moves some shared_libs to static_libs for vts_libsnapshot_test." into rvc-dev am: 1e8f30f919 am: 30dbf609ab am: e1f9a877fa
Change-Id: Ia9ab71a182920b41da3fafcc28e691dd23343e69
2020-04-28 23:54:15 +00:00
TreeHugger Robot e1f9a877fa Merge "Moves some shared_libs to static_libs for vts_libsnapshot_test." into rvc-dev am: 1e8f30f919 am: 30dbf609ab
Change-Id: Ie5d84957ff2bacfdbd8bbdd27b7621569c25bea7
2020-04-28 23:41:22 +00:00
TreeHugger Robot 30dbf609ab Merge "Moves some shared_libs to static_libs for vts_libsnapshot_test." into rvc-dev am: 1e8f30f919
Change-Id: I72bf111417defab141970cb158024da0425dae8e
2020-04-28 23:24:24 +00:00
TreeHugger Robot 1e8f30f919 Merge "Moves some shared_libs to static_libs for vts_libsnapshot_test." into rvc-dev 2020-04-28 23:14:33 +00:00
David Anderson 6e8ae6d2b2 libfiemap: Ignore userdata requirements in fiemap_writer_test when running a DSU.
The test is guaranteed to fail because userdata is itself a fiemap-backed device.

Bug: 154447105
Test: fiemap_writer_test on DSU
Change-Id: Ied35da0eb7aba3daca7ed430f006bf1e90e21dca
Merged-In: Ied35da0eb7aba3daca7ed430f006bf1e90e21dca
2020-04-28 15:28:39 -07:00
Jeffrey Huang 6cc1d41527 Add test for AStatsSocket_close()
Bug: 154871176
Test: atest libstatssocket_test
Change-Id: If8aa26a9a9a75382b6f8779c23974a7008bd387a
2020-04-28 15:22:28 -07:00