summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-14Make bootctl work on devices that does not have v1.1 API am: 6cbcea87a6android-mainline-11.0.0_r44android-mainline-11.0.0_r43android-mainline-11.0.0_r42android-mainline-11.0.0_r41android-mainline-11.0.0_r40android-mainline-11.0.0_r39android-mainline-11.0.0_r38android-mainline-11.0.0_r37android-mainline-11.0.0_r36android-mainline-11.0.0_r35android-mainline-11.0.0_r34android-mainline-11.0.0_r32android-mainline-11.0.0_r31android-mainline-11.0.0_r30android-mainline-11.0.0_r28android-mainline-11.0.0_r27android-mainline-11.0.0_r26android-mainline-11.0.0_r25android-mainline-11.0.0_r24android-mainline-11.0.0_r23android-mainline-11.0.0_r22android-mainline-11.0.0_r21android-mainline-11.0.0_r20android-mainline-11.0.0_r18android-mainline-11.0.0_r17android-mainline-11.0.0_r16android-mainline-11.0.0_r15android-mainline-11.0.0_r14android-mainline-11.0.0_r13android-mainline-11.0.0_r12android11-mainline-tethering-releaseandroid11-mainline-permission-releaseandroid11-mainline-os-statsd-releaseandroid11-mainline-networkstack-releaseandroid11-mainline-media-swcodec-releaseandroid11-mainline-media-releaseandroid11-mainline-extservices-releaseandroid11-mainline-documentsui-releaseandroid11-mainline-conscrypt-releaseandroid11-mainline-cellbroadcast-releaseandroid11-mainline-captiveportallogin-releaseHåkan Kvist
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/12128008 Change-Id: I8b3406b6b2c4deb70b8cb0ecb8ec814361fd13dd
2020-07-14Make bootctl work on devices that does not have v1.1 APIandroid-cts-11.0_r2android11-devHåkan Kvist
Execute the commands with the API version where the command was introduced. This makes it possible to run the v1.0 HAL commands on a device where v1.1 HAL implementation is not available. Without this patch, on devices that only support bootcontrol v1.0 API, bootctl would just fail with error message. Bug: 160405575 Test: Execute command on device that only implements v1.0 API adb shell bootctl hal-info Change-Id: I56e9a81bcae49b6859b04394d571b5151a235675 Signed-off-by: Håkan Kvist <hakan.kvist@sony.com> Signed-off-by: Alessio Balsini <balsini@google.com>
2020-06-11Fixing bug in bootanalyze when the event time is 0 am: 9f0e7264b2Jyoti Bhayana
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/11829463 Change-Id: Ib8068d9d18443187e1066a9507fa86b2160ebc93
2020-06-11Fixing bug in bootanalyze when the event time is 0Jyoti Bhayana
Bug:158702468 Test: Run bootanalyze and see there is no error when the event time is 0 Change-Id: If3efa4c33a70cf6168a777f0f442fe1557b600b4
2020-06-05simpleperf: add Broadcom STB into whitelist, omit tests requiring hw ↵Natalie Chiu
counters. am: 756a972f99 Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/11735563 Change-Id: I4403bfa70f022be6ab82db1e02857baa01c68e4c
2020-06-04simpleperf: add Broadcom STB into whitelist, omit tests requiring hw counters.Natalie Chiu
Some Socs like Broadcom STB will not be available when disable jtag(non-invasive debug), so omit tests requiring hw counters on them. Bug: 158095412 Bug: 154157678 Test: run cts -m CtsSimpleperfTestCases -t record_cmd#generate_samples_by_hw_counters Test: hw counters. Change-Id: Iddfb34bfa1d66e37398bb162f8e1cfa645d756f4 Merged-In: Iddfb34bfa1d66e37398bb162f8e1cfa645d756f4 (cherry picked from commit 572c226db410b2c3b20e3a63cc6c5e9f0aeed65c)
2020-05-31Fix the parsing of images without hashtree descriptor am: 9760d1a21dTianjie
Change-Id: I05aa35e28ef7a6b89642cf8c65270aa7a5c9a6b3
2020-05-29Fix the parsing of images without hashtree descriptorTianjie
It's possible that the an image doesn't contain a hashtree descriptor. And the current raises a segfault when we attempt to validate and copy a non existing descriptor. Bug: 157778739 Test: call fec_open on dtbo image. Change-Id: Ieb5acf016ceeb547f2b23de43d4276ea4d013a6f (cherry picked from commit 90e7155bdd10039448bbc5ee4636f14c0119718e)
2020-05-23Add emmc_optimized flag am: 20a5aa5fdePaul Crowley
Change-Id: If5044127c6638655208f1d3f3d9a84368f607f5f
2020-05-21Add emmc_optimized flagPaul Crowley
Bug: 144046242 Test: atest libfscrypt_unit_test Test: Change fstab on Cuttlefish with patched kernel, check dir policy Cherry-Picked-From: 476ce0a30615c1249969bedba0f1fb084d8ef193 Merged-In: I362f9a55fa28bb25afe992c8b0bae48546fc9ab0 Change-Id: I362f9a55fa28bb25afe992c8b0bae48546fc9ab0
2020-04-24simpleperf: adjust based on opencsd change.Yabin Cui
Currently, simpleperf gets branch_addr from instruction decoder. But OpenCSD is changed to cache InstrRange elements. Thus when simpleperf gets an InstrRange element, the instruction decoder may point to an instruction executed later. Fix it by using the start_addr of the next InstrRange element as the branch_addr of the current InstrRange element. Also add a test. Also use recorded binary path in output to help test. Bug: 153039105 Test: run simpleperf manually so the inject result doesn't Test: change for a 10s system wide recording data. Test: run simpleperf_unit_test. Change-Id: I6fdf32d3bac18ed3762c944c282ec881d09395b4 Merged-In: I6fdf32d3bac18ed3762c944c282ec881d09395b4 (cherry picked from commit 2c294914c1eeb30754a8a2449795b296bd2176e9)
2020-04-24simpleperf: add MapLocator for etm decoding.Yabin Cui
Add MapLocator as a packet callback. It is then used to find maps in MemAccess and InstrRangeParser. MapLocator uses a separate cache for each trace id. It also fix a bug that let a kernel map override following user maps. Bug: 153039105 Test: run simpleperf_unit_test. Change-Id: Ic285f81ac05c3e65b481fb97a5355282639692e4 Merged-In: Ic285f81ac05c3e65b481fb97a5355282639692e4 (cherry picked from commit 418ba0d37570172c4ee5e24fc452b3a5ef9ae665)
2020-04-24simpleperf: add class interface to read elf files.Yabin Cui
This is to keep file mapping memory buffer. And support reading more than one content in one open instance in the future. It also supports embedded elf files in apks as normal elf files. Bug: 153039105 Test: run simpleperf_unit_test. Change-Id: Ia424926d112cbcd9970f11ffa56d047ff6df7872 Merged-In: Ia424926d112cbcd9970f11ffa56d047ff6df7872 (cherry picked from commit 02e2033f9ef34be0189e151bf6fef60b1285afd9)
2020-04-20Merge "Mark some aidl_interface modules as unstable" into rvc-devJiyong Park
2020-04-16simpleperf: Fix record_java_app test.Yabin Cui
Fix test apk by always using internal cache dir. Bug: 153605370 Test: run simpleperf_unit_test. Change-Id: Ie38242e2034f0f9888da380f7cee696bf3877818 (cherry picked from commit 42ce297dff6df9c6a54366b9090a1bab7f52e638)
2020-04-13Mark some aidl_interface modules as unstableJiyong Park
With b/152655547, all aidl_interface modules are considered as stable unless it is explicitly with "unstable: true". This change marks the aidl_interface that are not used across updatable module bounraries as unstable, so that the build system does not run the API dumping/checking on them. Bug: 152655547 Test: m Change-Id: I8291dca96fcca0c45a2501ab88970ace360a7ac7
2020-04-11Merge "Use realpath to grab underlying path for userdata" into rvc-devDaniel Rosenberg
2020-04-08Merge "Remove vts10 tests from vts suite" into rvc-devTreeHugger Robot
2020-04-07Remove vts10 tests from vts suiteDan Shi
The tests are only needed in vts10 suite, as they are part of CTS package and no longer needed in vts 11. Bug: 151896491 Test: local build Exempt-From-Owner-Approval: This CL removes vts10 tests from vts suite. It won't change test logic or behavior. Change-Id: Idadd1f99ba3620c36a7aca4f648a013da40bd3a0 Merged-In: Idadd1f99ba3620c36a7aca4f648a013da40bd3a0
2020-04-06simpleperf: fix CanRecordRawData.Yabin Cui
sys.init.perf_lsm_hooks isn't accessible in app context, thus checking it in CanRecordRawData() breaks recording app with --trace-offcpu option. Fix it by not recording raw data in non-root users. Bug: 153381808 Test: run simpleperf_unit_test. Test: run test.py *TraceOffCpu*. Change-Id: Id87c73d25b19b265c022c4fa6ebb8e7d3a84152b (cherry picked from commit c98cb1193d73c1fa616d0d366a221751fde38f67)
2020-04-02Use realpath to grab underlying path for userdataDaniel Rosenberg
We may grab the by-name path for /data's block device. Use realpath to ensure we grab the correct name to access the sysfs entries. Bug: 153049163 Test: Run /vendor/bin/checkpoint_gc Change-Id: I297c7b60105d1966eb1304222a9727794035d3fc
2020-04-01simpleperf: fix comment for per-thread and per-core report.Yabin Cui
For task-clock, it uses software counter, so multiplexing will not happen. And it isn't proper to scale comment value in per-core report. For rate computation involving runtime, the current way to find runtime is via FindRunningTimeForSummary() function. But that function doesn't take care of thread and core match. And it seems more proper to use the sum of runtime given by perf counters. So switch to it. Also add some tests for comment string. Also adjust comment title in report. Bug: 152911261 Test: run simpleperf_unit_test. Change-Id: I475fae32952ed2680888c6a76b43cfb10bc9b06e (cherry picked from commit 6922c076ce73fd4bca357aeea0d20797e3321749)
2020-04-01simpleperf: move CounterSummaries definition to header file.Yabin Cui
This is to test it in later CLs. Bug: 152911261 Test: run simpleperf_unit_test. Change-Id: I0cdad299654eb36db4a64363335bfa03e54ee7b1 (cherry picked from commit 5271aa719b7cae4cddc9f67803648f17f9b24018)
2020-03-27simpleperf: fix percentage comment in stat cmd.Yabin Cui
Fix a bug of aggregating time_enabled,time_running introduced in https://android-review.googlesource.com/c/platform/system/extras/+/1220206/1/simpleperf/cmd_stat.cpp#1012. Move some code to cmd_stat_impl.h to add tests. Bug: 152518722 Test: run simpleperf_unit_test. Change-Id: I50dcaf9aa83de838cc00554420d232f1a8d54601 (cherry picked from commit b3ed39b2ce227407cd828c458233e9dc222641e8)
2020-03-27simpleperf: update doc for stat --per-core option.Yabin Cui
Improve document reported by issue https://github.com/android/ndk/issues/1214. Also clean up stat ouptut: 1. Skip output for threads and cpus not running. 2. Tiny fix in column width adjustment. Bug: 152518722 Test: run simpleperf_unit_test. Change-Id: Ic032a12daa50bfb4c1552c94d8e7e7822c2f4ad8 (cherry picked from commit 3ef0328b7613f97a516163438869d435515a496a)
2020-03-27Merge changes from topic "fec_avb" into rvc-devTianjie Xu
* changes: Allow building libfec without libavb Suport parsing hashtree and ecc data from avb
2020-03-27Merge "Move libperfmgr into hardware/google/pixel" into rvc-devWei Wang
2020-03-26Allow building libfec without libavbTianjie Xu
Add stub implementation for avb related functions to allow building libfec without libavb support. This is useful to build the fec binary when libavb isn't available on mac. Bug: 144388532 Test: build, unittests pass Change-Id: I26f8de390c3c2c37bf48418fb31038ddd9863866 (cherry picked from commit 87d230b72992e6fa170180a919721315de7c597b)
2020-03-26Move libperfmgr into hardware/google/pixelWei Wang
Bug: 137581945 Test: Build Change-Id: I6fff2b514f265b032ac3223d1548656e644f073f
2020-03-26Suport parsing hashtree and ecc data from avbTianjie Xu
Add support to parse the AvbHashtreeFooter in the avb image. We are in particular looking for the ecc and hashtree data so that they can laster be used for error correction. Bug: 144388532 Test: unittests pass Change-Id: I3e53e3e84a58b00346274f9946cafc135702ac82 Merged-In: I3e53e3e84a58b00346274f9946cafc135702ac82 (cherry picked from commit 398e8c30ccb062ced809c11e9335b87352af5582)
2020-03-25Merge "Use libdexfile_support_static only for the simpleperf NDK binary." ↵TreeHugger Robot
into rvc-dev
2020-03-25Merge "simpleperf: fix flaky record_native_app test." into rvc-devYabin Cui
2020-03-24simpleperf: fix flaky record_native_app test.Yabin Cui
Make the test pass with a lock screen. Bug: 151110118 Test: run CtsSimpleperfTestCases with a lock screen. Change-Id: I682daadc1a79474496594ef697917f0b8abca5c1 (cherry picked from commit 6c03e04df7ed218ea4d227ac847587827f19594e)
2020-03-23Use libdexfile_support_static only for the simpleperf NDK binary.Martin Stjernholm
It contains the full ART dex support which is part of the ART APEX and hence shouldn't go into the system image when ART is updatable. For some libraries that are only used for testing or on host this matters less, but for the sake of simplicity we limit the use of libdexfile_support_static as much as possible. Test: Build and boot Test: mmm system/extras/simpleperf/ Test: atest simpleperf_unit_test Bug: 142944931 Bug: 151466650 Change-Id: Iae9b57aded398e6f3b56329e3e056f7bfd8ed0b5 Merged-In: Iae9b57aded398e6f3b56329e3e056f7bfd8ed0b5
2020-03-21libperfmgr: allow hints placed before NodeLooperThread startsWei Wang
Also add dumps for active request/hint per node Bug: 147840817 Test: boost flame Test: adb shell /data/nativetest64/libperfmgr_test/libperfmgr_test Change-Id: I4898101f5c8a8d1c69de2caf9ad6f5b4a106f6c6
2020-03-14libperfmgr: OWNERS file house cleaningWei Wang
Bug: 111098032 Test: build Change-Id: Ided9f4eaf2401ec2326771cb00a966e26d79b8fa
2020-03-12libperfmgr: add API to delay start of looper threadWei Wang
Bug: 147840817 Test: libperfmgr_test all passed Change-Id: I9f2f147da6748124cf09e48892ae7768074ed1a8
2020-03-12libperfmgr: change slow node warning to 5ms in userdebug buildWei Wang
Bug: 134845490 Test: boot Change-Id: I301020bb988ee53c756e176e97f604b9d16be42d
2020-03-10Disable record_cmd#record_native_app for non-native ABIsLev Rumyantsev
Binary translated code doesn't directly execute guest code, so it's execution cannot be mapped to guest symbols. Bug: 149313881 Test: CtsSimpleperfTestCases -- --abi=armeabi-v7a on emulator (cherry-picked from 340f20e88b795f48a242d6a14fff7b3451a18f38) Change-Id: I4acef39263935024207648f4dc83681825fd62ef
2020-03-10Add API to query if given hint is supportedWei Wang
Bug: 147840817 Test: New unit test passed Change-Id: I46009526453d8f6ea1fcb6f04475302859e96b98
2020-03-04Merge "simpleperf: use perf_lsm_hooks prop for permission check." into rvc-devYabin Cui
2020-03-04Merge "libfscrypt: Add == and != operators for EncryptionPolicy/Options" ↵Nikita Ioffe
into rvc-dev
2020-03-03simpleperf: use perf_lsm_hooks prop for permission check.Yabin Cui
Simpleperf uses version check to see if it can record raw data. But Android hasn't updated version yet, so change to use perf_lsm_hooks prop. Bug: 149797433 Test: run simpleperf_unit_test. Change-Id: Ia1117f5f11e78a4ddd45c56bb072df30586e14c8 (cherry picked from commit c3a9bf1f5344f598a53e6c6877a394e6a3c7a66f)
2020-02-27libfscrypt: Add == and != operators for EncryptionPolicy/OptionsNikita Ioffe
Test: atest libfscrypt_unit_test Bug: 143970043 Change-Id: Ibb8ee68513d4f04c1a64773768cc5ded9f7425ca
2020-02-26Remove the dependency on bootloader_messageTianjie Xu
Now that we move libboot_control to boot/1.1, the definition of bootloader_message_ab will hide behind the implementation details for vendor HALs. As this library isn't used in practice, we just inline the offset here. Bug: 131775112 Test: build Change-Id: I64babcad6a421cab5858ab818f392eca196a0fe2 (cherry picked from commit b6934a07d2b7e0d41a15ff29bd6b157e7c2993c4)
2020-02-21Merge "Add metadata_csum in ext4.h" am: 252c7e15d4 am: 774e00fb7f am: bae049a33bAutomerger Merge Worker
Change-Id: I6986eca2f8dd1732283758d874c327ca6234b0c3
2020-02-21Merge "Add metadata_csum in ext4.h" am: 252c7e15d4 am: 774e00fb7fAutomerger Merge Worker
Change-Id: If862bfc2e2d0aaea065c67eb35077d761064f877
2020-02-21Merge "Add metadata_csum in ext4.h" am: 252c7e15d4Automerger Merge Worker
Change-Id: Id0b45ccfa8b762b4f17cb74f3144402c69e5cc50
2020-02-21Merge "Add metadata_csum in ext4.h"Jaegeuk Kim
2020-02-20Merge "fscrypt option parsing depends on ro.product.first_api_level" am: ↵Automerger Merge Worker
c96804e159 am: db81f824fc am: 150254821a Change-Id: I811acf0484c8a23a124f487025eed80898d2a3cd