OSDN Git Service

android-x86/system-extras.git
4 years agoMerge "simpleperf:add MSM8909 into whitelist, omit tests requireing hw counters."
Yabin Cui [Fri, 15 Nov 2019 23:13:38 +0000 (15:13 -0800)]
Merge "simpleperf:add MSM8909 into whitelist, omit tests requireing hw counters."
am: 3897583b73

Change-Id: I6d0ea969fd9892e5d0dc20da0385e62070d92b88

4 years agoMerge "simpleperf: fix build_id checking."
Yabin Cui [Fri, 15 Nov 2019 22:56:08 +0000 (14:56 -0800)]
Merge "simpleperf: fix build_id checking."
am: 9fe57a62ae

Change-Id: I029e3ff597fcc29a337501a4aa342651b228e527

4 years agoMerge "simpleperf:add MSM8909 into whitelist, omit tests requireing hw counters."
Yabin Cui [Fri, 15 Nov 2019 22:48:20 +0000 (22:48 +0000)]
Merge "simpleperf:add MSM8909 into whitelist, omit tests requireing hw counters."

4 years agoMerge "simpleperf: fix build_id checking."
Yabin Cui [Fri, 15 Nov 2019 22:24:23 +0000 (22:24 +0000)]
Merge "simpleperf: fix build_id checking."

4 years agosimpleperf: fix build_id checking.
Yabin Cui [Thu, 14 Nov 2019 23:24:07 +0000 (15:24 -0800)]
simpleperf: fix build_id checking.

Native libraries in apks may not have build ids. So change to below
rules when looking for a debug elf file:
1) If having a build id, the build ids should match.
2) Otherwise, the debug elf file should exist and not have a build id.

Bug: none
Test: run simpleperf_unit_test.
Test: test.py.
Change-Id: I01332e3010a6df17e70c6c55e15874d43bfaeb86

4 years agosimpleperf:add MSM8909 into whitelist, omit tests requireing hw counters.
pmc.waiver [Thu, 7 Nov 2019 07:54:38 +0000 (16:54 +0900)]
simpleperf:add MSM8909 into whitelist, omit tests requireing hw counters.

Test: run cts -m CtsSimpleperfTestCases -t record_cmd#generate_samples_by_hw_counters
Test: hw counters.
Bug: 144472902
(cherry picked from commit 8a0a1ebb671bed0c910d35e71bbc083a031f7331)

Change-Id: I728ea2d83c9b89fc04d442971f76293fed9099ed

4 years agoMerge "simpleperf: fix failed python tests on Android O."
Yabin Cui [Thu, 14 Nov 2019 20:07:10 +0000 (12:07 -0800)]
Merge "simpleperf: fix failed python tests on Android O."
am: 5c96779dd0

Change-Id: I353afac69837281b59f241a7e6d0f4b9406cb604

4 years agoMerge "simpleperf: fix failed python tests on Android O."
Yabin Cui [Thu, 14 Nov 2019 19:58:33 +0000 (19:58 +0000)]
Merge "simpleperf: fix failed python tests on Android O."

4 years agoMerge "Fix build with new googletest"
Haibo Huang [Sat, 9 Nov 2019 01:02:14 +0000 (17:02 -0800)]
Merge "Fix build with new googletest"
am: 44bc03af44

Change-Id: Ieab89e84f36f9d54d11e759c49229405d56945ad

4 years agoMerge "Fix build with new googletest"
Treehugger Robot [Sat, 9 Nov 2019 00:45:33 +0000 (00:45 +0000)]
Merge "Fix build with new googletest"

4 years agosimpleperf: fix failed python tests on Android O.
Yabin Cui [Sat, 9 Nov 2019 00:04:05 +0000 (16:04 -0800)]
simpleperf: fix failed python tests on Android O.

Fix *.test_pprof_proto_generator tests by allowing elf files
not having build id.

Fix TestExamplePureJavaTraceOffCpu.test_smoke by loosing check.

Bug: none
Test: run test.py on Android O.
Change-Id: I5a796f433a56735989b90a2339765d1e70e3939f

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 5991547."
Yabin Cui [Fri, 8 Nov 2019 22:05:12 +0000 (14:05 -0800)]
Merge "simpleperf: update simpleperf prebuilts to build 5991547."
am: 246163dac8

