summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-15Snap for 6680390 from 6cbcea87a648bc236c8ec97914e342f4a0c4e8a5 to rvc-releaseandroid-vts-11.0_r1android-security-11.0.0_r76android-security-11.0.0_r75android-security-11.0.0_r74android-security-11.0.0_r73android-security-11.0.0_r72android-security-11.0.0_r71android-security-11.0.0_r70android-security-11.0.0_r69android-security-11.0.0_r68android-security-11.0.0_r67android-security-11.0.0_r66android-security-11.0.0_r65android-security-11.0.0_r64android-security-11.0.0_r63android-security-11.0.0_r62android-security-11.0.0_r61android-security-11.0.0_r60android-security-11.0.0_r59android-security-11.0.0_r58android-security-11.0.0_r57android-security-11.0.0_r56android-security-11.0.0_r55android-security-11.0.0_r54android-security-11.0.0_r53android-security-11.0.0_r52android-security-11.0.0_r51android-security-11.0.0_r50android-security-11.0.0_r49android-security-11.0.0_r1android-platform-11.0.0_r2android-platform-11.0.0_r1android-cts-11.0_r1android-11.0.0_r6android-11.0.0_r5android-11.0.0_r4android-11.0.0_r3android-11.0.0_r25android-11.0.0_r2android-11.0.0_r17android-11.0.0_r1android11-security-releaseandroid11-s1-releaseandroid11-releaseandroid-build-team Robot
Change-Id: I3cece9a2e4de9f09e946f76b00fb277fca02633b
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-12Snap for 6582636 from 9f0e7264b2c7cd7f20c7ce559e1692b93c67a430 to rvc-releaseandroid-build-team Robot
Change-Id: Ia633872d63a12c43ee6d492eee2aea252ddbc827
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-06Snap for 6564423 from 756a972f99ed337c3a5b4735969596708861cf64 to rvc-releaseandroid-build-team Robot
Change-Id: Iad7d55ba99cd81a867ede44fd7b46472881a94d2
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-31Snap for 6546046 from 9760d1a21d405d944fc093f434d093023832b367 to rvc-releaseandroid-build-team Robot
Change-Id: I2d5c65ba6b7c8c34d8606a3584d7936251e4973d
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-24Snap for 6523887 from 20a5aa5fdedf81f9b415e92bc09fdfa59bfb583c to rvc-releaseandroid-build-team Robot
Change-Id: Ia5b0f65b2245a11c36e30688cb73df569f65f122
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-24Snap for 6424828 from 901a08a73484b0989530fb9fc7de0829d13d6757 to rvc-releaseandroid-build-team Robot
Change-Id: I3bbfe4f5d361406b4fd073014ca47a25eb2a931f
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-21Snap for 6412615 from 0a3eb7e28bafafce2dcf396fee86f75f7897b9df to rvc-releaseandroid-build-team Robot
Change-Id: Ic37d96b92df1340182e3d8200e6feebde0428cd8
2020-04-20Merge "Mark some aidl_interface modules as unstable" into rvc-devJiyong Park
2020-04-18Snap for 6406367 from fe83faa0694153c4eb5558afee0b2de7b6658f25 to rvc-releaseandroid-build-team Robot
Change-Id: Icea7e7c534461e77ecd891fa53f713c091f9b9ab
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-11Snap for 6388139 from ae7f2edaf436bea92503667958e29d6349904a5b to rvc-releaseandroid-build-team Robot
Change-Id: I2842a65c2d592dcea3d23c72f6d8fc96b9fcb6e7
2020-04-11Merge "Use realpath to grab underlying path for userdata" into rvc-devDaniel Rosenberg
2020-04-09Snap for 6378851 from aff6b2d6b0e57cd4b5691b01ea99ebf769255ef0 to rvc-releaseandroid-build-team Robot
Change-Id: I978aa5fc8dc8d9e68dc12859c47620099c1680a5
2020-04-08Merge "Remove vts10 tests from vts suite" into rvc-devTreeHugger Robot
2020-04-08Snap for 6374687 from bcf045413b6760d6a31a8fdfb85b22b7854d12df to rvc-releaseandroid-build-team Robot
Change-Id: I63d714d08c7833bb162273d44e6f4de3eeff2ffb
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-02Snap for 6357023 from c118258b5f24ae4ce3fbff947ef26b1c80d3a3df to rvc-releaseandroid-build-team Robot
Change-Id: I0b5a71ea69092eb2a5fa7a5997e4f8b0b09640a3
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-28Snap for 6343882 from bf06df7d2d361ccca839813c54e2c9073c0c828e to rvc-releaseandroid-build-team Robot
Change-Id: Ib5620a96d301c8b5c47ecfcb75bc498be955d346
2020-03-28Snap for 6342437 from f76271cb2d5579ee4b4e77d694cef837e4075382 to rvc-releaseandroid-build-team Robot
Change-Id: I4c520cf922dbf64b828384387ef43c1546965de8
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-26Snap for 6333744 from b50af6e4d89a10398f7241b22d58ef5c52edf10e to rvc-releaseandroid-build-team Robot
Change-Id: I7fc9c464211f3ce1cefb9efb9d077615854b6f13
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-21Snap for 6320579 from c9b55de1ba20b64dac3ae690cf15ffa062cb9de4 to rvc-releaseandroid-build-team Robot
Change-Id: Iea2226220231c21b75fb03d55c4d98c0460a35df
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-15Snap for 6297478 from 5c6334f3957b3354ee8af6b2c009c1cdf1af4e2a to rvc-releaseandroid-build-team Robot
Change-Id: Ic5d444b1cdf9c5da38f344239b6558c18cd32ea4
2020-03-14libperfmgr: OWNERS file house cleaningWei Wang
Bug: 111098032 Test: build Change-Id: Ided9f4eaf2401ec2326771cb00a966e26d79b8fa
2020-03-14Snap for 6294963 from f31988a3ec6ccdce08fb95eeb9045348ad968339 to rvc-releaseandroid-build-team Robot
Change-Id: I64901f057a821a3d36575f44a17de437965c3001
2020-03-12libperfmgr: add API to delay start of looper threadWei Wang
Bug: 147840817 Test: libperfmgr_test all passed Change-Id: I9f2f147da6748124cf09e48892ae7768074ed1a8