OSDN Git Service
Anton Hansson [Wed, 24 Oct 2018 17:09:11 +0000 (17:09 +0000)]
Merge "Add preloads_copy script"
Wei Wang [Wed, 24 Oct 2018 15:04:46 +0000 (15:04 +0000)]
Merge "libperfmgr: update to c++17 and add tidy rule"
Anton Hansson [Tue, 23 Oct 2018 15:26:32 +0000 (16:26 +0100)]
Add preloads_copy script
Copied from device/google/crosshatch, to serve as the canonical
location for this script to be shared between devices.
Bug:
80508492
Test: make
Change-Id: I567c785af0a690fbbba3df0553922735b96f7390
Wei Wang [Wed, 24 Oct 2018 05:44:31 +0000 (22:44 -0700)]
libperfmgr: update to c++17 and add tidy rule
Test: libperfmgr_test
Change-Id: If8162ebc1eb9489429e7f9792b3422f3ae46093b
Treehugger Robot [Tue, 23 Oct 2018 00:52:13 +0000 (00:52 +0000)]
Merge "libperfmgr: clean up log format"
Wei Wang [Mon, 22 Oct 2018 22:19:46 +0000 (15:19 -0700)]
libperfmgr: clean up log format
Test: Build and libperfmgr_test passed
Change-Id: Ie0bf6c49f1d3f2660729b4fea9bb8aab30eea154
Treehugger Robot [Mon, 22 Oct 2018 18:38:27 +0000 (18:38 +0000)]
Merge "HintManager: Fix verbose message output"
Greg Kaiser [Mon, 22 Oct 2018 13:53:09 +0000 (06:53 -0700)]
HintManager: Fix verbose message output
The << bitshift operator has a higher precedence than the
ternary ?: conditional operator. Thus, we need to use parentheses
to make sure we get "true" or "false" output as desired.
Test: TreeHugger
Change-Id: Iaa6e3e36e4944aa535b10490624332efba8f8a2f
Wei Wang [Sun, 21 Oct 2018 03:19:21 +0000 (03:19 +0000)]
Merge "libperfmgr: Add a new type of node to manage property"
Wei Wang [Sat, 20 Oct 2018 04:57:04 +0000 (21:57 -0700)]
libperfmgr: Add a new type of node to manage property
PowerHAL sometimes need set properties, adding a new type of node to
support this usage.
Change-Id: I0c04df831d10f16a37f6ae5ae234a9ef34fc5f54
Merged-In: I18a4a50993e262c59460dc5e6cbace22b2b50047
Fixes:
116731391
Bug:
110166984
Test: Add new unit tests and libperfmgr_test passing
Tao Bao [Thu, 18 Oct 2018 23:33:15 +0000 (23:33 +0000)]
Merge "libfec: Drop the extern "C" wrapping."
Tao Bao [Thu, 18 Oct 2018 22:14:26 +0000 (15:14 -0700)]
libfec: Drop the extern "C" wrapping.
squashfs_utils.h does it in its header.
Test: `mmma -j system/extra/libfec`
Change-Id: I8cc4b5e281fe5649cbb92021285e05e8a5f28ebf
Treehugger Robot [Thu, 18 Oct 2018 03:25:39 +0000 (03:25 +0000)]
Merge "simpleperf: handle memfds created by memfd_create."
Yabin Cui [Thu, 18 Oct 2018 00:19:56 +0000 (17:19 -0700)]
simpleperf: handle memfds created by memfd_create.
memfds can be created by ART to store jit code. Map records of them
can override map records of jitted methods. So omit them.
Bug: none
Test: run simpleperf_unit_test.
Test: run simpleperf manually.
Change-Id: Ie800ecfea8f0c0d7de8cee452fb1553c30de22e1
Treehugger Robot [Tue, 16 Oct 2018 23:41:42 +0000 (23:41 +0000)]
Merge "partition_tools: Update lpdump to build against liblp changes."
Treehugger Robot [Tue, 16 Oct 2018 02:58:57 +0000 (02:58 +0000)]
Merge "Revert "simpleperf: enforce clockid support in Android Q.""
Yabin Cui [Mon, 15 Oct 2018 23:36:16 +0000 (23:36 +0000)]
Revert "simpleperf: enforce clockid support in Android Q."
This reverts commit
4bf4bfaafdfb264ded7f4f9aeb6ad874dbe179d5.
Reason for revert: it requires new kernel features in upgrading devices.
Bug:
115760286
Change-Id: I391562560e5f1ad93f2cce7f784eae1108e680a9
David Anderson [Fri, 12 Oct 2018 00:52:24 +0000 (17:52 -0700)]
partition_tools: Update lpdump to build against liblp changes.
Bug:
116802789
Test: mm lpdump
Change-Id: If559c07e403fdeddc3a44e2cad7e5435bdd71ca6
Treehugger Robot [Fri, 5 Oct 2018 20:26:26 +0000 (20:26 +0000)]
Merge "Perfprofd: Introduce libsimpleperf_dex_read and read vdex files"
Treehugger Robot [Fri, 5 Oct 2018 17:52:19 +0000 (17:52 +0000)]
Merge "Add noexcept to move constructors and assignment operators."
Chih-Hung Hsieh [Tue, 25 Sep 2018 21:30:16 +0000 (14:30 -0700)]
Add noexcept to move constructors and assignment operators.
Bug:
116614593
Test: build with WITH_TIDY=1
Change-Id: I92ae7348e51e0610cef54b80087189bb1fe5b12c
Andreas Gampe [Fri, 5 Oct 2018 00:01:44 +0000 (00:01 +0000)]
Merge "Simpleperf: Use defaults to pass static libs"
Christopher Ferris [Thu, 4 Oct 2018 22:38:26 +0000 (22:38 +0000)]
Merge "Add new parameter for creation of MapInfo object."
Treehugger Robot [Thu, 4 Oct 2018 18:46:14 +0000 (18:46 +0000)]
Merge "Simpleperf: Add enh to OWNERS"
David Anderson [Thu, 4 Oct 2018 18:20:47 +0000 (18:20 +0000)]
Merge "partition_tools: Remove references to partition guid."
Andreas Gampe [Thu, 4 Oct 2018 17:29:49 +0000 (10:29 -0700)]
Simpleperf: Add enh to OWNERS
Change-Id: I9935bee245c05c09f52bd903b14c6879dd96477d
Exempt-From-Owner-Approval: Adding owner
Test: N/A
David Anderson [Thu, 4 Oct 2018 15:38:09 +0000 (08:38 -0700)]
partition_tools: Remove references to partition guid.
Bug:
117229984
Test: builds with PRODUCT_USE_LOGICAL_PARTITIONS=true
Change-Id: Ibba49f7a066fd190f8431253302f1437f07ba6dd
Martijn Coenen [Thu, 4 Oct 2018 07:08:54 +0000 (07:08 +0000)]
Merge "Add /data/apex to directories that don't need to be encrypted."
Christopher Ferris [Wed, 3 Oct 2018 21:14:36 +0000 (14:14 -0700)]
Add new parameter for creation of MapInfo object.
Bug:
109657296
Test: Unit tests pass.
Change-Id: Ifa7ac689467b10728bfbbbfae0c6f78b20b78cda
Treehugger Robot [Wed, 3 Oct 2018 20:33:45 +0000 (20:33 +0000)]
Merge "partition_tools: Add support for partition groups."
Martijn Coenen [Wed, 3 Oct 2018 14:56:15 +0000 (16:56 +0200)]
Add /data/apex to directories that don't need to be encrypted.
There's no user data there, just code.
Bug:
112455435
Test: Using an APEX with Direct I/O in /data/apex works again
Change-Id: I5e5557445ea5d638d2dfc4db7d782ee2da207bc1
David Anderson [Wed, 3 Oct 2018 01:50:12 +0000 (18:50 -0700)]
partition_tools: Add support for partition groups.
lpmake: Add a new -g/--groups parameter to add partition groups. The
syntax is name:size. In addition, a fifth argument can be added to
-p/--partition, to specify a group for that partition. Example:
lpmake --group google:
102400000 \
--partition system:UUID:readonly:4096:google
In addition, lpdump will now display the groups table and group
assignments.
Bug:
116817738
Test: lpmake with --groups
lpdump new partition table
Change-Id: Ic1eb995f3bcf5abc7be180ac03c8ba4b82a10045
Sen Jiang [Wed, 3 Oct 2018 00:16:31 +0000 (00:16 +0000)]
Merge "verity: Support partial blocks in Update()."
Sen Jiang [Tue, 2 Oct 2018 01:07:54 +0000 (18:07 -0700)]
verity: Support partial blocks in Update().
In update_engine we get data from a callback, usually this will be a
multiple of the block size, but that's not guaranteed.
Bug:
28171891
Test: build_verity_tree_test
Change-Id: I2fdf40e6e3750a86d409885917d3b5aeb77643d1
Andreas Gampe [Wed, 19 Sep 2018 02:25:24 +0000 (19:25 -0700)]
Perfprofd: Introduce libsimpleperf_dex_read and read vdex files
Add libsimpleperf_dex_read module to allow perfprofd to read and
extract symbols from dex files.
Use libart to read vdex files for their dex file offsets. Use
libsimpleperf_dex_read to find symbols.
Bug:
73175642
Test: mmma system/extras/perfprofd
Change-Id: Ibe67087692f7ede4caf2d3b98a1cbfad570baa7c
Andreas Gampe [Mon, 17 Sep 2018 20:33:02 +0000 (13:33 -0700)]
Simpleperf: Use defaults to pass static libs
Refactor the blueprint file to pass required static-library dependencies
via a defaults object instead of linking them whole-static-libs. This
will avoid double linking.
Bug:
73175642
Test: mmma system/extras/simpleperf
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I596477748284dfa48dfc1a2202613f7a20a429ee
Sen Jiang [Fri, 28 Sep 2018 18:59:36 +0000 (18:59 +0000)]
Merge "verity: Add HashTreeBuilder::CheckHashTree()."
Treehugger Robot [Tue, 25 Sep 2018 03:09:50 +0000 (03:09 +0000)]
Merge "Perfprofd: Make the service non-oneshot"
Treehugger Robot [Tue, 18 Sep 2018 01:35:33 +0000 (01:35 +0000)]
Merge "Fix clang-tidy performance warnings in system/extra."
Chih-Hung Hsieh [Mon, 17 Sep 2018 22:23:47 +0000 (15:23 -0700)]
Fix clang-tidy performance warnings in system/extra.
* Use more efficient overloaded string methods.
Bug:
30411878
Test: build with WITH_TIDY=1
Change-Id: If1a2931cab7f70e4a4bd5fcc06b2ae0260169cd8
Tianjie Xu [Thu, 13 Sep 2018 22:43:18 +0000 (22:43 +0000)]
Merge "Remove the mkuserimg_mke2fs.sh"
Tianjie Xu [Mon, 10 Sep 2018 21:18:56 +0000 (14:18 -0700)]
Remove the mkuserimg_mke2fs.sh
The shell script is not used as we have switched to the python binary.
Test: mma
Bug:
112555072
Change-Id: I8849fc91a6d62b58a01b29544f2bc5b24c7df89e
Treehugger Robot [Sat, 8 Sep 2018 04:29:18 +0000 (04:29 +0000)]
Merge "bootanalyze: Add SysUI timing"
Treehugger Robot [Sat, 8 Sep 2018 04:17:21 +0000 (04:17 +0000)]
Merge "libperfmgr: add additional OWNERS and cpplint config"
Wei Wang [Fri, 7 Sep 2018 21:46:10 +0000 (14:46 -0700)]
libperfmgr: add additional OWNERS and cpplint config
Test: build
Change-Id: Iede2faacfe24e74b817d9c159566998a71d36b7b
Wei Wang [Fri, 7 Sep 2018 21:46:10 +0000 (14:46 -0700)]
bootanalyze: Add SysUI timing
Bug:
112049386
Test: bootanalyze.py -r -c system/extras/boottime_tools/bootanalyze/config.yaml -n 10 -g
Change-Id: I0a2fcbaaebc3ebbfec399fd3c8a1d977b95f96bb
Sen Jiang [Tue, 4 Sep 2018 21:16:06 +0000 (14:16 -0700)]
verity: Add HashTreeBuilder::CheckHashTree().
Check the built hash tree against a given hash tree in a buffer, used
to verify the hash tree when generating OTA.
Bug:
28171891
Test: generate a payload with verity hash tree
Change-Id: I60d6c3657343438b7720727874ab849e5970e576
Treehugger Robot [Tue, 4 Sep 2018 20:57:30 +0000 (20:57 +0000)]
Merge changes I10561d93,I05d248a7
* changes:
Perfprofd: Add TEST_MAPPING
Perfprofd: Disable tests when lacking arch_perfmon
Treehugger Robot [Sat, 1 Sep 2018 17:27:23 +0000 (17:27 +0000)]
Merge "perfprofd: use getHealthInfo for get_charging"
Joel Fernandes [Thu, 30 Aug 2018 19:30:58 +0000 (19:30 +0000)]
Merge "Remove ashmem from system/extras"
Yabin Cui [Thu, 30 Aug 2018 17:07:56 +0000 (17:07 +0000)]
Merge "perfprofd: add env to disable change of perf_event_paranoid."
Yabin Cui [Wed, 29 Aug 2018 21:54:19 +0000 (14:54 -0700)]
perfprofd: add env to disable change of perf_event_paranoid.
This is to avoid a cts test failure (which checks the value of
perf_event_paranoid) while perfprofd is running.
Bug:
111855759
Test: run perfprofd_test and perf_event_paranoid isn't changed.
Change-Id: Ifa610a21b560d0eb536cb76914b116bd1e769634
Andreas Gampe [Thu, 30 Aug 2018 15:26:28 +0000 (08:26 -0700)]
Perfprofd: Add TEST_MAPPING
Bug:
73175642
Test: pushd system/extras/perfprofd ; atest ; popd
Change-Id: I10561d93b8c5c01c0bc3e28c1a08d947045905d3
Andreas Gampe [Wed, 29 Aug 2018 01:17:10 +0000 (18:17 -0700)]
Perfprofd: Disable tests when lacking arch_perfmon
Under certain circumstances perf won't be available. As we want to
run some tests, anyways, disable the ones that need perf.
Bug:
113359952
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I05d248a7952a5939f9b74729a5809469abeaaa66
Yabin Cui [Thu, 30 Aug 2018 00:20:46 +0000 (00:20 +0000)]
Merge "simpleperf: sync JIT debug info with records."
Treehugger Robot [Wed, 29 Aug 2018 23:59:31 +0000 (23:59 +0000)]
Merge "Perfprofd: Fix AndroidTest.xml"
Andreas Gampe [Wed, 29 Aug 2018 17:54:09 +0000 (10:54 -0700)]
Perfprofd: Fix AndroidTest.xml
Bug:
73175642
Bug:
113512417
Test: mmma system/extras/perfprofd
Test: atest perfprofd_test
Change-Id: I3ab707ea91998d99032aca62ff64eb21b922ca17
Yabin Cui [Mon, 27 Aug 2018 17:30:20 +0000 (10:30 -0700)]
simpleperf: sync JIT debug info with records.
To save time, simpleperf doesn't check JIT debug info update each time
unwinding a sample. Instead, it checks JIT debug info update every
100ms. So some samples (about 1%) can be failed to unwind because of
lacking the latest JIT debug info.
This patch fixes it by using monotonic timestamps to sync JIT debug info
and samples. It contains below changes:
1. Use monotonic timestamp for records by default if that is supported.
2. Add a priority queue in JITDebugReader to sort existing JIT debug
info by timestamp. Each time reading new JIT debug info from remote
processes, it is put in the queue.
3. Each time processing a record, JITDebugReader flushes all debug info
in the queue generated before the record. So a record only sees JIT
debug info generated before it.
4. If unwinding a sample fails because of incomplete JIT debug info,
read newest debug info from the process and retry unwinding.
Bug:
110923759
Test: run simpleperf manually and check no unwinding fails because
Test: of lacking the latest JIT debug info.
Change-Id: I769b72a3345f917e5c0f9a9936d19bca536e1153
Yifan Hong [Tue, 28 Aug 2018 22:10:42 +0000 (15:10 -0700)]
perfprofd: use getHealthInfo for get_charging
get_charging returns whether the phone is connected
to a charger. The phone can be connected to a charger without
actually being charged.
Test: perfprofd_test
Bug:
112184119
Change-Id: I0b574c73043056c7ceceb38df343ba7c9dce4ebf
Andreas Gampe [Tue, 28 Aug 2018 20:45:13 +0000 (13:45 -0700)]
Perfprofd: Make the service non-oneshot
Let the service be restarted.
Bug:
73175642
Test: mmma system/extras/perfprofd
Change-Id: Ib8b4cbe0fdcbc0e2926bcab9d9e9107dcdd01851
Elliott Hughes [Tue, 28 Aug 2018 14:56:26 +0000 (14:56 +0000)]
Merge "Clean up the global -Wno- in system/extras."
Treehugger Robot [Mon, 27 Aug 2018 20:34:14 +0000 (20:34 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build
4977750."
Yabin Cui [Mon, 27 Aug 2018 17:45:38 +0000 (10:45 -0700)]
simpleperf: update simpleperf prebuilts to build
4977750.
Taken from branch aosp-master.
Bug: none
Test: run test.py on linux.
Change-Id: I3a086e44fc531e2402159d47bd87e83987ceb960
Elliott Hughes [Mon, 27 Aug 2018 19:11:07 +0000 (12:11 -0700)]
Clean up the global -Wno- in system/extras.
Bug: N/A
Test: builds
Change-Id: Idde3d0dafba08ffcd12cc9aa3540550e2601a227
Joel Fernandes [Fri, 24 Aug 2018 19:20:28 +0000 (12:20 -0700)]
Remove ashmem from system/extras
This topic removes ashmem from ART. Changes the names in system/extras
too. It only affects "dalvik-" ashmem regions which are the majority.
Test: run simpleperf_unit_test.
Test: run perfprofd_test.
Change-Id: I3ee65c8d401427613b4b17a66af807ab81ff8a80
Signed-off-by: Joel Fernandes <joelaf@google.com>
Treehugger Robot [Sun, 26 Aug 2018 21:47:13 +0000 (21:47 +0000)]
Merge "Remove -Wno-unused-result from the defaults."
Treehugger Robot [Sat, 25 Aug 2018 01:42:34 +0000 (01:42 +0000)]
Merge "perfprofd: fix test PerfProfdTest.ConfigFileParsing."
Yabin Cui [Fri, 24 Aug 2018 22:33:29 +0000 (15:33 -0700)]
perfprofd: fix test PerfProfdTest.ConfigFileParsing.
Bug: none
Test: run perfprofd_test.
Change-Id: I4aabffc0043fa53c1216648ec184b09a14868f6f
Tao Bao [Fri, 24 Aug 2018 21:48:41 +0000 (21:48 +0000)]
Merge "ext4_utils: Build ext4_crypt_init_extensions.cpp into shared lib."
Yabin Cui [Fri, 24 Aug 2018 17:49:11 +0000 (17:49 +0000)]
Merge "simpleperf: fix the height of generated flamegraphs."
Elliott Hughes [Fri, 24 Aug 2018 17:38:04 +0000 (10:38 -0700)]
Remove -Wno-unused-result from the defaults.
Doesn't seem to be anyone relying on it right now.
Bug: N/A
Test: builds
Change-Id: I4078984b496b218d4c145205f32033f38e930a16
Treehugger Robot [Thu, 23 Aug 2018 01:35:23 +0000 (01:35 +0000)]
Merge changes from topic "working-set-tol"
* 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
Sandeep Patil [Thu, 16 Aug 2018 20:00:01 +0000 (13:00 -0700)]
libpagemap: procmem: Add option to sort by USS.
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>
Sandeep Patil [Thu, 16 Aug 2018 18:55:56 +0000 (11:55 -0700)]
libpagemap: procmem: Reset working set everytime if page_idle is used.
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>
Sandeep Patil [Wed, 15 Aug 2018 20:24:09 +0000 (13:24 -0700)]
libpagemap: Add APIs to mark and read idle pages of a process.
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>
Sandeep Patil [Wed, 22 Aug 2018 17:42:14 +0000 (10:42 -0700)]
libpagemap: add .clang-format-4
Bug: None
Test: None
Change-Id: I7413d0dcdefddec66439f5ade29aeb898f82e0f4
Signed-off-by: Sandeep Patil <sspatil@google.com>
Treehugger Robot [Wed, 22 Aug 2018 23:10:27 +0000 (23:10 +0000)]
Merge "Remove Wno-unused-variable from defaults and fix resulting warnings."
Sandeep Patil [Wed, 22 Aug 2018 21:33:15 +0000 (14:33 -0700)]
Remove Wno-unused-variable from defaults and fix resulting warnings.
Bug:
113035007
Test: mmm -j system/extras
Change-Id: Id3fa08008b643002baa5f0be0961b36db35e25a9
Signed-off-by: Sandeep Patil <sspatil@google.com>
Treehugger Robot [Wed, 22 Aug 2018 16:45:33 +0000 (16:45 +0000)]
Merge "lpflash: Update for FlashPartitionTable changes."
Tao Bao [Tue, 21 Aug 2018 22:35:48 +0000 (22:35 +0000)]
Merge "Build mke2fs.conf with Android.bp."
Sandeep Patil [Tue, 21 Aug 2018 18:16:36 +0000 (18:16 +0000)]
Merge "libpagemap: make pm_kernel_* APIs consistently return negative errors."
Tao Bao [Wed, 15 Aug 2018 05:16:01 +0000 (22:16 -0700)]
Build mke2fs.conf with Android.bp.
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
Yabin Cui [Fri, 17 Aug 2018 01:10:37 +0000 (01:10 +0000)]
Merge "python: run tests for both python and python3."
Yabin Cui [Thu, 16 Aug 2018 23:40:35 +0000 (16:40 -0700)]
python: run tests for both python and python3.
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
Yabin Cui [Thu, 16 Aug 2018 22:06:25 +0000 (22:06 +0000)]
Merge "simpleperf: add doc for Android platform profiling."
Yabin Cui [Thu, 16 Aug 2018 17:48:42 +0000 (17:48 +0000)]
Merge "simpleperf: fix binary_cache_builder.py."
Yabin Cui [Wed, 15 Aug 2018 17:19:59 +0000 (10:19 -0700)]
simpleperf: add doc for Android platform profiling.
Also update for recently added options.
Bug: none
Test: run remarkable.
Change-Id: Ibe464842c91bddeade4740f310617f8cef7dbef3
David Anderson [Thu, 16 Aug 2018 16:56:27 +0000 (09:56 -0700)]
lpflash: Update for FlashPartitionTable changes.
Bug: N/A
Test: mmm system/extras/partition_tools
Change-Id: I0803c6ce48fa19ef9564c2af866e4a081d84ea36
Sandeep Patil [Wed, 15 Aug 2018 21:22:55 +0000 (14:22 -0700)]
libpagemap: make pm_kernel_* APIs consistently return negative errors.
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>
Tianjie Xu [Thu, 16 Aug 2018 02:38:23 +0000 (02:38 +0000)]
Merge "Convert mkuserimg_mke2fs.sh to python"
Yabin Cui [Thu, 16 Aug 2018 00:01:18 +0000 (17:01 -0700)]
simpleperf: fix binary_cache_builder.py.
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
Treehugger Robot [Thu, 16 Aug 2018 00:15:40 +0000 (00:15 +0000)]
Merge "simpleperf: support pids in app_profiler.py."
Tianjie Xu [Thu, 9 Aug 2018 07:19:10 +0000 (00:19 -0700)]
Convert mkuserimg_mke2fs.sh to python
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
Yabin Cui [Wed, 15 Aug 2018 17:21:36 +0000 (10:21 -0700)]
simpleperf: support pids in app_profiler.py.
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
Yabin Cui [Wed, 15 Aug 2018 17:30:13 +0000 (17:30 +0000)]
Merge "simpleperf: add pid argument to inferno"
Wei Wang [Thu, 2 Aug 2018 19:26:10 +0000 (12:26 -0700)]
simpleperf: add pid argument to inferno
Bug:
112146809
Test: inferno.sh --pid 620
Change-Id: I99afe432a194bb8799e4633f0a651ff1be2354f5
(cherry picked from commit
6db1fa95d3d4e25c49d3e7b0224df45f521f1f90)
Chih-hung Hsieh [Wed, 15 Aug 2018 17:05:43 +0000 (17:05 +0000)]
Merge "Suppress google-runtime-int warning."
Treehugger Robot [Wed, 15 Aug 2018 00:40:28 +0000 (00:40 +0000)]
Merge "simpleperf: fix removing ART frames."
Yabin Cui [Tue, 14 Aug 2018 00:42:25 +0000 (17:42 -0700)]
simpleperf: fix removing ART frames.
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
Treehugger Robot [Tue, 14 Aug 2018 19:35:46 +0000 (19:35 +0000)]
Merge "simpleperf: set kernel resources used for profiling on Android >=Q."