Change-Id: Idc4f8870c2e86f6d8a8113f99c733ebf6945ea4b

4 years agoMerge "simpleperf: fix test due to llvm-symbolizer upgrade."
Yabin Cui [Fri, 8 Nov 2019 22:00:23 +0000 (14:00 -0800)]
Merge "simpleperf: fix test due to llvm-symbolizer upgrade."
am: 89f04a0381

Change-Id: Idb1abbbce008290462b7d8631a59bc2b64b9381c

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 5991547."
Yabin Cui [Fri, 8 Nov 2019 21:57:37 +0000 (21:57 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 5991547."

4 years agoMerge "simpleperf: fix test due to llvm-symbolizer upgrade."
Yabin Cui [Fri, 8 Nov 2019 21:48:09 +0000 (21:48 +0000)]
Merge "simpleperf: fix test due to llvm-symbolizer upgrade."

4 years agosimpleperf: fix test due to llvm-symbolizer upgrade.
Yabin Cui [Fri, 8 Nov 2019 21:46:04 +0000 (13:46 -0800)]
simpleperf: fix test due to llvm-symbolizer upgrade.

Bug: none
Test: test.py *test_addr2nearestline
Change-Id: I1de1f55c25d7f9652e931a23416947ba63beb101

4 years agosimpleperf: update simpleperf prebuilts to build 5991547.
Yabin Cui [Thu, 7 Nov 2019 18:01:27 +0000 (10:01 -0800)]
simpleperf: update simpleperf prebuilts to build 5991547.

Taken from branch aosp-simpleperf-release.

Bug: none
Test: run test.py on flame.

Change-Id: I4e0848a9006ec24cb7b17297ebfd5d993f1aa0fd

4 years agoFix build with new googletest
Haibo Huang [Fri, 8 Nov 2019 20:20:22 +0000 (12:20 -0800)]
Fix build with new googletest

The new googletest requires prefix to be non-empty.

Change-Id: Iacd96a6e2fcfb2193c7627212e9e710fb655d6d9

4 years agoMerge "simpleperf: fix test.py on x86/x86_64."
Yabin Cui [Thu, 7 Nov 2019 00:57:31 +0000 (16:57 -0800)]
Merge "simpleperf: fix test.py on x86/x86_64."
am: b74b2b5c11

Change-Id: I8bc33282f6eda38bccaf7e48dc25cba2000aac47

4 years agoMerge "simpleperf: fix test.py on x86/x86_64."
Yabin Cui [Thu, 7 Nov 2019 00:35:35 +0000 (00:35 +0000)]
Merge "simpleperf: fix test.py on x86/x86_64."

4 years agosimpleperf: fix test.py on x86/x86_64.
Yabin Cui [Wed, 6 Nov 2019 20:28:48 +0000 (12:28 -0800)]
simpleperf: fix test.py on x86/x86_64.

Find 32bit abi on device instead of hardcoding to arm.
Add x86/x86_64 libraries in test apks.

Bug: none
Test: run test.py on x86 emulator.

Change-Id: Ie19b8423c2dfb2260bdc4bae6313b54aaa2847ab

4 years agoMerge "simpleperf: allow more than one pattern in test.py."
Yabin Cui [Wed, 6 Nov 2019 20:55:48 +0000 (12:55 -0800)]
Merge "simpleperf: allow more than one pattern in test.py."
am: ab10d26e56

Change-Id: I982792f0fd7dea08e32b9825b3acb8c0ec07509b

4 years agoMerge "simpleperf: allow more than one pattern in test.py."
Yabin Cui [Wed, 6 Nov 2019 20:35:02 +0000 (20:35 +0000)]
Merge "simpleperf: allow more than one pattern in test.py."

4 years agosimpleperf: allow more than one pattern in test.py.
Yabin Cui [Wed, 6 Nov 2019 00:25:36 +0000 (16:25 -0800)]
simpleperf: allow more than one pattern in test.py.

Bug: none
Test: run test.py TestTools* TestExample*.
Change-Id: I26e0a37113044cb96c90ff8a02d7f3b34d356c19

4 years agoMerge "simpleperf: add browser option in test.py."
Yabin Cui [Wed, 6 Nov 2019 19:32:21 +0000 (11:32 -0800)]
Merge "simpleperf: add browser option in test.py."
am: ffb407b459

Change-Id: Id7fe4b61bdabaef90536443d9a57c1644c4910d6

4 years agoMerge "simpleperf: add browser option in test.py."
Yabin Cui [Wed, 6 Nov 2019 19:22:31 +0000 (19:22 +0000)]
Merge "simpleperf: add browser option in test.py."

4 years agoMerge "simpleperf: add temporary work around for debug interface change."
Yabin Cui [Tue, 5 Nov 2019 23:55:18 +0000 (15:55 -0800)]
Merge "simpleperf: add temporary work around for debug interface change."
am: b1907a385b

Change-Id: I94690b74c8a6226461ddc4a87785d716e909debb

4 years agosimpleperf: add browser option in test.py.
Yabin Cui [Tue, 5 Nov 2019 23:53:58 +0000 (15:53 -0800)]
simpleperf: add browser option in test.py.

To control whether generated html files should be shown in browser.

Bug: none
Test: test.py.
Change-Id: I58eeae716e42068bd5f278bb8006d8818e3fc63c

4 years agoMerge "simpleperf: add temporary work around for debug interface change."
Yabin Cui [Tue, 5 Nov 2019 23:41:02 +0000 (23:41 +0000)]
Merge "simpleperf: add temporary work around for debug interface change."

4 years agosimpleperf: add temporary work around for debug interface change.
Yabin Cui [Tue, 5 Nov 2019 22:31:17 +0000 (14:31 -0800)]
simpleperf: add temporary work around for debug interface change.

To fix a libunwindstack problem, ART appends new debug entries to the
end of the debug entry list, insteading prepending to it. This breaks
CtsSimpleperfTestCases.

This CL adds a temporary work around in simpleperf, so we have time
to try other fixes in ART.

Bug: 143375574
Test: run simpleperf_unit_test
Change-Id: I5d73792996fb89d22a664b982e667ba0a4ee8276

4 years agoMerge "simpleperf: keep generated data of test.py."
Yabin Cui [Tue, 5 Nov 2019 21:42:45 +0000 (13:42 -0800)]
Merge "simpleperf: keep generated data of test.py."
am: a3ae531171

Change-Id: I522d0746f5da8fba11ffce524a1da8dfe271951d

4 years agoMerge "simpleperf: keep generated data of test.py."
Yabin Cui [Tue, 5 Nov 2019 21:24:23 +0000 (21:24 +0000)]
Merge "simpleperf: keep generated data of test.py."

4 years agosimpleperf: keep generated data of test.py.
Yabin Cui [Tue, 29 Oct 2019 00:16:54 +0000 (17:16 -0700)]
simpleperf: keep generated data of test.py.

Keep generated data of each test of test.py in a separate directory,
so we can:
1) check generated html after testing.
2) check profiling data for failed tests.
3) run tests for different devices in different dirs at the same time.

