summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-28Merge "Run mtectrl later in boot sequence" into main am: fd6ea7e04etmp_amf_298295554Florian Mayer
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2765456 Change-Id: If42b8e6066cd01af4b2273d02c53f312374150e3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28Merge "Run mtectrl later in boot sequence" into mainFlorian Mayer
2023-09-27Run mtectrl later in boot sequenceFlorian Mayer
If we run it too early, we fail to run the first time after a factory reset, because /metadata isn't set up properly yet. Test: factory reset and dmesg Bug: 302188718 Change-Id: I35fc8e992d98bd1126bb6c7673d9561b6c9c32e8
2023-09-18Merge "Document the tracing subscriber usage in README.md, better sample ↵Nikita Putikhin
init" into main am: ca36a936b3 Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2753571 Change-Id: I23a836d5a96ca4ee0ca8ae4974b6de733cae675c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18Merge "Document the tracing subscriber usage in README.md, better sample ↵Nikita Putikhin
init" into main
2023-09-18Document the tracing subscriber usage in README.md, better sample initNikita Putikhin
Test: manually collect a trace Bug: 293435349 Change-Id: Iccc7ab4592bde9d8f272ea63f45be86209fb774e
2023-09-15Merge "Speed up the subscriber" into main am: 09779f9f28Nikita Putikhin
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2752586 Change-Id: Iba9f62a5ce077ad766e0d05875295675fa5ffcef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15Merge "Speed up the subscriber" into mainNikita Putikhin
2023-09-15Speed up the subscriberNikita Putikhin
Better string handling, avoiding work where possible, new filter mode to optimize the case when the subscriber is the only layer. Bug: 293435349 Test: atest Test: benchmark Test: manually ran the sample and captured a trace Change-Id: I05ede25daaadb109cffae2ad7658d4fab58b4b5d
2023-09-14Merge "Move making the vector out of benchmark iter" into main am: 8fbd509d81Nikita Putikhin
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2752585 Change-Id: I6af9553b54cd4e620cd94de11d2ba6100c97b4c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14Merge "Move making the vector out of benchmark iter" into mainNikita Putikhin
2023-09-14Move making the vector out of benchmark iterNikita Putikhin
The difference is within normal noise levels but it's a bit neater. Bug: 293435349 Test: run benchmark Change-Id: If46ceaa00a0c57942553e4710a2e8fbc366edefb
2023-09-11Merge changes I2f5c2325,Ibce802ec into main am: bb4703b0adNikita Putikhin
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2745457 Change-Id: Ic612b729147ae2963b3e6815ea78a9d2db9f0a5e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11Merge changes I2f5c2325,Ibce802ec into mainNikita Putikhin
* changes: Add a benchmark for the tracing subscriber Add tracing subscriber for ATrace
2023-09-11Add a benchmark for the tracing subscriberNikita Putikhin
Measure the times so that we can optimize them. Bug: 293435349 Test: Run benchmarks on aosp_cf_x86_64_phone Change-Id: I2f5c23254533a92d122fab35f18bdbf4cafb19b2
2023-09-11Add tracing subscriber for ATraceNikita Putikhin
A simple subscriber that forwards calls to ATrace. It is not optimized, the purpose of this implementation is to have a working starting point to test and benchmark. Tests follow the same pattern as the main libatrace_rust but we had to copy the global mock helpers because the mocked methods are different. Bug: 293435349 Test: atest Test: manually uploaded and captured a trace Change-Id: Ibce802ec28159366d5d58550b105e9cd9546fded
2023-09-07Merge "Remove stray newline from err() calls." into main am: 086247fdbfElliott Hughes
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2745935 Change-Id: Ib9d572e323a4ab97c4f06122c0f69b869c55b678 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07Merge "Remove stray newline from err() calls." into mainElliott Hughes
2023-09-07Remove stray newline from err() calls.Elliott Hughes
err() does this itself, and includes strerror() too. Also fix some err() calls that should have been errx(). (I'll remember this patch next time I'm arguing that error() from <error.h> is much less error-prone than remembering which of err() or errx() is wanted from <err.h> :-) ) Test: treehugger Change-Id: I5bf6643a373ef69b69ffb03aa11876bfc497280c
2023-09-07Merge "simpleperf: Fix record_cmd#check_trampoline test" into main am: ↵Yabin Cui
09fbf35747 Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2744673 Change-Id: I56107c5a726af9e75eb191f956c0027194be7e49 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06Merge "simpleperf: Fix record_cmd#check_trampoline test" into mainYabin Cui
2023-09-06simpleperf: Fix record_cmd#check_trampoline testYabin Cui
art_jni_trampoline may appear in JIT cache. To load symbols for JIT cache (stored in the recording file), we need to call LoadBuildIdAndFileFeatures(). Bug: 299090869 Test: run simpleperf_unit_test Change-Id: I401b091e27e7b3ae86f003a270b53be4060c922f
2023-09-06Merge changes Ia9725aaf,I568a78af into main am: 5a9c0a14e3Daniel Rosenberg
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2734299 Change-Id: Iaa4a50fbe04edb12ecaaa24d2a9aca9c9369b2b4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06Merge changes Ia9725aaf,I568a78af into mainDaniel Rosenberg
* changes: checkpoint_gc: Exit gc if there is enough free segments checkpoint_gc: Abort gc if no progress detected
2023-09-02Merge changes Ie7cf3774,Ia3cbaf04,Ide7496a8 into main am: 0f0aecc178Yabin Cui
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2736161 Change-Id: If60a902e542603b280c2d1dcb67634ebb1e3128d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01Merge changes Ie7cf3774,Ia3cbaf04,Ide7496a8 into mainYabin Cui
* changes: simpleperf: Add doc for reducing lost/truncated samples simpleperf: Use thousand groups when reporting sample counts simpleperf: Improve log message
2023-09-01simpleperf: Add doc for reducing lost/truncated samplesYabin Cui
Bug: 297776904 Test: none Change-Id: Ie7cf37745da2f86c3178a9f479616f3281080063
2023-09-01simpleperf: Use thousand groups when reporting sample countsYabin Cui
Bug: 297776904 Test: run simpleperf manually Test: run simpleperf_unit_test Change-Id: Ia3cbaf046bf1196653b079a49f74310dfdcc4ec6
2023-09-01simpleperf: Improve log messageYabin Cui
When truncating stack data in samples, use "truncate" instead of "cut", to make it easier to understand. Bug: 297776904 Test: run simpleperf manually Test: simpleperf_unit_test Change-Id: Ide7496a84b6cf1be57a5f0d7d2a440addaef3b6c
2023-08-30checkpoint_gc: Exit gc if there is enough free segmentsDaniel Rosenberg
This script is primarily ensuring that there is sufficient storage during the next boot while userdata is mounted with checkpoint=disable If there are sufficient free segments, it won't matter if we've lost a large number of blocks until boot complete, so we can exit early Bug: 291181976 Test: Run checkpoint_gc with high fragmentation/low disk usage Change-Id: Ia9725aafbd19ff576b9b6279a8e342a125d32fcc
2023-08-30checkpoint_gc: Abort gc if no progress detectedDaniel Rosenberg
If a device is undergoing heavy data usage, we will not make any forwards progress in this script, leading to running for the full timeout length. In that case, we can rely on garbage collecting during the next boot. Bug: 291181976 Test: Run checkpoint_gc while running fsstress Change-Id: I568a78afe6189271772ff7d11edb78ab34a5d9ea
2023-08-22Merge Android U (ab/10368041)Xin Li
Bug: 291102124 Merged-In: I9df388226e3d34e6d2d8db11b8839b9270f96fb3 Change-Id: I6f94298e4ae344ece240c8ed2b4ba6508de07b16
2023-08-19Merge "simpleperf: Remove PAGE_MASK usage" into main am: 8cf8a27b69Juan Yescas
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2716793 Change-Id: I25313c4c57e84f53b8587d40502185c49d0f9b6b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-18Merge "simpleperf: Remove PAGE_MASK usage" into mainJuan Yescas
2023-08-18simpleperf: Remove PAGE_MASK usageJuan Yescas
Android V will support page size agnostic targets. The bionic macro PAGE_MASK won't be defined for the agnostic targets. For simpleperf, the PAGE_MACRO macro will be replaced by ~(getpagesize() - 1). Bug: 296508182 Test: source build/envsetup.sh lunch aosp_cf_arm64_phone_pgagnostic m Change-Id: If2bdece6f24e43e68f270704f480c6f1d3f644ba
2023-08-17Merge changes I72b87b7f,I19aae3b8 into main am: ae6fdbf847Yabin Cui
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2713514 Change-Id: I77a8b0704e9f6b39dc8ee63eabf31e3c158d34e2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-17Merge changes I72b87b7f,I19aae3b8 into mainYabin Cui
* changes: simpleperf: update simpleperf prebuilts to build 10661963. simpleperf: Update paths to download prebuilts
2023-08-16simpleperf: update simpleperf prebuilts to build 10661963.Yabin Cui
Taken from branch aosp-simpleperf-release. Bug: 288486587 Test: run test.py --only-host-test Change-Id: I72b87b7f2060c939c37e4b97f89cc3e437bfdc3f
2023-08-16simpleperf: Update paths to download prebuiltsYabin Cui
Also remove windows prebuilts, which are not probably not needed here. They are still available in prebuilts/simpleperf. Bug: 288486587 Test: run update.py Change-Id: I19aae3b82a8b7df15568493b70fbe3133e790159
2023-08-10Merge "simpleperf: Check device connection in app_profiler.py" into main am: ↵Yabin Cui
2dc37afe5e Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2703875 Change-Id: I501a3ff049955d866605b179a7bdadb87514019e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-10Merge "simpleperf: Check device connection in app_profiler.py" into mainYabin Cui
2023-08-10Merge "simpleperf: Update doc to use aosp-main" into main am: 84fe033656Yabin Cui
Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2701935 Change-Id: Id089d056b0bdb9e56dc2a1a1d59c027db4950d09 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-10simpleperf: Check device connection in app_profiler.pyYabin Cui
Bug: 293819830 Test: run test.py -p *test_device_not_connected Change-Id: I8306b2e536a8cac567265a92f7ddfcbd28922d74
2023-08-10Merge "simpleperf: Update doc to use aosp-main" into mainYabin Cui
2023-08-09simpleperf: Update doc to use aosp-mainYabin Cui
Bug: 288486587 Test: none Change-Id: I4adcccd89f41cf1b00ef9e4e40659c81e9291307
2023-08-09Merge "mmap-perf: Remove use of hardcoded PAGE_SIZE 4096" into main am: ↵Kalesh Singh
b8af8d3a18 Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2700536 Change-Id: I2411223a131211cf2eb955a2e126627a9189e1d7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-09Merge "mmap-perf: Remove use of hardcoded PAGE_SIZE 4096" into mainKalesh Singh
2023-08-09mmap-perf: Remove use of hardcoded PAGE_SIZE 4096Kalesh Singh
bionic hard codes the PAGE_SIZE macro as 4096. This is going away as Android begins to support larger page sizes. Remove the usage of this assumption from mmap-perf source; use instead getpagesize() which provides the real pagesize. Test: mma Bug: 295082487 Change-Id: I64255a8f3d8725a3635ed3e5a49832ec84fa91fd Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2023-08-07Merge "simpleperf: Speed up disassembling many functions in a binary" into ↵Yabin Cui
main am: 6c1db3ad93 Original change: https://android-review.googlesource.com/c/platform/system/extras/+/2694571 Change-Id: Ia1760668f451f7afa4deaa98a0534e80633d2615 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-07Merge "simpleperf: Speed up disassembling many functions in a binary" into mainYabin Cui