OSDN Git Service
Christopher Ferris [Thu, 19 Sep 2019 15:08:16 +0000 (08:08 -0700)]
Merge "Add support for scudo native allocator."
am:
c63affea9a
Change-Id: I934cbfa3f5c940aed1cdbd49acab45e629335108
Christopher Ferris [Thu, 19 Sep 2019 14:42:26 +0000 (14:42 +0000)]
Merge "Add support for scudo native allocator."
Kaiwen Szu [Thu, 19 Sep 2019 10:43:44 +0000 (03:43 -0700)]
Merge "Add vbmake to build super_vbmeta.img"
am:
1c23735731
Change-Id: I44de5a5c1c67e3d23a10a9b18d1e03c52fcabd93
Treehugger Robot [Thu, 19 Sep 2019 10:21:53 +0000 (10:21 +0000)]
Merge "Add vbmake to build super_vbmeta.img"
Christopher Ferris [Wed, 18 Sep 2019 17:31:40 +0000 (10:31 -0700)]
Add support for scudo native allocator.
Bug:
137795072
Test: Unit tests pass.
Test: Ran memory_replay and verified that RSS is non-zero.
Change-Id: I266b9d4e4d1c1a3011acc47f9891a2b65979d870
Yabin Cui [Wed, 18 Sep 2019 00:54:18 +0000 (17:54 -0700)]
Merge "simpleperf: use path in binary_cache in pprof_proto_generator.py."
am:
f0988974b0
Change-Id: Ia602ea561bf73d39691bcb21918efe3aebe577dc
Yabin Cui [Wed, 18 Sep 2019 00:31:37 +0000 (00:31 +0000)]
Merge "simpleperf: use path in binary_cache in pprof_proto_generator.py."
Yabin Cui [Tue, 17 Sep 2019 23:01:01 +0000 (16:01 -0700)]
simpleperf: use path in binary_cache in pprof_proto_generator.py.
Pprof needs to know binary paths to show their disassembly code.
So support it by generating path in binary_cache instead of
path on Android device.
Bug:
141026312
Test: run test.py.
Change-Id: Ied2913b99d884bfa57ab9440ae1684b1d9d6a31d
Yabin Cui [Tue, 17 Sep 2019 22:17:27 +0000 (15:17 -0700)]
Merge "simpleperf: fix build id in pprof_proto_generator.py."
am:
939a46d25c
Change-Id: I694d9b6f0621103a3309d91b6accd831b26adc5d
Yabin Cui [Tue, 17 Sep 2019 21:55:25 +0000 (21:55 +0000)]
Merge "simpleperf: fix build id in pprof_proto_generator.py."
Yabin Cui [Tue, 17 Sep 2019 19:25:43 +0000 (12:25 -0700)]
simpleperf: fix build id in pprof_proto_generator.py.
Simpleperf stores padded build id in perf.data, but pprof needs
real build ids in proto file. So we need to convert from padded
build ids to real build ids.
Bug:
141026312
Test: run test.py.
Change-Id: I7f4454343fd80f77364b67ec729cfba478925029
Paul Crowley [Tue, 17 Sep 2019 06:01:04 +0000 (23:01 -0700)]
Merge "Add a per-boot-key policy reference"
am:
8b3bcfa42b
Change-Id: If3093b98587a1f81ce3affbacff0d022faf4788b
Paul Crowley [Tue, 17 Sep 2019 05:40:05 +0000 (05:40 +0000)]
Merge "Add a per-boot-key policy reference"
Paul Crowley [Wed, 11 Sep 2019 21:57:45 +0000 (14:57 -0700)]
Add a per-boot-key policy reference
Bug:
140882488
Test: Booted twice, checked logs to ensure encryption
is different each time, adb created files in directory.
Change-Id: I5c962edb316d160dd09c0df893912c6b257d7810
David Anderson [Thu, 12 Sep 2019 21:15:57 +0000 (14:15 -0700)]
Merge "lpdump: Fix slot handling on retrofit devices."
am:
18dea93474
Change-Id: Ibeb8c81fc888bc99b15eb8dd027bddf903d71b66
David Anderson [Thu, 12 Sep 2019 20:54:34 +0000 (20:54 +0000)]
Merge "lpdump: Fix slot handling on retrofit devices."
Tianjie Xu [Wed, 11 Sep 2019 19:30:25 +0000 (12:30 -0700)]
Merge "verity: Do not increment data when it is nullptr."
am:
49558ddfbd
Change-Id: I91e75c5e35eba10d44a1814e580c51459fcafb2b
Tianjie Xu [Wed, 11 Sep 2019 19:11:34 +0000 (19:11 +0000)]
Merge "verity: Do not increment data when it is nullptr."
Colin Cross [Wed, 11 Sep 2019 18:46:44 +0000 (11:46 -0700)]
Merge changes from topic "protobuf-3.9.1"
am:
dfe1e15650
Change-Id: I8e2bb0d9c095b9aa9f6f435d31c8b4770437f8dc
Colin Cross [Wed, 11 Sep 2019 18:46:33 +0000 (11:46 -0700)]
Adapt to google::protobuf::int64 type change and scoped_ptr removal
am:
43b95eae1e
Change-Id: I7771ad00341e37660c4803bcb33ab4afa2331404
Colin Cross [Wed, 11 Sep 2019 18:00:16 +0000 (18:00 +0000)]
Merge changes from topic "protobuf-3.9.1"
* changes:
libjsonpb: fix tests for new protobuf version
Adapt to google::protobuf::int64 type change and scoped_ptr removal
Pirama Arumuga Nainar [Wed, 11 Sep 2019 04:23:01 +0000 (21:23 -0700)]
Merge "Create per-uid GCOV_PREFIX dir in the getenv wrapper"
am:
54451c0c7b
Change-Id: Ibc3d667bf1cc6ec5bf0e8e7ec109143c8fbc2aa3
Treehugger Robot [Wed, 11 Sep 2019 03:54:13 +0000 (03:54 +0000)]
Merge "Create per-uid GCOV_PREFIX dir in the getenv wrapper"
Pirama Arumuga Nainar [Fri, 26 Jul 2019 21:49:58 +0000 (14:49 -0700)]
Create per-uid GCOV_PREFIX dir in the getenv wrapper
Bug: http://b/
116873221
With https://reviews.llvm.org/D65245, the profile runtime assumes that
the directory ${GCOV_PREFIX} is already created. Before returning from
the getenv wrapper, create the per-uid ${GCOV_PREFIX}.
Test: cuttlefish builds and boots with new Clang.
Change-Id: I276e1a92b3cb18ee85bb4451159b131d8ebca4a2
David Anderson [Tue, 10 Sep 2019 22:01:44 +0000 (15:01 -0700)]
Merge changes from topics "lpdump-all", "lpdump-bugreport"
am:
2cf1c60a8c
Change-Id: I96ddbe6cf8a067230f638f8db2c89e6647795272
David Anderson [Tue, 10 Sep 2019 21:36:39 +0000 (21:36 +0000)]
Merge changes from topics "lpdump-all", "lpdump-bugreport"
* changes:
lpdump: Add an --all command to dump all metadata slots.
lpdump: Refactor how lpdump reads metadata.
David Anderson [Fri, 6 Sep 2019 01:53:21 +0000 (18:53 -0700)]
lpdump: Fix slot handling on retrofit devices.
On retrofit devices, use the correct super partition when none is
explicitly specified.
Bug:
140204341
Test: manual test
Change-Id: I2753024bd2e7dfdf9d19916f30c1b2bd6b5ee289
David Anderson [Fri, 6 Sep 2019 01:31:12 +0000 (18:31 -0700)]
lpdump: Add an --all command to dump all metadata slots.
Note that this will not correctly dump all slots on retrofit devices.
Bug:
140204341
Test: lpdump --all
Change-Id: Icb8d8619202221f0c5fc8848abc7172d0b4dafd3
MarijnS95 [Mon, 9 Sep 2019 13:50:43 +0000 (15:50 +0200)]
verity: Do not increment data when it is nullptr.
Address a segfault introduced in
d6dc877032c65768b3c6737156d3142f32cc9984
As soon as leftover_ becomes non-empty, the data pointer is incremented
and will now be an invalid pointer in case it was null previously.
The subsequent check in HashBlocks() will now encounter a non-null data
ptr and pass it to HashBlock(), triggering a segfault.
Test: Manually build and boot an image on which this crashed before.
Test: build_verity_tree_test
Change-Id: I324ff6103c9d35fb290c4e96fb5009ee365a0249
Signed-off-by: MarijnS95 <marijns95@gmail.com>
(cherry picked from commit
c82514bd034f214b16d273b10c676dd63a9e603b)
Kaiwen Szu [Thu, 5 Sep 2019 08:24:25 +0000 (16:24 +0800)]
Add vbmake to build super_vbmeta.img
vbmake constructs the super_vbmeta.img with given vbmeta images.
Bug:
137054296
Test: m libvbmeta_test
Test: ./out/host/linux-x86/nativetest/libvbmeta_test/libvbmeta_test
Change-Id: Ic76baa6daa1e58a22b62bdc4f25eb12c8d9004e4
Xin Li [Sun, 8 Sep 2019 19:45:55 +0000 (12:45 -0700)]
Merge qt-r1-dev-plus-aosp-without-vendor (
5817612) into stage-aosp-master
No content change.
Bug:
135460123
Change-Id: I9f7a8d2543c671439b7bc53af638716ebbd060c0
Merged-In: I96bc50d90bef5cbe55acbb773436fe21129e25ab
Steven Moreland [Fri, 6 Sep 2019 19:52:52 +0000 (12:52 -0700)]
Merge "Remove libhwbinder/libhidltransport deps"
am:
96974c3401
Change-Id: I96bc50d90bef5cbe55acbb773436fe21129e25ab
Steven Moreland [Fri, 6 Sep 2019 19:33:29 +0000 (19:33 +0000)]
Merge "Remove libhwbinder/libhidltransport deps"
David Anderson [Fri, 6 Sep 2019 00:57:20 +0000 (17:57 -0700)]
lpdump: Refactor how lpdump reads metadata.
This patch prepares lpdump for the addition of an "--all" option to dump
all metadata slots.
- The slot and super partition name are now determined ahead of time,
rather than as part of reading metadata.
- The custom IPartitionOpener has been removed as it served no purpose.
- The -e option has been removed in favor of IsEmptySuperImage().
- Metadata spew has been factored into a separate function.
Bug:
140204341
Test: manual test
Change-Id: I810a5f042870f7e072a8939bebe99b8707235f43
Eric Biggers [Thu, 5 Sep 2019 23:48:16 +0000 (16:48 -0700)]
Merge changes I51ee7070,I499a70a9
am:
59e1ab234c
Change-Id: I86d5c8b423f26c3a965bedad59753d374d137306
Eric Biggers [Thu, 5 Sep 2019 22:51:17 +0000 (22:51 +0000)]
Merge changes I51ee7070,I499a70a9
* changes:
libfscrypt: simplify fscrypt_policy_ensure()
libfscrypt: remove some hardcoded definitions
Xin Li [Thu, 5 Sep 2019 22:37:56 +0000 (15:37 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge Android 10 into master"
am:
3342738e82 -s ours
am skip reason: subject contains skip directive
Change-Id: I9e2672405aa2f59974a08b52107ff7aaaefda422
Colin Cross [Wed, 14 Aug 2019 00:03:15 +0000 (17:03 -0700)]
Adapt to google::protobuf::int64 type change and scoped_ptr removal
Protobuf 3.9.1 redefines google::protobuf::int64 from long long to
int64_t, which is sometimes long and sometimes long long. Use
PRId64 to print it.
scoped_ptr has been removed, use std::unique_ptr instead.
Bug:
117607748
Test: m checkbuild
Change-Id: Idfcaba262c27cf2b895a0a6ded8394c8465547e8
Merged-In: Idfcaba262c27cf2b895a0a6ded8394c8465547e8
Yifan Hong [Tue, 27 Aug 2019 20:51:42 +0000 (13:51 -0700)]
libjsonpb: fix tests for new protobuf version
Bug:
117607748
Test: atest --host libjsonpbverify_test
Change-Id: I5ce89c330d769fac10d8092734a37c26694587a2
Merged-In: I5ce89c330d769fac10d8092734a37c26694587a2
Steven Moreland [Thu, 5 Sep 2019 21:17:28 +0000 (14:17 -0700)]
Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.
Bug:
135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: Iea42841e537a16a302b6d425faf2c6bd511c6bad
Xin Li [Thu, 5 Sep 2019 20:28:16 +0000 (13:28 -0700)]
[automerger skipped] DO NOT MERGE - Merge Android 10 into master
am:
cbe369529b -s ours
am skip reason: subject contains skip directive
Change-Id: I76cba1e4ee0e5be64c5a16d00c691159f9022fed
Eric Biggers [Thu, 5 Sep 2019 19:18:30 +0000 (12:18 -0700)]
libfscrypt: simplify fscrypt_policy_ensure()
fscrypt_policy_ensure() sets an encryption policy if the directory is
empty, otherwise it verifies the existing encryption policy.
However, it's unnecessary to actually implement this logic in userspace,
because this is the behavior of the FS_IOC_SET_ENCRYPTION_POLICY ioctl
already. See the documentation:
https://www.kernel.org/doc/html/latest/filesystems/fscrypt.html#setting-an-encryption-policy
Therefore, just call FS_IOC_SET_ENCRYPTION_POLICY and handle errors
appropriately.
This makes the code shorter and less racy, and it also fixes the issue
where if files were created in the directory before an encryption policy
is set, the error message was confusing:
Failed to get encryption policy for $dir: No data available
Now it's:
Failed to set encryption policy of $dir to ...: Directory not empty
Test: booted after factory reset, checked log, rebooted, checked log
again.
Change-Id: I51ee70706bc9ccb216ccefd7bdfbbfc57faae14d
Eric Biggers [Thu, 5 Sep 2019 19:18:29 +0000 (12:18 -0700)]
libfscrypt: remove some hardcoded definitions
FS_ENCRYPTION_MODE_ADIANTUM and FS_POLICY_FLAG_DIRECT_KEY are in
Bionic's <linux/fs.h> now, so there's no need to define them in
libfscrypt anymore.
Test: compiled
Change-Id: I499a70a9f8fd3445098a1dd799b1aefe0fa374ce
Yabin Cui [Thu, 5 Sep 2019 16:59:07 +0000 (09:59 -0700)]
Merge "simpleperf: support profiling art interpreter on linux host."
am:
749f0bac4a
Change-Id: Iac4e835efe67677c36aa1a29ab4eebc8a41d7633
Xin Li [Thu, 5 Sep 2019 16:53:33 +0000 (16:53 +0000)]
Merge "DO NOT MERGE - Merge Android 10 into master"
Treehugger Robot [Thu, 5 Sep 2019 16:45:38 +0000 (16:45 +0000)]
Merge "simpleperf: support profiling art interpreter on linux host."
Yabin Cui [Wed, 4 Sep 2019 22:49:19 +0000 (15:49 -0700)]
simpleperf: support profiling art interpreter on linux host.
Bug:
140300587
Test: run simpleperf_unit_test.
Test: run simpleperf on host.
Change-Id: Ia2e21cabf2661c82bb611c525d5277b1e4d13a23
Xin Li [Wed, 4 Sep 2019 20:35:27 +0000 (13:35 -0700)]
DO NOT MERGE - Merge Android 10 into master
Bug:
139893257
Change-Id: I35ce2edc54690d76c26efed846e232ff223ebb4e
Peter Enderborg [Tue, 3 Sep 2019 20:56:38 +0000 (13:56 -0700)]
Merge "Add support for new taskstats v9 functionality"
am:
9229017530
Change-Id: Ifc4601aa55c3475e726470189c3b56613fdc47c8
Treehugger Robot [Tue, 3 Sep 2019 20:37:06 +0000 (20:37 +0000)]
Merge "Add support for new taskstats v9 functionality"
Yabin Cui [Tue, 3 Sep 2019 17:41:15 +0000 (10:41 -0700)]
Merge "simpleperf: switch to llvm-symbolizer."
am:
f626973b9a
Change-Id: Iba347945d89f95967815e58809b90d667e0df8d5
Yabin Cui [Tue, 3 Sep 2019 17:21:54 +0000 (17:21 +0000)]
Merge "simpleperf: switch to llvm-symbolizer."
Yabin Cui [Fri, 30 Aug 2019 22:51:33 +0000 (15:51 -0700)]
simpleperf: switch to llvm-symbolizer.
Bug:
74395415
Test: run test.py.
Change-Id: I4cc0013735bedcfd18813428e4892049277c38ff
Christopher Ferris [Fri, 30 Aug 2019 18:17:55 +0000 (11:17 -0700)]
Merge "Refactor code with single trace parser."
am:
7ac993ce67
Change-Id: Iff4618349bce7e22456bf004b861daafcc0328f6
Christopher Ferris [Fri, 30 Aug 2019 17:47:00 +0000 (17:47 +0000)]
Merge "Refactor code with single trace parser."
Christopher Ferris [Tue, 27 Aug 2019 00:51:19 +0000 (17:51 -0700)]
Refactor code with single trace parser.
This is the first step towards adding a new way to benchmark the
traces. This new way would be a way to add all threads running at once.
Also to try and make it possible to do the faster runs that jmgao had
done a while ago.
Modified the code so that it's possible for memory_replay to play
the zip file, no need to unzip the trace files.
Add a single parser for the trace files.
Remove as many possible allocation points in the system. This allows
the traces to be run as pure as possible.
Added new unit tests to cover new code.
Bug:
137795072
Test: All unit tests pass.
Test: Ran select traces using the old version and the new version.
Test: Both get nearlyt he same RSS, but slightly different VA space
Test: due to the new version avoiding allocations at all costs.
Test: Ran the trace benchmarks and verified that the old version and the
Test: new version produce nearly the same numbers.
Change-Id: I8e8a28436f23b09eba57772c62bb0b866d874437
Yabin Cui [Thu, 29 Aug 2019 23:47:02 +0000 (16:47 -0700)]
Merge "simpleperf: add --include-filter in record cmd."
am:
178d1d48bf
Change-Id: Ib04498c4d08229a815bb24d65048fde1f6d97b42
Yabin Cui [Thu, 29 Aug 2019 23:37:14 +0000 (23:37 +0000)]
Merge "simpleperf: add --include-filter in record cmd."
Yabin Cui [Tue, 6 Aug 2019 17:29:45 +0000 (10:29 -0700)]
simpleperf: add --include-filter in record cmd.
It is to only record selected binaries in cs-etm tracing.
Bug:
135204414
Test: run simpleperf_unit_test.
Change-Id: I5dae729aee1642d9384ee9bb88ee8cb25950131a
David Anderson [Wed, 28 Aug 2019 03:00:49 +0000 (20:00 -0700)]
Merge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED."
am:
3562ed57ed
Change-Id: I193a78d01e2066a2f07b8d83906cd0a839957a8c
David Anderson [Wed, 28 Aug 2019 02:51:43 +0000 (02:51 +0000)]
Merge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED."
David Anderson [Tue, 27 Aug 2019 20:44:48 +0000 (13:44 -0700)]
Update lpdump to recognize LP_PARTITION_ATTR_UPDATED.
Bug:
139154795
Test: lpdump after update
Change-Id: I4cbfe80c15cfa0afe3e9d37e3f8818016e57daa2
Paul Crowley [Tue, 27 Aug 2019 01:03:14 +0000 (18:03 -0700)]
Merge "Move fscrypt_init_extensions into system/core"
am:
39e92468ad
Change-Id: I14922f2abc8ca1644fdedcdb51a3d5409df54f58
Paul Crowley [Tue, 27 Aug 2019 00:50:56 +0000 (17:50 -0700)]
Merge "If the rollback directories won't encrypt, wipe them"
am:
43ce86f084
Change-Id: Ib592f2e3fc0215dea881df16adf85569354edc30
Treehugger Robot [Mon, 26 Aug 2019 23:24:54 +0000 (23:24 +0000)]
Merge "Move fscrypt_init_extensions into system/core"
Treehugger Robot [Mon, 26 Aug 2019 23:24:49 +0000 (23:24 +0000)]
Merge "If the rollback directories won't encrypt, wipe them"
Paul Crowley [Mon, 26 Aug 2019 17:30:54 +0000 (10:30 -0700)]
Move fscrypt_init_extensions into system/core
Bug:
140027478
Test: treehugger
Change-Id: I296ce6d1272816c237e1ad213fbdef9f6fafb44f
Paul Crowley [Fri, 9 Aug 2019 21:19:11 +0000 (14:19 -0700)]
If the rollback directories won't encrypt, wipe them
/data/rollback and /data/rollback-observer used to be created
unencrypted by system-server. If they are unencrypted and have
content, force them to be encrypted by wiping their contents.
Bug: b/
139193659
Test: Put content in these directories, then reboot and see it wiped.
Cherrypicked-from:
58a49c3ae59d250cc1db49ce5a2678bf19bb92c3
Change-Id: I0320eb645ebe86965928acbacc8ad01dae2d5ba5
Merged-In: I0320eb645ebe86965928acbacc8ad01dae2d5ba5
Yabin Cui [Thu, 22 Aug 2019 21:23:47 +0000 (14:23 -0700)]
Merge "simpleperf: fix is_elf_file."
am:
abde21870e
Change-Id: Ie8001786fec5cb09e2ce76d9fe4b882b2ff18b0a
Yabin Cui [Thu, 22 Aug 2019 21:22:46 +0000 (14:22 -0700)]
Merge "simpleperf: add inject cmd."
am:
93dac5f6ac
Change-Id: I471c37642d76de90af2c4938a6b6e1e93db2737a
Yabin Cui [Thu, 22 Aug 2019 20:56:08 +0000 (20:56 +0000)]
Merge "simpleperf: fix is_elf_file."
Yabin Cui [Thu, 22 Aug 2019 20:55:46 +0000 (20:55 +0000)]
Merge "simpleperf: add inject cmd."
Yabin Cui [Thu, 22 Aug 2019 17:50:19 +0000 (10:50 -0700)]
simpleperf: fix is_elf_file.
When running by python3, is_elf_file() decodes first 4 bytes of
a file, which may cause UnicodeDecodeError.
Bug: none
Test: run test.py TestTools.test_is_elf_file.
Change-Id: Ie19e4869f876bb92155d849c814c8f39989c443b
Yabin Cui [Wed, 21 Aug 2019 23:05:07 +0000 (16:05 -0700)]
simpleperf: add inject cmd.
Add inject cmd to convert etm data into executed instr ranges.
Bug:
135204414
Test: run simpleperf_unit_test.
Change-Id: I46acf7b24ddb4865d0925f70e09b861b7f6748b6
Yabin Cui [Wed, 21 Aug 2019 00:48:15 +0000 (17:48 -0700)]
Merge "simpleperf: add --use-devfreq-counters option." am:
5ff5b91fdc am:
5507a26a7c
am:
f222077577
Change-Id: Ifc85414244b77a79732aa5da2a909ada16609a65
Yabin Cui [Wed, 21 Aug 2019 00:32:56 +0000 (17:32 -0700)]
Merge "simpleperf: add --use-devfreq-counters option." am:
5ff5b91fdc
am:
5507a26a7c
Change-Id: If7b001ce4ea0af6c2d23f67588761a3585e96fb5
Yabin Cui [Wed, 21 Aug 2019 00:18:49 +0000 (17:18 -0700)]
Merge "simpleperf: add --use-devfreq-counters option."
am:
5ff5b91fdc
Change-Id: I6f741f3981256dafb9713684bda6a3d8ec2f6182
Yabin Cui [Wed, 21 Aug 2019 00:13:43 +0000 (17:13 -0700)]
Merge "simpleperf: Add ETMDecoder." am:
0441e116a8 am:
b6d4993018
am:
9674d51972
Change-Id: I98019e947845bdced4a5c37161c3145c912aae42
Yabin Cui [Tue, 20 Aug 2019 23:54:56 +0000 (16:54 -0700)]
Merge "simpleperf: Add ETMDecoder." am:
0441e116a8
am:
b6d4993018
Change-Id: If03fc188e574160465bd31677b41818fea0cc5d7
Yabin Cui [Tue, 20 Aug 2019 23:45:11 +0000 (23:45 +0000)]
Merge "simpleperf: add --use-devfreq-counters option."
Yabin Cui [Tue, 20 Aug 2019 23:27:02 +0000 (16:27 -0700)]
Merge "simpleperf: Add ETMDecoder."
am:
0441e116a8
Change-Id: I14f7f4fa991785bc03036ce7b046723342223491
Yabin Cui [Tue, 20 Aug 2019 23:08:37 +0000 (23:08 +0000)]
Merge "simpleperf: Add ETMDecoder."
Yabin Cui [Mon, 12 Aug 2019 23:53:46 +0000 (16:53 -0700)]
simpleperf: add --use-devfreq-counters option.
On devices like pixel 3, there are 7 hardware counters in cpu pmu.
But 4 of them are used by devfreq to monitor memory latency.
In case we need more than 3 counters, add an option to let devfreq
release counters.
Also add a warning of using this option if it seems we need more
counters.
Bug: none
Test: run simpleperf_unit_test.
Change-Id: I9a13716a8b64c8e0fc03a79b0c11dd29da169c56
Yabin Cui [Tue, 20 Aug 2019 21:24:16 +0000 (14:24 -0700)]
Merge "simpleperf: update building prebuilts." am:
d1df579357 am:
7509db7dcc
am:
0cb5be5c6a
Change-Id: Ic7bcc09a762a4c3b03acd30cb41d566b383de94f
Yabin Cui [Tue, 20 Aug 2019 21:13:20 +0000 (14:13 -0700)]
Merge "simpleperf: update building prebuilts." am:
d1df579357
am:
7509db7dcc
Change-Id: Ibbf5b7134d8bad7e0ddf7227aaba9bb25ca5017b
Yabin Cui [Tue, 20 Aug 2019 21:02:17 +0000 (14:02 -0700)]
Merge "simpleperf: update building prebuilts."
am:
d1df579357
Change-Id: Ic38640eccc732b298b94ab4f6b5a49a307f441bf
Yabin Cui [Fri, 9 Aug 2019 01:15:14 +0000 (18:15 -0700)]
simpleperf: Add ETMDecoder.
It contains below changes:
1. Add ETMDecoder, which uses OpenCSD library to decode etm data.
2. Fix trace ids in AuxTraceInfoRecord to match those in etm data.
3. Dump build ids for all binaries in record cmd, to find them in
etm decoding.
4. Add options in dump cmd to dump etm data.
5. Add a test line in dump cmd test to check that instruction range
elements are decoded and dumped.
Bug:
135204414
Test: run simpleperf_unit_test.
Change-Id: Iad1a1dac3dd9aaed4416ff2c19029c676d610783
Yabin Cui [Tue, 20 Aug 2019 20:23:09 +0000 (20:23 +0000)]
Merge "simpleperf: update building prebuilts."
Yabin Cui [Tue, 20 Aug 2019 17:32:56 +0000 (10:32 -0700)]
simpleperf: update building prebuilts.
1. add simpleperf_scripts in simpleperf dist build.
2. remove simpleperf in sdk,win_sdk dist build.
Bug: none
Test: run build/soong/soong_ui.bash --make-mode
Test: MODULES-IN-system-extras-simpleperf dist
Test: TARGET_PRODUCT=aosp_arm64 simpleperf
Change-Id: Ica63c106b67d3ec7400c0f7148fd78f65d6d16c3
Yabin Cui [Mon, 19 Aug 2019 21:24:57 +0000 (14:24 -0700)]
Merge "simpleperf: update simpleperf prebuilts to build
5806936." am:
e2af8d6b15 am:
c3374a8321
am:
5368afff60
Change-Id: Ifcba4b30fedea086329788bde42ecb23f3733d24
Yabin Cui [Mon, 19 Aug 2019 20:52:13 +0000 (13:52 -0700)]
Merge "simpleperf: update simpleperf prebuilts to build
5806936." am:
e2af8d6b15
am:
c3374a8321
Change-Id: I3f871b4a9007d2e8e3a77c30c5e9568aec1cf00e
Yabin Cui [Mon, 19 Aug 2019 20:29:47 +0000 (13:29 -0700)]
Merge "simpleperf: update simpleperf prebuilts to build
5806936."
am:
e2af8d6b15
Change-Id: I831e836071fce2cb5332cd30a94025c96a8a0744
Yabin Cui [Mon, 19 Aug 2019 19:24:11 +0000 (19:24 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build
5806936."
Yabin Cui [Fri, 16 Aug 2019 18:00:22 +0000 (11:00 -0700)]
simpleperf: update simpleperf prebuilts to build
5806936.
Taken from branch aosp-simpleperf-release.
Bug: none
Test: run test.py on Android master/Q/P/O/N.
Change-Id: Ib527b0ba17f8c583359e157198b5b93fdac88c45
Peter Enderborg [Tue, 30 Jul 2019 07:32:39 +0000 (09:32 +0200)]
Add support for new taskstats v9 functionality
Kernel ABI for taskstats has been uptated to version 9.
Thrashing data is the base for PSI used by userspace lmk,
so good to expose here for debugging purposes.
Issue:
139647514
Test: manual
Change-Id: Ifddb40537abaf10908426b3cd5c0dc177f69ee56
Yabin Cui [Fri, 16 Aug 2019 18:47:09 +0000 (11:47 -0700)]
Merge "simpleperf: Update apks for testing ApiProfiler." am:
3c9e6a09ca am:
320f4563cb
am:
36b17dd808
Change-Id: If73536a9e7a44276bdd020a4164284fb906fff88
Yabin Cui [Fri, 16 Aug 2019 18:36:42 +0000 (11:36 -0700)]
Merge "simpleperf: Update apks for testing ApiProfiler." am:
3c9e6a09ca
am:
320f4563cb
Change-Id: Iefc2a796b9be38d4122a9b63a5db1ada4f2cb009
Yabin Cui [Fri, 16 Aug 2019 18:26:47 +0000 (11:26 -0700)]
Merge "simpleperf: Update apks for testing ApiProfiler."
am:
3c9e6a09ca
Change-Id: I801bed79640c429244a929bcfe35afe850ba5d26
Yabin Cui [Fri, 16 Aug 2019 17:52:36 +0000 (17:52 +0000)]
Merge "simpleperf: Update apks for testing ApiProfiler."
Yabin Cui [Fri, 16 Aug 2019 17:48:54 +0000 (10:48 -0700)]
simpleperf: Update apks for testing ApiProfiler.
The previous apks has error in sdk version setting, thus
fail to install on master.
Bug: none
Test: run test.py TestApiProfiler.* on master/Q/P/O/N.
Change-Id: I6ef7eabcc0602147b0aa31dc9b3d5bac616e1e83