Also continue test when a test pass fails in run_tests().

Bug: 142972498
Test: run test.py.

Change-Id: If8468f0e180d441b74c070b978375b27c293a006

4 years agoMerge "simpleperf: test profiling apps with the same abi."
Yabin Cui [Fri, 1 Nov 2019 22:46:32 +0000 (15:46 -0700)]
Merge "simpleperf: test profiling apps with the same abi."
am: 16f464c226

Change-Id: I33d4f7c58ac0ce4e04b88eb0732ebd0ff892be30

4 years agoMerge "simpleperf: test profiling apps with the same abi."
Yabin Cui [Fri, 1 Nov 2019 22:23:43 +0000 (22:23 +0000)]
Merge "simpleperf: test profiling apps with the same abi."

4 years agosimpleperf: test profiling apps with the same abi.
Yabin Cui [Wed, 30 Oct 2019 23:40:55 +0000 (16:40 -0700)]
simpleperf: test profiling apps with the same abi.

32-bit simpleperf can't profile 64-bit java app. Because simpleperf
uses process_vm_readv() to read jit debug interface of the app process.
If the jit debug info is at address >= 1<<32, then 32-bit simpleperf
can't read it.

So install apks in the same abi as the test to avoid test failure.

Bug: none
Test: run 32-bit simpleperf_unit_test.
Change-Id: Ie3b4db320389bf5acb30ff5ea1f071b5fc3e2736

