summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-15Snap for 8000352 from 1afbc971fdf90c3e3226ed7aa6b73f20478829ed to sc-d2-releaseandroid-12.1.0_r26android-12.1.0_r25android-12.1.0_r24android-12.1.0_r23android-12.1.0_r18android-12.1.0_r17android-12.1.0_r16android-12.1.0_r15android-12.1.0_r14android-12.1.0_r13android-12.1.0_r12android12L-d2-s8-releaseandroid12L-d2-s7-releaseandroid12L-d2-s6-releaseandroid12L-d2-s5-releaseandroid12L-d2-s4-releaseandroid12L-d2-s3-releaseandroid12L-d2-s2-releaseandroid12L-d2-s1-releaseandroid12L-d2-releaseAndroid Build Coastguard Worker
Change-Id: If8de4fec307df0a3f89d865f96b8b4b8ad1805a7
2021-12-13simpleperf: use 8 byte aligned stack size when resizing stack data.android-12.1.0_r9android-12.1.0_r8android-12.1.0_r7android-12.1.0_r22android-12.1.0_r21android-12.1.0_r20android-12.1.0_r19android-12.1.0_r11android-12.1.0_r10android12L-devandroid12-qpr3-s7-releaseandroid12-qpr3-s6-releaseandroid12-qpr3-s5-releaseandroid12-qpr3-s4-releaseandroid12-qpr3-s3-releaseandroid12-qpr3-s2-releaseandroid12-qpr3-s1-releaseandroid12-qpr3-releaseYabin Cui
When generating sample records for 32bit arm processes, the dyn_stack_size may not be 8 byte aligned. And dyn_stack_size can be used to calculate new stack size. If the new stack size isn't 8 byte aligned, we can have alginment error later. So make sure new stack size is 8 byte aligned. Bug: 208187192 Bug: 210384787 Test: run simpleperf_unit_test Change-Id: Ibc2f99ba766419fdb491c49317b9fb5ae13138ef (cherry picked from commit 9290fc7b9d3609b854d2791428b2385bba427906)
2021-12-01Snap for 7956453 from 970ba98ee22d24d42c5f1ee05aa8ec25fe90ea36 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: I8934ca003c18c5c6cfda22892765e26eaa17ca09
2021-11-30profcollectd: Remove local files once disabledYi Kong
This saves storage space on users' devices if profcollect is no longer enabled. Test: manual Bug: 207426233 Change-Id: I04f19ba7ddbf9d9f977bb40ac4bc74a09369350f Merged-In: I04f19ba7ddbf9d9f977bb40ac4bc74a09369350f
2021-11-30profcollectd: Limit storage space usedYi Kong
This prevents profcollect from exhausting all the device storage. We don't count space used by packed reports or processed data since they are much smaller (~30KB per trace). Test: manual Bug: 207426233 Bug: 207417653 Change-Id: I54c77bf7d5af57b5ab8d3a696b486c951fe79aa8 Merged-In: I54c77bf7d5af57b5ab8d3a696b486c951fe79aa8
2021-11-06Snap for 7889170 from 7735a98446856eff889c108cd626bb279d616866 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: Ife9403cf0a62788bc640f7f93f96589fc62d282c
2021-11-04Snap for 7883892 from da9bdee8b9334928f5d5f5a886940a2eae2fe254 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: Ia81cf2436050fe06af90b9c3dae2c32f1b5782ea
2021-11-04bootznalyze bug fix and minor improvementsKeun young Park
- should decode with utf8 for all string from shell command - remove dependency on kernel start time in logcat as boot complete is enough with auto time update disabled. - expand launcher match string Bug: 198205714 Bug: 204450693 Test: ./system/extras/boottime_tools/bootanalyze/bootanalyze.py -c ./system/extras/boottime_tools/bootanalyze/config.yaml -r -n 2 -t -v Change-Id: I25ccc81baa06cadc9390d1f948ecb0fe74302599
2021-11-03make bootanalyze more robustKeun young Park
- handles adb hangup during boot up : can handle problematic devices better - run kernel dmesg under separate thread and reduces chances for losing kernel log Bug: 204450693 Test: ./system/extras/boottime_tools/bootanalyze/bootanalyze.py -c ./system/extras/boottime_tools/bootanalyze/config.yaml -r -n 10 -t -v Change-Id: I7a467e9a85464e1caf82f718b21d4ca99adee745
2021-10-30Snap for 7867461 from 36c233be062c877f57495916b435be7ea8faeec4 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: I9a415383a4e3965684775c42b860f74af04115b7
2021-10-28simpleperf: detect hardware counters on emulators.Yabin Cui
We may run arm64 tests on emulators, which may not have hardware counters. So use fingerprint to check if we are running on an emulator, and dynamically detect if hardware counters are available. Bug: 202840384 Bug: 191278807 Test: run CtsSimpleperfTestCases on emulators. Merged-In: I3b6ea439e72188d5b4cf23662b0ee00bfa3b28cd Change-Id: I3b6ea439e72188d5b4cf23662b0ee00bfa3b28cd (cherry picked from commit 8c426d91c940ddfdb480dec9369a21f1c6907bc9)
2021-08-14Snap for 7642774 from 3b0025c066151417513fc5b4c7742f916952c2b4 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: Id68305eb69e61d654342d2fc6ffcfbc887576328
2021-08-13[automerger skipped] Merge stage-aosp-sc-ts-dev before making it an upstream ↵Xin Li
am: 01d6f2938f -s ours am: 7027df47b2 -s ours am skip reason: Merged-In I38cc89bc7f81f8d6d6165a4b8f344c0660c10364 with SHA-1 ee3097ce79 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15550142 Change-Id: Ia3a4f089056965f908bbbf21913e42be468a6289
2021-08-13[automerger skipped] Merge stage-aosp-sc-ts-dev before making it an upstream ↵android-12.0.0_r32android-12.0.0_r29android-12.0.0_r27android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseXin Li
am: 01d6f2938f -s ours am skip reason: Merged-In I38cc89bc7f81f8d6d6165a4b8f344c0660c10364 with SHA-1 ee3097ce79 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15550142 Change-Id: Ic99df91fc3401198d797a3b9d5df1fd4043cff31
2021-08-13[automerger skipped] Merge ab/7633965 am: 62b1150e9c -s oursThe Android Open Source Project
am skip reason: Merged-In I38cc89bc7f81f8d6d6165a4b8f344c0660c10364 with SHA-1 ee3097ce79 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15547311 Change-Id: I23361ee634177596b0dcca8ea551fa4be8783647
2021-08-13Merge stage-aosp-sc-ts-dev before making it an upstreamXin Li
Bug: 169893837 Merged-In: I38cc89bc7f81f8d6d6165a4b8f344c0660c10364 Change-Id: Idb4ffda9324693b6cce9b403905aa84b5ec4c87c
2021-08-12Merge ab/7633965The Android Open Source Project
Bug: 169893837 Merged-In: I38cc89bc7f81f8d6d6165a4b8f344c0660c10364 Change-Id: If1ad65890088a8946fddef89e9b5393ec4750ad4
2021-07-31Snap for 7600768 from b1b597f0fd23abb247807da9cde0e50e45ff6fd5 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: Idef97d03e626c39a101a864bc916494673eeb57f
2021-07-31Snap for 7599705 from 5956c3100e37eddbc9e00c3677f9ad8b1a544ccb to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: I1b9028d22a31a03fec76072c41c5753d32abcf94
2021-07-31simpleperf: replace InCloudAndroid() with runtime check. am: ee3097ce79Yabin Cui
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15433573 Change-Id: Ie98633cc85d6b56657a3983083c77e9c2be875b2
2021-07-30simpleperf: replace InCloudAndroid() with runtime check.android12-devYabin Cui
On x86 and x86_64, it's likely to run on an emulator or vm without hardware perf counters. It's hard to enumerate them all. So check if hardware perf counters are available at runtime. Bug: 191277482 Test: run simpleperf_unit_test Change-Id: I38cc89bc7f81f8d6d6165a4b8f344c0660c10364 (cherry picked from commit 1f6f51aee77235b1fb374a917f0b46c9c09f0933)
2021-07-30profcollect: Change data directory ownership to shellYi Kong
The shell package now owns the content provider to the profcollect reports, change directory ACL groups accordingly. Test: manual Bug: 183487233 Bug: 194155753 Change-Id: I9d327a2f9e139a6d0d998284e4d7b2cdd9ea5dfc Merged-In: I9d327a2f9e139a6d0d998284e4d7b2cdd9ea5dfc (cherry picked from commit 8d8c287c34b2b415f533437abd3433e5ab1bc327)
2021-07-29Snap for 7592414 from fa20149ad952865b3d75bdd53cd6bcdd177d1cad to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: Icd522b20bff107c884f378c9eb8287608b0fc97d
2021-07-28Migrate profcollectd's libflags bindings from bindgen to cxx. am: d09092fd6dJoel Galenson
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15412604 Change-Id: I99152878b4494fcd89613a003e4177156634b858
2021-07-28Migrate profcollectd's libflags bindings from bindgen to cxx.Joel Galenson
This should both simplify the code and fix some errors in the existing implementation. Bug: 182498247 Test: Build Change-Id: I2a5bcbcac407ba0bb41d4884b99fe8a55113ae38 (cherry picked from commit c8fb4177717b50c3c5789011e4ab795771a62102)
2021-07-22Snap for 7571196 from c9377edc82325556833e7619612fa5dccc91e623 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: I94e518d3287162e8934006dbd6841a996f38e120
2021-07-21profcollectd: logging trace providerYi Kong
Provide a logging trace provider that does nothing but log all trigger events, for development and for testing on unsupported devices. This is disabled by default, turn on "test" feature to enable. Test: build Bug: 194155753 Change-Id: I3377979d5a4298065b326da355908db0a3375f18 Merged-In: I3377979d5a4298065b326da355908db0a3375f18 (cherry picked from commit 8c59b8fc5398c350888dde7ff2a50912387fa9b1)
2021-07-20profcollectd: Remove reports past retention period am: 1d2f2761cdYi Kong
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15334381 Change-Id: I155b2558b8e78e72e2e9c979bb21ec2583e6fa86
2021-07-21profcollectd: Remove reports past retention periodYi Kong
Manually generated profcollect reports (through `profcollectctl report`) and reports that failed to upload for whatever reason need to be cleaned up periodically, to save disk space as well as to minimise privacy leak surface. Test: manual Bug: 178561556 Change-Id: I54f09d1738f7b3c3b763251af83133bda5c214ae Merged-In: I54f09d1738f7b3c3b763251af83133bda5c214ae (cherry picked from commit 8dffc1208417a18870b33ce92c03a8f77da8dbee)
2021-07-16Snap for 7552724 from 237505836d7cdb7b89008910620e00cb35f58623 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: Ia5a8be5b69a38308a7ba165a6b9b45d5e1e0164c
2021-07-14Migrate profcollectd's libbase bindings from bindgen to cxx. am: 29b4145bffJoel Galenson
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15285750 Change-Id: Ia492df86177545f038859e154cce199362065840
2021-07-14Migrate profcollectd's libbase bindings from bindgen to cxx.Joel Galenson
This should both simplify the code and fix some errors in the existing implementation. Bug: 182498247 Test: Build Change-Id: Id3f7f518922e745715aef1286be684bd3e9c16fe Merged-In: Id3f7f518922e745715aef1286be684bd3e9c16fe (cherry picked from commit 93dd9936881424d2ed4f061bd7d06f8d74163010)
2021-07-08Snap for 7529132 from 1f8b9b9d7f75b73d3596a3d6269188a200fc6a32 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: I62ac2b02ccb162cedf655254c3b9d3c6fba1efe5
2021-07-07Merge "Revert "Add ramdisk_available to init_first_stage's deps"" into ↵TreeHugger Robot
sc-dev am: c783e4235c Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15167730 Change-Id: Ia4315e70cc09faad36855d440ee08a427a07566d
2021-07-07Merge "Revert "Add ramdisk_available to init_first_stage's deps"" into sc-devTreeHugger Robot
2021-07-01Revert "Add ramdisk_available to init_first_stage's deps"Inseob Kim
Revert submission 15071196-init_first_stage_soong Reason for revert: fixes b/192248690 Reverted Changes: I23cf4f975:Add ramdisk_available to init_first_stage's deps Icd98c7e24:Add ramdisk_available to init_first_stage's deps If9da9ba16:Add ramdisk_available to init_first_stage's deps Ibc8668029:Add ramdisk_available to init_first_stage's deps I3b4b8c475:Add ramdisk_available to init_first_stage's deps I59cd149e0:Completely migrate init first stage to Soong I36d789578:Add ramdisk_available to init_first_stage's deps I2a0daa612:Add BUILD_USES_RECOVERY_AS_BOOT to soong config Ic76c325ce:Directly create ramdisk dirs in ramdisk image rule... I4c5374deb:Add BOARD_BUILD_SYSTEM_ROOT_IMAGE to config vars I8aab5faf3:Add ramdisk_available to init_first_stage's deps I9d5a10661:Add ramdisk_available to init_first_stage's deps Iaa2edeb4a:Add ramdisk_available to init_first_stage's deps I7cb582ca0:Update init_first_stage I06091d15e:Add ramdisk_available to init_first_stage's deps I8bdb8dda3:Add ramdisk_available to init_first_stage's deps I7436b8dd1:Add ramdisk_available to init_first_stage's deps I39693fd86:Add ramdisk_available to init_first_stage's deps I0a9ba90f0:Add ramdisk_available to init_first_stage's deps Ib66b4c4ea:Add ramdisk_available to init_first_stage's deps I31ce63d23:Add ramdisk_available to init_first_stage's deps Icb580f97c:Add ramdisk_available to init_first_stage's deps I044a075b7:Add ramdisk_available to init_first_stage's deps I33164a7e7:Fix ndk and aml arch order Ib8d92904a:Add ramdisk_available to sysprop_library Ibc3516453:Add install_in_root to cc_binary Change-Id: I50e4ecb6b4c5196955f7f97f887cdca352b4f56f
2021-06-30Snap for 7505545 from a1258cb5b9beb18e04273ff7b90ff1cfecb5bbee to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: I4c6553626dd6b22f6782994c1e08dc23d6c981a1
2021-06-29Revert "simpleperf: update testdata used for testing reading dex files." am: ↵Nicolas Geoffray
3c75ec976b Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15142314 Change-Id: I5220a74206ad8c590673eddaba9935c84cbd20d0
2021-06-29Revert "simpleperf: update testdata used for testing reading dex files."Nicolas Geoffray
This reverts commit 371ed7afc58655c639ab685f2a1bd20ca8c0ca14. Reason for revert: version 002 of vdex has been reverted Bug: 191480616 Bug: 192327398 Change-Id: I360b65111812156a0d95fad33fa59e224cc43276 Merged-In: I360b65111812156a0d95fad33fa59e224cc43276 (cherry picked from commit 3ae1f42b51362b333ab0378bc44522bfbb81e1d2)
2021-06-26Snap for 7497336 from 08f3555cabd9f5cc4f4f896400a0cc663e21eddd to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: If7535334be546b7510b5f4c4c1aa38a1bb880106
2021-06-25Merge "Mark constructor as static" into sc-dev am: b98bc39d9fPirama Arumuga Nainar
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15105506 Change-Id: I72a0be583b2f50cc8cb4d0c2504ac20bb5dc30ff
2021-06-25Merge "Mark constructor as static" into sc-devPirama Arumuga Nainar
2021-06-24Mark constructor as staticPirama Arumuga Nainar
Bug: http://b/183606176 Mark the constructor init_profile_extras as static so each library gets its own copy of the constructor. Also get rid of the init_profile_extras_once flag which is unnecessary. The same fix could be applied to profile-extras.cpp used for GCOV but I'm skipping it since we don't officially support gcov and can be cleaned up along with the rest of the build system support. Test: verify that symbols from libjavacrypto.so (e.g. *NativeCrypto*) are written from system_server Change-Id: Ieedbeb609fd63963d76a067c2bc0291af7c04b1c
2021-06-25Snap for 7492003 from 33573e11858025d3874ea73d7984575db145a2b0 to sc-d2-releaseAndroid Build Coastguard Worker
Change-Id: Ia395fef67721d6effc450d96a4ff7ff9650f70bb
2021-06-24Add ramdisk_available to init_first_stage's deps am: 7605233f14Inseob Kim
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15071197 Change-Id: Icc90029f014d1fb2e16d207821217bd731fed28d
2021-06-23Add ramdisk_available to init_first_stage's depsInseob Kim
Bug: 187196593 Test: boot Change-Id: I3b4b8c4758d5e710d3c98dd138b0893a7b320601 Merged-In: I3b4b8c4758d5e710d3c98dd138b0893a7b320601
2021-06-22Snap for 7479185 from ad23023571d235b5a0c399e23a8e73878e831ffc to sc-d2-releaseandroid-build-team Robot
Change-Id: Id1bb89f63c461745428c37ea321c241fca3bb459
2021-06-21simpleperf: update testdata used for testing reading dex files. am: 5cac9f0abbYabin Cui
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/extras/+/15031587 Change-Id: I7c9adbabddff14b07176ea2196b58158f8bfe79b
2021-06-18simpleperf: update testdata used for testing reading dex files.Yabin Cui
libdexfile only supports reading the latest version of compact dex file. After bumping compact dex file version to v2, libdexfile no longer supports reading symbols from old compact dex files. So temporarily disable base.vdex for testing. And add base_with_cdex_v2.vdex to test the new version. Bug: 191480616 Test: run simpleperf_unit_test Change-Id: Iaa3762e295cd1d9418b8e49ee29fb98518d7d09b (cherry picked from commit 371ed7afc58655c639ab685f2a1bd20ca8c0ca14)
2021-06-11Snap for 7448313 from 3387c68feb8567aaeb1a33ebec5c9dfbafea5737 to sc-d2-releaseandroid-build-team Robot
Change-Id: I567977876f48010c8214e10dba267f9aa1ab5482