summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-07-04Snap for 4876468 from b8d86c0051a0113659edf2bf7ea80b6d318e01f5 to pi-dr1-releaseandroid-9.0.0_r12android-9.0.0_r11pie-dr1-releaseandroid-build-team Robot
Change-Id: I262a45bdb491e2333aae553cadaa6048ae86c41d
2018-07-03simpleperf: fix test on APCT.pie-dr1-devYabin Cui
Bug: http://b/77470883 Test: run adb shell Test: /data/local/tmp/simpleperf_unit_test/simpleperf_unit_test. Change-Id: I640ad76b68842045f6ecdcb3cf686b7823d7d5db (cherry picked from commit 03a31c13168f6502883e8beb4dbc76bc064a54a0)
2018-05-23Merge "Make logging much less verbose" into pi-devpie-devTreeHugger Robot
2018-05-22Make logging much less verbosePaul Crowley
On a broken device, this logging is much too verbose and obscures real information. Test: adb shell mkdir -p /data/media/10/foo, then create second Bug: 78592001 Change-Id: Idf235c65048187791a8e5f184a46ee802283de86
2018-05-19cppreopts: using /dev/block/by-name/system_{ab} for postinstallBowgo Tsai
/dev/block/bootdevice/by-name/system_{ab} should not be used because there is no requirement of a single boot device. Replace it with /dev/block/by-name/system_{ab}. Bug: 78613232 Test: factory wipe, reboot device to check logcat Change-Id: Ia3a476ef7a4b271eff90f44ef4e04fdbee17052b Merged-In: Ia3a476ef7a4b271eff90f44ef4e04fdbee17052b (cherry picked from commit 5ede0b2dc72585d14cc3ef09e6e8c5776dcac9a7)
2018-05-17Recursively list directories that break encryptionPaul Crowley
If we're unable to set or change encryption policy because the directory is not empty, log the contents that cause the problem Bug: 78592001 Test: adb shell mkdir -p /data/media/10/foo, then create second user Change-Id: I87cc46f09551728a7949659b21ae0401ae253e5e
2018-05-11Merge changes I8fd41da0,I9a7ad445,I4e15cd4f,I896cfe8c,I5d80887a, ... into pi-devAndreas Gampe
* changes: Perfprofd: Minor fixes Perfprofd: Add string-based binder interface Perfprofd: Add ScopeGuard for file deletion Perfprofd: Fix binder interface Perfprofd: Use the right parameter Perfprofd: Expose more parameters in the simple binder interface Perfprofd: Add process to configreader Perfprofd: More scripts Perfprofd: Separate symbol offset in samples Perfprofd: Add parallel processing to stack script Perfprofd: Update perf_proto_stack
2018-05-08Append null byte to exPath.Rajeev Kumar
Note: Without this fix on Android Go device exPath gets some junk chars at the end of exPath because readlink() does not append a null byte to buf. Bug: 79430762 Test: Tested manually by running alloc-stress on Android Go device. Change-Id: I8e09d8c6d670b7d29e7f98c00dd8e9e9c5492169
2018-05-03simpleperf: improve managing temp files.Yabin Cui
Instead of relying on callers to delete temp files, support managing all temp files in ScopedTempFiles. Bug: http://b/73127105 Test: run simpleperf_unit_test and simpleperf manually. Change-Id: Ib73065754657320ebd244f676e3f851544ff2718 (cherry picked from commit c68e66dcf067c052319c8da13a6a49ff06481fa5)
2018-05-03Perfprofd: Minor fixesAndreas Gampe
Set the allowed minimum for collection_interval to 0. Copy the sampling_frequency. Add "-m 8192" when call-stacks are requested. (cherry picked from commit 59a18215031faedc4bbee70baef363299cec0b69) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: I8fd41da08eb14dadc98b85afe1e4dbed2d9bc9b1 Change-Id: I8fd41da08eb14dadc98b85afe1e4dbed2d9bc9b1
2018-05-03Perfprofd: Add string-based binder interfaceAndreas Gampe
Add a "weakly-typed" interface that works similar to the shellCommand implementation, encoding parameters into a string decoded by the ConfigReader. (cherry picked from commit 9301b6f524b8267f14c88b0e5e2ed64bbc186fd4) Bug: 73175642 Test: mmma system/extras/perfprofd Merged-In: I9a7ad4452ba7a040906e237a76b63e50fbe5aa24 Change-Id: I9a7ad4452ba7a040906e237a76b63e50fbe5aa24
2018-05-03Perfprofd: Add ScopeGuard for file deletionAndreas Gampe
Ensure that the temporary will be deleted. (cherry picked from commit 529af96ba77f26c1597d077ca55d051feeb5df3d) Bug: 73175642 Test: perfprofd_test Merged-In: I4e15cd4fa81a173a70126edaea5c0a0023b8c359 Change-Id: I4e15cd4fa81a173a70126edaea5c0a0023b8c359
2018-05-03Perfprofd: Fix binder interfaceAndreas Gampe
Actually forward to the right onTransact. (cherry picked from commit 109780d575f0776fca092b5a238a0bff21e3ece1) Bug: 73175642 Test: perfprofd_test Test: manual Merged-In: I896cfe8cf166c00bc49f4be5de8b19f913baad2d Change-Id: I896cfe8cf166c00bc49f4be5de8b19f913baad2d
2018-05-03Perfprofd: Use the right parameterAndreas Gampe
Fix a typo. (cherry picked from commit 51c08f9041648378717c79f787db773ac55e74b1) Bug: 73175642 Test: perfprofd_test Merged-In: I5d80887af08e3b3a1b19a1a303ca1c63bec75fbd Change-Id: I5d80887af08e3b3a1b19a1a303ca1c63bec75fbd
2018-05-03Perfprofd: Expose more parameters in the simple binder interfaceAndreas Gampe
Expose most interesting parameters. (cherry picked from commit 5a7181b3d3127660916e7a14057fdafa71c7d77b) Bug: 73175642 Test: mmma system/extras/perfprofd Merged-In: Ifab7f0a0c4a1e664a6b679c6f2d060f02eee232c Change-Id: Ifab7f0a0c4a1e664a6b679c6f2d060f02eee232c
2018-05-03Perfprofd: Add process to configreaderAndreas Gampe
So that it is exposed to the command line interface. (cherry picked from commit abc57274490870903f591140ad3a5cd509a0b372) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Test: manual Merged-In: I18903e860d91957dc53adeea9c1f12596fd7ff74 Change-Id: I18903e860d91957dc53adeea9c1f12596fd7ff74
2018-05-03Perfprofd: More scriptsAndreas Gampe
Add conversion of JSON files to a SQLite database, and aggregation of data in a SQLite database to a flamegraph. (cherry picked from commit 597f40df90fae8b89ce7672da6ab4825eb234d10) Bug: 73175642 Test: m Merged-In: I70827c7395b6a60a59ed420503434ad4b84a105f Change-Id: I70827c7395b6a60a59ed420503434ad4b84a105f
2018-05-03Perfprofd: Separate symbol offset in samplesAndreas Gampe
Separate out the offset from the start of the sample in the reporting struct. Parse the data from unwind_symbols. (cherry picked from commit b84d5fd0c6e67af069fe542149b0fc7d72844e50) Bug: 73175642 Test: manual Merged-In: I8910fa826cef0843dd9f98342df4203cb3ebf5c5 Change-Id: I8910fa826cef0843dd9f98342df4203cb3ebf5c5
2018-05-03Perfprofd: Add parallel processing to stack scriptAndreas Gampe
Allow to process multiple proto files in parallel. This will fork out each processed file into a subprocess, as making symbolization thread-safe is non-trivial. (cherry picked from commit 34c434d468d71e83b4ba9d69b1143c993ae1829e) Bug: 73175642 Test: manual Merged-In: I9bda1717e3f50569ad43f457413c7bc5831fd6a5 Change-Id: I9bda1717e3f50569ad43f457413c7bc5831fd6a5
2018-05-03Perfprofd: Update perf_proto_stackAndreas Gampe
Update the python script. Also clean it up. (cherry picked from commit afe71cfc8ce97887756aad613169358e28c45a62) Bug: 73175642 Test: manual: PYTHONPATH=$PYTHONPATH:$ANDROID_BUILD_TOP/development/scripts python -u system/extras/perfprofd/scripts/perf_proto_stack.py --syms /storage/perfprofd_symbols/out/target/product/walleye/symbols --skip-kernel-syms --print-samples --print-sym-histogram perf.data.encoded.0 Merged-In: I3d9c1eb0bca8818f53095d1410b5f95a0e93f24d Change-Id: I3d9c1eb0bca8818f53095d1410b5f95a0e93f24d
2018-04-26Make the NOT_CONFIG_SYSVIPC test also exercise the syscallsLuis Hector Chavez
This change augments the NOT_CONFIG_SYSVIPC test, such that in addition to being evidence-based (by inspecting some paths in /proc), it also tries to invoke the syscalls. This is done because in some platforms like Chrome OS, the SYSVIPC kernel config is enabled (because some parts of the system require that to boot), but when Android is running, all SYSVIPC syscalls are blocked by an LSM in the kernel. It also changes the /proc/sysvipc path check from using access(2) and F_OK to R_OK, since the paths itself is present and visible. Bug: 77490033 Test: CtsKernelConfigTestCases Change-Id: I79df1816e0e5d3618da2a0e242c3d685352b7220 Merged-In: I79df1816e0e5d3618da2a0e242c3d685352b7220 (cherry picked from commit 687cd48d8bce5548c7bf1dcbbfd3fd770e452362)
2018-04-21Merge "mkuserimg_mke2fs: Support passing reserved block percent" into pi-devTreeHugger Robot
2018-04-19libperfmgr: change to use Value directly in configWei Wang
Using Value directly is more clear and intuitive than using an index of Values. Bug: 77282526 Test: libperfmgr_test and boot wahoo Change-Id: I4414a2bb04be8bf3fc01c20695ebd6ac3c19df79
2018-04-12Perfprofd: Add support for sampling frequencyAndreas Gampe
Allow sampling frequency (-f) besides sampling period (-c), and support simpleperf default values (when neither is set). (cherry picked from commit e4b2ed98a9a4a35ac4bb46c20b1599e0889eb3a3) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: I40d7472bc45f5efd33687f9d8a5d6493343091c3 Change-Id: I40d7472bc45f5efd33687f9d8a5d6493343091c3
2018-04-06mkf2fsuserimg.sh: set fsverity feature bitJaegeuk Kim
Bug: 74604441 Bug: 67380979 Change-Id: I64800783437ed28054d0ada8cb6537bc6683b238 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2018-04-04Merge "Perfprofd: Factor out threaded handler" into pi-devTreeHugger Robot
2018-04-03Merge "Perfprofd: Place darwin disable into general defaults" into pi-devTreeHugger Robot
2018-04-03Merge "Make bootctrl.default use LOCAL_HEADER_LIBS bootimg_headers." into pi-devJayant Chowdhary
2018-04-02Perfprofd: Factor out threaded handlerAndreas Gampe
To improve testability. (cherry picked from commit b019ddc547f4491fee3ac95415767b02ae40edd1) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: I259b86b9ef7c8c7d8523f3875ce63c2e71e42543 Change-Id: I259b86b9ef7c8c7d8523f3875ce63c2e71e42543
2018-04-02Perfprofd: Place darwin disable into general defaultsAndreas Gampe
Avoid further Mac breakage. (cherry picked from commit 2230fb2d54ef4cc841c3347e8975320d621488a3) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: I3b4db7d363c69b5e4249223d8cb185a4e9eef5cf Change-Id: I3b4db7d363c69b5e4249223d8cb185a4e9eef5cf
2018-04-02Make bootctrl.default use LOCAL_HEADER_LIBS bootimg_headers.Jayant Chowdhary
Bug: 74763691 Test: make -j64 Merged-In: I55fb951eea449c27aa0a4a5e9ab1a4dca09dbfa5 Change-Id: I55fb951eea449c27aa0a4a5e9ab1a4dca09dbfa5 (cherry picked from commit 41afebb109a6f4b444c43622daa9707820eef6ef)
2018-04-02Perfprofd: Use ConfigReader for shellCommand startProfilingAndreas Gampe
Use the ConfigReader for parsing arguments to startProfiling, so that new arguments can be transparently picked up. This diverges it from the AIDL interface, but is more functional and maintainable. Also adjust some bounds. (cherry picked from commit f73ddfa2db064d284ee9fa9821595a597d5ff2cb) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Test: manual: adb shell cmd perfprofd startProfiling main_loop_iterations=2 compress=1 stack_profile=0 sampling_period=10000 sample_duration=10 collection_interval=1 Test: manual: adb shell cmd perfprofd startProfiling main_loop_iterations=2 compress=1 stack_profile=0 sampling_period=10000 sample_duration=10 collection_interval=1 bla Merged-In: I7c437b43634aab70ea9463161fff6de303e427c8 Change-Id: I7c437b43634aab70ea9463161fff6de303e427c8
2018-03-30Merge "Support Speck encryption." into pi-devTreeHugger Robot
2018-03-30Support Speck encryption.Paul Crowley
Test: Modified Pixel to support and use Speck encryption, booted. Bug: 77227248 Change-Id: I1efc54b60e074265914fde764ab4b85798128d67 Merged-In: I1efc54b60e074265914fde764ab4b85798128d67
2018-03-30Fix Darwin build (by not building).Elliott Hughes
(cherry picked from commit 15873826ab2ffc0638e143583645ff597d3bd534) Bug: 73175642 Test: doesn't break Linux Merged-In: Ieae89a24ef448559a9e840ec79291ee27f1eb992 Change-Id: Ieae89a24ef448559a9e840ec79291ee27f1eb992
2018-03-29Perfprofd: Move dropbox functionality into coreAndreas Gampe
Move functionality into core, let cmdline version react to dropbox configuration. (cherry picked from commit 7f85bff629e68efd3f5127fc43edddcadfecb007) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: I3415d7c15cf527afe70d93e4b4992a121d52164c Change-Id: I3415d7c15cf527afe70d93e4b4992a121d52164c
2018-03-29Perfprofd: Move proto to its own static libraryAndreas Gampe
In order to break dependency cycles, move the record proto to its own library. (cherry picked from commit a145b35d4780b4f81a8355bb3fe58a79af8a06f0) Bug: 73175642 Test: mmma system/extras/perfprofd Merged-In: I0931a59c82d92e2c9c2e702dbc89f76cd9804919 Change-Id: I0931a59c82d92e2c9c2e702dbc89f76cd9804919
2018-03-29Perfprofd: Factor out the command-line-based loopAndreas Gampe
Move cmdline-related code out of the core. (cherry picked from commit 04672dd13fd46a5f07f553ad7623f21277ef8bf2) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: Iae2a74f82ed103891149a8f21f8db509c8f53b65 Change-Id: Iae2a74f82ed103891149a8f21f8db509c8f53b65
2018-03-29Perfprofd: Move dropbox code to its own static libraryAndreas Gampe
Preparation to move this to generic code. (cherry picked from commit db1628647e81dc2d9a62471d4f3b78c84069040e) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: I2cad55f201ff8af9acfe8e8e34c6bafea8ef1285 Change-Id: I2cad55f201ff8af9acfe8e8e34c6bafea8ef1285
2018-03-29Merge "Remove verify_boot_signature." into pi-devTreeHugger Robot
2018-03-29Merge "Allow recovery-dtbo in recovery.img to be signed" into pi-devTreeHugger Robot
2018-03-29Merge changes from topic "move_boottime_script" into pi-devTreeHugger Robot
* changes: io_analysis/check_file_read.py: fix typo Move boottime I/O tools to system/extra
2018-03-29io_analysis/check_file_read.py: fix typoWei Wang
Bug: 65481007 Test: Build Change-Id: I082bf20e181a19f6f9b7158bb6088af60c123440
2018-03-29Move boottime I/O tools to system/extraWei Wang
Bug: 65481007 Test: Build Change-Id: I6415b210b4acae87f5e97c980a0f032cdc75161e
2018-03-29Remove verify_boot_signature.David Benjamin
The immediate motivation is to trim away uses of the <openssl/asn1t.h> header. Per email with samitolvanen@, this verified boot scheme has been deprecated for a while, and this target isn't actually used anywhere. It is only a rough example for OEMs. Accordingly, remove it. Test: mma Bug: 74763691 Change-Id: Ie3b6d2c3fb0a6873b81a1a048945ef8258521f16 (cherry picked from commit e1f150b1d7002e042a8de150988147bb1a6958f1)
2018-03-29Merge "Perfprofd: Add compression to config proto" into pi-devTreeHugger Robot
2018-03-29Allow recovery-dtbo in recovery.img to be signedHridya Valsaraju
Non-A/B devices need to include the DTBO image within the recovery partition to be self-sufficient and prevent OTA failures. The CL includes the size of recovery DTBO in the size of the boot image to be signed to prevent image truncation. Test: Verified that recovery.img was not getting truncated. Bug: 74763691 Change-Id: Id56928129dfea167e2451aa5f4609fef77e00ff4 Merged-In: Id56928129dfea167e2451aa5f4609fef77e00ff4 (cherry picked from commit 9bb9f8f857170c5865944bdc9e4700a73a6e7434)
2018-03-29Perfprofd: Add compression to config protoAndreas Gampe
(cherry picked from commit 28a379f08c7e683689b1b96f1fe1a8e65611abec) Bug: 73175642 Test: mmma system/extras/perfprofd Merged-In: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a Change-Id: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a
2018-03-28simpleperf: build simpleperf instead of simpleperf32 on gce_x86.Yabin Cui
Bug: http://b/77219275 Test: build manually. Change-Id: I9082fee3b31b7eb8e90096262c11d1875cbf4e64 (cherry picked from commit 170cb4963a73aa70e31667d94d8efcaabd89ba25)
2018-03-27Perfprofd: Implement symbolization over quipper dataAndreas Gampe
Reimplement the symbolization post-process step to walk quipper protobufs, looking for mapped files without build ID data. (cherry picked from commit cbc02bc7a2e84f90f11b3b066ec0aeb66c3d38eb) Bug: 73175642 Test: mmma system/extras/perfprofd Test: perfprofd_test Merged-In: I7c27b09b6a7f9c743472837962021845b2f4db7f Change-Id: I7c27b09b6a7f9c743472837962021845b2f4db7f