4 years agoMerge "simpleperf: fix small errors in JITDebugReader."
Yabin Cui [Thu, 31 Oct 2019 18:24:02 +0000 (11:24 -0700)]
Merge "simpleperf: fix small errors in JITDebugReader."
am: 3abdb92860

Change-Id: I16b9acbdd30238f24ad0699e50b534f2486a9e7c

4 years agoMerge "simpleperf: fix small errors in JITDebugReader."
Yabin Cui [Thu, 31 Oct 2019 17:39:12 +0000 (17:39 +0000)]
Merge "simpleperf: fix small errors in JITDebugReader."

4 years agosimpleperf: fix small errors in JITDebugReader.
Yabin Cui [Wed, 30 Oct 2019 23:07:28 +0000 (16:07 -0700)]
simpleperf: fix small errors in JITDebugReader.

1. When seeing an entry with symfile_size = 0, we should move
   to the next entry.
2. Skip labels having zero length in jit debug file.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: Iaa914cc4c6567ae5950194507c82e92316802a80

4 years agoMerge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp...
Xin Li [Wed, 30 Oct 2019 20:55:14 +0000 (20:55 +0000)]
Merge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master" into stage-aosp-master

4 years agoMerge "simpleperf: just use _Exit directly."
Elliott Hughes [Wed, 30 Oct 2019 19:55:20 +0000 (12:55 -0700)]
Merge "simpleperf: just use _Exit directly."
am: 5279bc2913

Change-Id: Ia878014b838ab7bac268d9978a6c6d025679036c

4 years agoMerge "simpleperf: just use _Exit directly."
Elliott Hughes [Wed, 30 Oct 2019 19:39:36 +0000 (19:39 +0000)]
Merge "simpleperf: just use _Exit directly."

4 years agoDO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Xin Li [Wed, 30 Oct 2019 18:50:43 +0000 (11:50 -0700)]
DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master

Bug: 142003500
Change-Id: I8dc23d9aa9be16993cdd3aef967dabd988c6d908

4 years agosimpleperf: just use _Exit directly.
Elliott Hughes [Wed, 30 Oct 2019 01:34:28 +0000 (18:34 -0700)]
simpleperf: just use _Exit directly.

We don't actually need the quick_exit() machinery because we weren't
setting any at_quick_exit() handlers, so just call _Exit() directly.

This will let us remove the Mac/Windows quick_exit() implementation from
libbase (and will let simpleperf exit just a little bit quicker).

Test: treehugger
Change-Id: I4ce74cb80acc744721cf367930ca3e577b8fc614

4 years agoMerge "libfscrypt: Export FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64"
Paul Crowley [Wed, 30 Oct 2019 00:48:59 +0000 (17:48 -0700)]
Merge "libfscrypt: Export FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64"
am: 0cd171a09f

Change-Id: I88a4162a1439eb9118e17cf9bfb107b6e06851cf

4 years agoMerge "libfscrypt: Export FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64"
Treehugger Robot [Wed, 30 Oct 2019 00:27:58 +0000 (00:27 +0000)]
Merge "libfscrypt: Export FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64"

4 years agolibfscrypt: Export FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64
Paul Crowley [Tue, 29 Oct 2019 21:16:57 +0000 (14:16 -0700)]
libfscrypt: Export FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64

We need to test for this flag when deciding whether to set
stable_inodes.

Bug: 143307095
Test: Set inlinecrypt_optimized, check that stable_inodes is set
Change-Id: Ic3245466eccd88ed2784ff4b2a348ca65085e2a4

4 years agoMerge "libfscrypt: Support inlinecrypt_optimized flag"
Paul Crowley [Tue, 29 Oct 2019 15:47:04 +0000 (08:47 -0700)]
Merge "libfscrypt: Support inlinecrypt_optimized flag"
am: 925804c49b

Change-Id: If2facd934807c5acd36a39d8553adbd85982343f

4 years agoMerge "libfscrypt: Support inlinecrypt_optimized flag"
Treehugger Robot [Tue, 29 Oct 2019 15:32:39 +0000 (15:32 +0000)]
Merge "libfscrypt: Support inlinecrypt_optimized flag"

