summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-24Merge "ext4_utils: Build ext4_crypt_init_extensions.cpp into shared lib."Tao Bao
2018-08-24Merge "simpleperf: fix the height of generated flamegraphs."Yabin Cui
2018-08-24Remove -Wno-unused-result from the defaults.Elliott Hughes
Doesn't seem to be anyone relying on it right now. Bug: N/A Test: builds Change-Id: I4078984b496b218d4c145205f32033f38e930a16
2018-08-23Merge changes from topic "working-set-tol"Treehugger Robot
* changes: libpagemap: procmem: Add option to sort by USS. libpagemap: procmem: Reset working set everytime if page_idle is used. libpagemap: Add APIs to mark and read idle pages of a process. libpagemap: add .clang-format-4
2018-08-22libpagemap: procmem: Add option to sort by USS.Sandeep Patil
In same case, especially working set, USS may be much more actionable for a process than PSS. Add option to sort by USS in all cases for the same. Bug: 111694435 Test: procmem -h -u 1 Test: procmem -h -i -u -w 1 Change-Id: Ifb9c4bd2ff18bb73d82c492cb1862a065ed630b4 Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-08-22libpagemap: procmem: Reset working set everytime if page_idle is used.Sandeep Patil
Idle page tracking works a bit differently than that of clear_refs. A write of 1 to page_idle/bitmap tell the kernel to determine if the page is "idle" and is not accessed *anytime* in the past. This way, we end up catching any new allocations that may have been done since the last time working set was reset too. Bug: 111694435 Test: procmem -h -W 1 && procmem -h -w 1 Test: procmem -h -i -W 1 Test: procmem -h -i -w 1 Test: procmem -h -i -w <pid>; alloc memory in <pid>; procmem -h -i -w <pid> Observe that newly allocated and set memory is no accounted in the working set. Change-Id: Icfabd4e27c006b84e01502fff666d76ebb74c409 Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-08-22libpagemap: Add APIs to mark and read idle pages of a process.Sandeep Patil
pm_kernel_init_page_idle() - Initialize idle page tracking. pm_kernel_has_page_idle() - Returns 1 if idle page tracking has been successfully initialized. pm_kernel_get_page_idle() - Gets the idle status of the page frame. pm_kernel_mark_page_idle() - Marks one or many page frames idle. pm_kernel_page_is_accessed() - Returns 1 if page is accessed. pm_map_mark_idle() - Marks mapped pages from a pagemap idle. Added '-i' usage flag to procmem that tells procmem to use idle page tracking. The flag is ignored in the absense of '-w' or '-W' options. Bug: 111694435 Test: procmem -i -h 1 Test: procmem -h -W 1 && procmem -h -w 1 Test: procmem -h -i -W 1 && procmem -h -i -w 1 Change-Id: Ib9cb679427798426c9477500552e9aa83a40fd48 Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-08-22libpagemap: add .clang-format-4Sandeep Patil
Bug: None Test: None Change-Id: I7413d0dcdefddec66439f5ade29aeb898f82e0f4 Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-08-22Merge "Remove Wno-unused-variable from defaults and fix resulting warnings."Treehugger Robot
2018-08-22Remove Wno-unused-variable from defaults and fix resulting warnings.Sandeep Patil
Bug: 113035007 Test: mmm -j system/extras Change-Id: Id3fa08008b643002baa5f0be0961b36db35e25a9 Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-08-22Merge "lpflash: Update for FlashPartitionTable changes."Treehugger Robot
2018-08-21Merge "Build mke2fs.conf with Android.bp."Tao Bao
2018-08-21Merge "libpagemap: make pm_kernel_* APIs consistently return negative errors."Sandeep Patil
2018-08-20Build mke2fs.conf with Android.bp.Tao Bao
Bug: 112780007 Test: Build with other changes in the topic (aosp_taimen-userdebug). Test: Boot into recovery. Verify basic functionalities (`adb shell` and `adb sideload`, factory reset). Change-Id: Ic72c5bebf6c72373e67a483062dc160638c68a4e
2018-08-17Merge "python: run tests for both python and python3."Yabin Cui
2018-08-16python: run tests for both python and python3.Yabin Cui
This is to reduce failures like https://github.com/android-ndk/ndk/issues/740. Also fix some places for python3. Bug: none Test: run test.py. Change-Id: I751ccbc9940efa8727ec7b19710d452896049762
2018-08-16Merge "simpleperf: add doc for Android platform profiling."Yabin Cui
2018-08-16Merge "simpleperf: fix binary_cache_builder.py."Yabin Cui
2018-08-16simpleperf: add doc for Android platform profiling.Yabin Cui
Also update for recently added options. Bug: none Test: run remarkable. Change-Id: Ibe464842c91bddeade4740f310617f8cef7dbef3
2018-08-16lpflash: Update for FlashPartitionTable changes.David Anderson
Bug: N/A Test: mmm system/extras/partition_tools Change-Id: I0803c6ce48fa19ef9564c2af866e4a081d84ea36
2018-08-16libpagemap: make pm_kernel_* APIs consistently return negative errors.Sandeep Patil
pm_kernel_* APIs return errnos as error values, which works because almost all callers check if the return value is 'true' or 'false'. Most other APIs in libpagemap return negative errors however. Fix pm_kernel_* APIs to be consistent with other library functions. Bug: 111694435 Test: procrank; procmem 1; librank Change-Id: Ia5cbf6a5676bc797f7cf0843f8b90228bfc3eaec Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-08-16Merge "Convert mkuserimg_mke2fs.sh to python"Tianjie Xu
2018-08-15simpleperf: fix binary_cache_builder.py.Yabin Cui
libc.so/libart.so on device has .symtab but not .debug_line. In this case, we still want to replace it with the unstripped binary. Bug: none Test: run test.py. Change-Id: I0308e7fafe1f41c2e57870cf72355dc8151ed9fd
2018-08-16Merge "simpleperf: support pids in app_profiler.py."Treehugger Robot
2018-08-15Convert mkuserimg_mke2fs.sh to pythonTianjie Xu
The mkuserimg_mke2fs.sh was a shell script, which expects all the arguments in order. This cl changes the script to python which leverages python's argumentparser and unittest modules. The script usage is unchanged; and this tool will be packed into the otatools.zip in the follow up cls. Then we'll change the caller site gradually; and remove the old shell script after that. Bug: 112555072 Bug: 63866463 Test: run unit tests & build a userdata image Change-Id: Ie6b687da3de31a3481363f01d2b5c12df91ca5ce
2018-08-15simpleperf: support pids in app_profiler.py.Yabin Cui
In app_profiler.py, add --pid option to monitor native processes, add --tid option to monitor native threads, add --system_wide option to monitor system wide. Switch inferno.py to use --pid option in app_profiler.py. Because the previous way of converting pid to program name doesn't work well on system_server process. Add tests in test.py. Bug: 112146809 Test: run test.py. Change-Id: Ifd6d9f50ed025f1aeed482cb92679de348f6af59
2018-08-15Merge "simpleperf: add pid argument to inferno"Yabin Cui
2018-08-15simpleperf: add pid argument to infernoWei Wang
Bug: 112146809 Test: inferno.sh --pid 620 Change-Id: I99afe432a194bb8799e4633f0a651ff1be2354f5 (cherry picked from commit 6db1fa95d3d4e25c49d3e7b0224df45f521f1f90)
2018-08-15Merge "Suppress google-runtime-int warning."Chih-hung Hsieh
2018-08-15Merge "simpleperf: fix removing ART frames."Treehugger Robot
2018-08-14simpleperf: fix removing ART frames.Yabin Cui
ART frames can also exist before or after JITed Java methods. Bug: none Test: run report_html.py manually, and check that ART frames Test: near JITed Java methods are removed. Change-Id: I771cb7503bb62e8d0fc71167bfd887abe069554f
2018-08-14Merge "simpleperf: set kernel resources used for profiling on Android >=Q."Treehugger Robot
2018-08-14Merge "Enable -Wimplicit-fallthrough"Treehugger Robot
2018-08-14simpleperf: set kernel resources used for profiling on Android >=Q.Yabin Cui
On Android >=Q, some debug system properties are used to set max sample freq, cpu percentage and kernel buffer size used for recording. This patches uses these debug properties to set needed kernel resources. To set cpu percentage used for recording, add --cpu-percent option. Bug: 110706031 Test: run simpleperf_unit_test. Change-Id: I532ce417099c5a39ae89bdadfe76e512241904dd
2018-08-14Merge "libfec: Use commonly used shared libraries."Tao Bao
2018-08-13libfec: Use commonly used shared libraries.Tao Bao
This helps reduce the size of libfec.so and the overall size of recovery image, as those libs are already installed on device. Bug: 112494634 Test: `m dist` with aosp_taimen-userdebug Test: `m -j bootimage` with aosp_taimen-userdebug. Check the size of `recovery/system/lib64/libfec.so`. Change-Id: I1c82ba6dcbb6f184fd9826b838af665cbfc06891
2018-08-13Enable -Wimplicit-fallthroughGeorge Burgess IV
We're trying to enable -Wimplicit-fallthrough throughout Android. This warning requires an explicit annotation every time we fall through intentionally. Thank you for explicitly commenting your fallthroughs :) Bug: 112564944 Test: Builds Change-Id: Iae8081a9776562330dd4b94d1091893086c984ad
2018-08-14Merge "simpleperf: don't pull JIT symfiles on host."Treehugger Robot
2018-08-13simpleperf: fix the height of generated flamegraphs.Yabin Cui
In FlameGraphView, maxDepth can be much bigger than needed. Because _renderSvgNodesWithSameRoot() cuts nodes with width < 0.1%. So fix the function calculating maxDepth. Bug: none Test: run report_html.py manually. Change-Id: I21e76b15d123db80d2cac3fa9bbc7337d8beb7a6
2018-08-13Merge "simpleperf: update simpleperf prebuilts to build 4949434."Treehugger Robot
2018-08-13simpleperf: don't pull JIT symfiles on host.Yabin Cui
Because they have been deleted at the end of recording. Bug: none Test: run binary_cache_builder.py manually. Change-Id: I7eaa2596ab697b1e8c6dee3e5b9dc96ebc9037fe
2018-08-13Merge "Delete micro_bench."Christopher Ferris
2018-08-13Suppress google-runtime-int warning.Chih-Hung Hsieh
Bug: 112478838 Test: build with WITH_TIDY=1 Change-Id: I66c70192a0729243d99d1462fb3dcf59d6636212
2018-08-13Merge "Replace short with int16_t."Treehugger Robot
2018-08-13simpleperf: update simpleperf prebuilts to build 4949434.Yabin Cui
Taken from branch aosp-master. Bug: none Test: run test.py on linux. Change-Id: I21893c9a88ae3bbd2182a847b0768090357ed07f
2018-08-13Replace short with int16_t.Chih-Hung Hsieh
Bug: 112478838 Test: build with WITH_TIDY=1 Change-Id: I6618efb1b005dd4194c010da9101d7899c40d30d
2018-08-12ext4_utils: Build ext4_crypt_init_extensions.cpp into shared lib.Tao Bao
This allows second stage init using libext4_utils.so. Bug: 112494634 Test: `m dist checkbuild` with aosp_marlin-userdebug Change-Id: I72141cff901c7a124c9b791535b66884eae747fb
2018-08-10Merge "simpleperf: fix a type error."Treehugger Robot
2018-08-09simpleperf: fix a type error.Yabin Cui
Bug: none Test: run simpleperf_unit_test on arm. Change-Id: I7586810e84574e9beee38fd69c63497c24946da5
2018-08-09Merge "simpleperf: fix reading dynmaic symbols."Treehugger Robot