4 years agoMerge changes I28f35a1e,Ieb72dc88
Paul Crowley [Tue, 29 Oct 2019 04:17:43 +0000 (21:17 -0700)]
Merge changes I28f35a1e,Ieb72dc88
am: 670bf01c4a

Change-Id: I1254f8b88f5a08ffad7625ee0a464a06e73a6f17

4 years agoMerge changes I28f35a1e,Ieb72dc88
Treehugger Robot [Tue, 29 Oct 2019 04:01:55 +0000 (04:01 +0000)]
Merge changes I28f35a1e,Ieb72dc88

* changes:
  libfscrypt: Infer flags at parse time and include in options struct
  libfscrypt: No need for parts-parsing any more, integrate code.

4 years agoMerge changes from topic "fstab-options"
Paul Crowley [Tue, 29 Oct 2019 02:22:36 +0000 (19:22 -0700)]
Merge changes from topic "fstab-options"
am: 2982299b90

Change-Id: I580505f44e61ff7f952c1cd7c548a3a995333f72

4 years agolibfscrypt: Log which version of policy we set.
Paul Crowley [Tue, 29 Oct 2019 02:22:25 +0000 (19:22 -0700)]
libfscrypt: Log which version of policy we set.
am: 9444d62255

Change-Id: I00abfa9dd60e7be3d8c4e54b27449895dedec914

4 years agoMerge changes from topic "fstab-options"
Paul Crowley [Tue, 29 Oct 2019 02:00:36 +0000 (02:00 +0000)]
Merge changes from topic "fstab-options"

* changes:
  libfscrypt: Options parser now fills missing defaults
  libfscrypt: Log which version of policy we set.

4 years agolibfscrypt: Support inlinecrypt_optimized flag
Paul Crowley [Sat, 26 Oct 2019 00:09:03 +0000 (17:09 -0700)]
libfscrypt: Support inlinecrypt_optimized flag

Bug: 143307095
Test: add flag in fstab, check policy logs
Change-Id: Ic80d348c2c7d56048e0e73d985f709e8d287cd9f

4 years agolibfscrypt: Infer flags at parse time and include in options struct
Paul Crowley [Fri, 25 Oct 2019 17:28:53 +0000 (10:28 -0700)]
libfscrypt: Infer flags at parse time and include in options struct

Bug: 143307095
Test: cuttlefish, policy=v1 -> flags=0, policy=v2 -> flags=2
Change-Id: I28f35a1e0ee474d07e2e2b591c84e9057ecb6acf

4 years agolibfscrypt: Options parser now fills missing defaults
Paul Crowley [Fri, 25 Oct 2019 06:27:50 +0000 (23:27 -0700)]
libfscrypt: Options parser now fills missing defaults

Bug: 143307095
Test: use parser for fstab
Change-Id: Ia103a2e7947d03fb50a378472203363477d865e5

4 years agolibfscrypt: No need for parts-parsing any more, integrate code.
Paul Crowley [Fri, 25 Oct 2019 17:19:10 +0000 (10:19 -0700)]
libfscrypt: No need for parts-parsing any more, integrate code.

Bug: 143307095
Test: atest libfscrypt_unit_test
Change-Id: Ieb72dc88c227128ecadc44096a2266fe2af0d20b

4 years agolibfscrypt: Log which version of policy we set.
Paul Crowley [Fri, 25 Oct 2019 05:51:20 +0000 (22:51 -0700)]
libfscrypt: Log which version of policy we set.

Bug: 143307095
Test: check logs
Change-Id: Ib8a91dc153919063bc3daf5075848a64a7e48cf8

4 years agoMerge "simpleperf: don't adjust frequency for etm recording."
Yabin Cui [Fri, 25 Oct 2019 21:51:11 +0000 (14:51 -0700)]
Merge "simpleperf: don't adjust frequency for etm recording."
am: 72e2ec035d

Change-Id: I6251064049197e437d3d1ebc69f2c8db7807880f

4 years agoMerge "simpleperf: don't adjust frequency for etm recording."
Yabin Cui [Fri, 25 Oct 2019 21:32:36 +0000 (21:32 +0000)]
Merge "simpleperf: don't adjust frequency for etm recording."

4 years agoMerge "Provide struct-based C++ interface"
Paul Crowley [Fri, 25 Oct 2019 18:14:48 +0000 (11:14 -0700)]
Merge "Provide struct-based C++ interface"
am: ccdb80d368

Change-Id: Ide55716ffc353d354fbff14ef4475982e503b723

4 years agoMerge "Provide struct-based C++ interface"
Paul Crowley [Fri, 25 Oct 2019 18:05:26 +0000 (18:05 +0000)]
Merge "Provide struct-based C++ interface"

4 years agoProvide struct-based C++ interface
Paul Crowley [Thu, 24 Oct 2019 21:51:44 +0000 (14:51 -0700)]
Provide struct-based C++ interface

Replace many-parameter C interface with a cleaner and more complete
C++ interface for passing around policies in a struct.

Bug: 143307095
Test: treehugger
Change-Id: I95aeaae211f7ad698854bcc66c6d25a0bcb24cfe

4 years agoMerge "libperfmgr: remove node written tests"
Wei Wang [Fri, 25 Oct 2019 02:31:54 +0000 (19:31 -0700)]
Merge "libperfmgr: remove node written tests"
am: ace4514d71

Change-Id: I68f0c05f5c5b04bafb07dc98f8ce7eb0699896b7

4 years agoMerge "libperfmgr: remove node written tests"
Wei Wang [Fri, 25 Oct 2019 02:18:28 +0000 (02:18 +0000)]
Merge "libperfmgr: remove node written tests"

4 years agolibperfmgr: remove node written tests
Wei Wang [Thu, 24 Oct 2019 23:42:35 +0000 (16:42 -0700)]
libperfmgr: remove node written tests

Test: build
Change-Id: I0754c42a46f0a7f252190dcad2a58bc7877a85cf

4 years agoMerge "Update help commands"
Wei Wang [Thu, 24 Oct 2019 04:25:45 +0000 (21:25 -0700)]
Merge "Update help commands"
am: f133fac48c

Change-Id: I81aaa1c3f122529c9f1d728e20e50e0ed531976d

4 years agoMerge "Update help commands"
Wei Wang [Thu, 24 Oct 2019 04:10:49 +0000 (04:10 +0000)]
Merge "Update help commands"

4 years agoMerge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master
TreeHugger Robot [Thu, 24 Oct 2019 00:26:48 +0000 (00:26 +0000)]
Merge "Skip QD1A.190821.011 in stage-aosp-master" into stage-aosp-master

4 years agoUpdate help commands
Wei Wang [Wed, 23 Oct 2019 23:08:03 +0000 (16:08 -0700)]
Update help commands

Test: build
Change-Id: I41b2e23d19c8e01927ae7e78585f19aedfd2a37a

4 years agoMerge "add options to exec individual hint and specify hint duration"
Wei Wang [Wed, 23 Oct 2019 22:35:55 +0000 (15:35 -0700)]
Merge "add options to exec individual hint and specify hint duration"
am: c3e7371880

Change-Id: I9e4a262520f95b7a87ce1de3dd53d36a499e15e4

4 years agoMerge "add options to exec individual hint and specify hint duration"
Wei Wang [Wed, 23 Oct 2019 22:06:35 +0000 (22:06 +0000)]
Merge "add options to exec individual hint and specify hint duration"

4 years agoadd options to exec individual hint and specify hint duration
Wei Wang [Wed, 23 Oct 2019 00:06:50 +0000 (17:06 -0700)]
add options to exec individual hint and specify hint duration

Test: boot and run perfmgr_config_verifier
Change-Id: I0239edc457a04f793bd85a81e726668d605321f7

4 years agoMerge "simpleperf: add periodic callback to flush etm data."
Yabin Cui [Mon, 21 Oct 2019 22:12:40 +0000 (15:12 -0700)]
Merge "simpleperf: add periodic callback to flush etm data."
am: b0afbc964f

Change-Id: I206910e8132e4681929d5b67a2dbc4a50227d2e2

4 years agosimpleperf: don't adjust frequency for etm recording.
Yabin Cui [Mon, 21 Oct 2019 18:26:06 +0000 (11:26 -0700)]
simpleperf: don't adjust frequency for etm recording.

Bug: none
Test: run simpleperf_unit_test.

Change-Id: I401bcc72492b8a751c4a06f37026ef93d0af74c0

4 years agoMerge "simpleperf: add periodic callback to flush etm data."
Yabin Cui [Mon, 21 Oct 2019 21:18:14 +0000 (21:18 +0000)]
Merge "simpleperf: add periodic callback to flush etm data."

4 years agoMerge "simpleperf: fix ScopedEventTypes."
Yabin Cui [Mon, 21 Oct 2019 20:28:12 +0000 (13:28 -0700)]
Merge "simpleperf: fix ScopedEventTypes."
am: d5c0d63fc1

Change-Id: I66373e86dff93084256068b825b78f9e261b8132

4 years agoMerge "simpleperf: fix ScopedEventTypes."
Yabin Cui [Mon, 21 Oct 2019 18:54:46 +0000 (18:54 +0000)]
Merge "simpleperf: fix ScopedEventTypes."

4 years agosimpleperf: add periodic callback to flush etm data.
Yabin Cui [Fri, 18 Oct 2019 23:54:47 +0000 (16:54 -0700)]
simpleperf: add periodic callback to flush etm data.

Bug: none
Test: run simpleperf_unit_test.
Test: record etm data manually.
Change-Id: I620bcd0606c5ecf7eb076db503baad7f1a54b1d4

4 years agoMerge "Clean up unnecessary dependency on ART internal defaults module."
Martin Stjernholm [Sat, 19 Oct 2019 12:38:42 +0000 (05:38 -0700)]
Merge "Clean up unnecessary dependency on ART internal defaults module."
am: 1476635e45

Change-Id: Id84a9a4d0708b7cec8738b0b73d4fddbf44ae349

4 years agoMerge "Clean up unnecessary dependency on ART internal defaults module."
Treehugger Robot [Sat, 19 Oct 2019 12:20:47 +0000 (12:20 +0000)]
Merge "Clean up unnecessary dependency on ART internal defaults module."

4 years agosimpleperf: fix ScopedEventTypes.
Yabin Cui [Sat, 19 Oct 2019 00:23:32 +0000 (17:23 -0700)]
simpleperf: fix ScopedEventTypes.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: I7d9e91075e535ff5c85d4c13a301704359907f0a

4 years agoMerge "simpleperf: reduce and recover from etm decoding errors."
Yabin Cui [Fri, 18 Oct 2019 23:56:10 +0000 (16:56 -0700)]
Merge "simpleperf: reduce and recover from etm decoding errors."
am: 81932dc525

Change-Id: Ife0846a3ea8df69c33f0feef4ab60f17cce08fe7

4 years agoMerge "simpleperf: reduce and recover from etm decoding errors."
Yabin Cui [Fri, 18 Oct 2019 23:24:43 +0000 (23:24 +0000)]
Merge "simpleperf: reduce and recover from etm decoding errors."

4 years agosimpleperf: reduce and recover from etm decoding errors.
Yabin Cui [Fri, 18 Oct 2019 21:01:15 +0000 (14:01 -0700)]
simpleperf: reduce and recover from etm decoding errors.

ETM decoding fails when processing some invalid data like invalid packet
headers. Invalid data may be caused by truncated etm data or other
reasons.

Invalid data can be skipped by resetting decoders, which will force
decoders to look for sync points (I_ASYNC packets) in the data stream.

So to fix the problem:
1. Reset decoders when processing a new data block, which avoid invalid
data at the beginning of a block.
2. When having a decoding error, recover from it by resetting decoders.

Bug: none
Test: run simpleperf_unit_test.
Test: record and decode etm data continuously on device.
Change-Id: If44edc04428f22e605afe994aabeb6ff350cffb1

4 years agoMerge "Allow trace files to be zipped or text files."
Christopher Ferris [Fri, 18 Oct 2019 01:05:41 +0000 (18:05 -0700)]
Merge "Allow trace files to be zipped or text files."
am: 9a28fa0125

Change-Id: I629d73519af7db2ee5a404f26546a079c988e5ce

4 years agoMerge "Allow trace files to be zipped or text files."
Christopher Ferris [Fri, 18 Oct 2019 00:54:49 +0000 (00:54 +0000)]
Merge "Allow trace files to be zipped or text files."

4 years agoClean up unnecessary dependency on ART internal defaults module.
Martin Stjernholm [Wed, 9 Oct 2019 23:26:01 +0000 (00:26 +0100)]
Clean up unnecessary dependency on ART internal defaults module.

Only libdexfile_support_static is actually used.

Test: atest system/extras/simpleperf
Bug: 133140750
Change-Id: I2d71b25a1610664648f9172613046ae1ab13177f

4 years agoAllow trace files to be zipped or text files.
Christopher Ferris [Thu, 17 Oct 2019 21:58:57 +0000 (14:58 -0700)]
Allow trace files to be zipped or text files.

Add and update unit tests to verify this behavior.

Test: Ran unit tests.
Test: Ran memory_replay on zipped file and text file.
Test: Ran trace_benchmark.
Change-Id: I296b27902a5a53a130a2c09063efc369830a9d05

4 years agoSkip QD1A.190821.011 in stage-aosp-master
Xin Li [Wed, 16 Oct 2019 22:19:31 +0000 (15:19 -0700)]
Skip QD1A.190821.011 in stage-aosp-master

Bug: 141248619
Change-Id: If13d25087fb538b7165d10fd1a010953ba86c58d

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 5933778."
Yabin Cui [Fri, 11 Oct 2019 21:26:39 +0000 (14:26 -0700)]
Merge "simpleperf: update simpleperf prebuilts to build 5933778."
am: a8bd5066f2

Change-Id: Ie72385ef75198b8420218921990b7a2c83f24d97

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 5933778."
Treehugger Robot [Fri, 11 Oct 2019 21:08:09 +0000 (21:08 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 5933778."

4 years agosimpleperf: update simpleperf prebuilts to build 5933778.
Yabin Cui [Fri, 11 Oct 2019 17:19:32 +0000 (10:19 -0700)]
simpleperf: update simpleperf prebuilts to build 5933778.

Taken from branch aosp-simpleperf-release.

Bug: none
Test: run test.py on linux.

Change-Id: I79ccb883d484812866e6f11d494ee8c5c6042856

4 years agoMerge "simpleperf: change based on jit debug interface change."
Yabin Cui [Fri, 11 Oct 2019 00:45:06 +0000 (17:45 -0700)]
Merge "simpleperf: change based on jit debug interface change."
am: 84b9c942fb

Change-Id: I9ee97e7510c288ffafe0e7cbd968b163046435d4

4 years agoMerge "simpleperf: change based on jit debug interface change."
Yabin Cui [Fri, 11 Oct 2019 00:22:16 +0000 (00:22 +0000)]
Merge "simpleperf: change based on jit debug interface change."

4 years agosimpleperf: change based on jit debug interface change.
Yabin Cui [Mon, 7 Oct 2019 22:15:12 +0000 (15:15 -0700)]
simpleperf: change based on jit debug interface change.

1. Change magic field and sizeof_entry check for JITDescriptor.
2. Use seqlock field in JITCodeEntryV2 to check its valid.
3. Allow but skip entry with symfile_size = 0 in V2.

Bug: 141558390
Test: run simpleperf_unit_test.
Change-Id: I30e214597cec78c73492fdfeac1f9766b775f0e3

4 years agoMerge "simpleperf: create one map for each jit symbol."
Yabin Cui [Wed, 9 Oct 2019 17:48:52 +0000 (10:48 -0700)]
Merge "simpleperf: create one map for each jit symbol."
am: 7ea25d629c

Change-Id: I860b84d19fada18f48f35b0fb36f278d2e3e4f6a

4 years agoMerge "simpleperf: create one map for each jit symbol."
Yabin Cui [Wed, 9 Oct 2019 17:14:43 +0000 (17:14 +0000)]
Merge "simpleperf: create one map for each jit symbol."

4 years agoMerge "simpleperf: merge jitted and interpreted java methods."
Yabin Cui [Tue, 8 Oct 2019 23:27:09 +0000 (16:27 -0700)]
Merge "simpleperf: merge jitted and interpreted java methods."
am: bf9f91a149

Change-Id: Iad4f3daffa1cf3cf315a0e6de4575fdf04b19b5c