OSDN Git Service

android-x86/system-extras.git
5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge Android 10 into master" am: 3342738e...
Xin Li [Thu, 5 Sep 2019 23:00:00 +0000 (16:00 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge Android 10 into master" am: 3342738e82 -s ours am: cf1093b672 -s ours
am: fd7ac60f4b

Change-Id: I6b678f679714644a48f0cb97dc42c7cd001dccd9

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge Android 10 into master" am: 3342738e...
Xin Li [Thu, 5 Sep 2019 22:50:52 +0000 (15:50 -0700)]
[automerger skipped] Merge "DO NOT MERGE - Merge Android 10 into master" am: 3342738e82 -s ours
am: cf1093b672 -s ours
am skip reason: subject contains skip directive

Change-Id: Ief940ed38db328ea81cee83e09d43bbec56f9d8d

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge Android 10 into master"
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

5 years ago[automerger skipped] DO NOT MERGE - Merge Android 10 into master am: cbe369529b ...
Xin Li [Thu, 5 Sep 2019 21:45:25 +0000 (14:45 -0700)]
[automerger skipped] DO NOT MERGE - Merge Android 10 into master am: cbe369529b -s ours am: 7ed8d9fdae -s ours
am: f84e9dfe0c

Change-Id: I0f6a3ecbea32241109d67be652aa7af523d671bf

5 years ago[automerger skipped] DO NOT MERGE - Merge Android 10 into master am: cbe369529b ...
Xin Li [Thu, 5 Sep 2019 21:07:15 +0000 (14:07 -0700)]
[automerger skipped] DO NOT MERGE - Merge Android 10 into master am: cbe369529b -s ours
am: 7ed8d9fdae -s ours
am skip reason: subject contains skip directive

Change-Id: I346aee66b999f176db0a431686187c339b2379cf

5 years ago[automerger skipped] DO NOT MERGE - Merge Android 10 into master
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

5 years agoMerge "simpleperf: support profiling art interpreter on linux host." am: 749f0bac4a...
Yabin Cui [Thu, 5 Sep 2019 17:12:04 +0000 (10:12 -0700)]
Merge "simpleperf: support profiling art interpreter on linux host." am: 749f0bac4a am: 6c09d89eef
am: 559a55d209

Change-Id: I6e308f61fa274c65076032d1ca22b763079231b7

5 years agoMerge "simpleperf: support profiling art interpreter on linux host." am: 749f0bac4a
Yabin Cui [Thu, 5 Sep 2019 17:06:08 +0000 (10:06 -0700)]
Merge "simpleperf: support profiling art interpreter on linux host." am: 749f0bac4a
am: 6c09d89eef

Change-Id: If3c3accc9a27319ef02251f605afcb592f21f219

5 years agoMerge "simpleperf: support profiling art interpreter on linux host."
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

5 years agoMerge "DO NOT MERGE - Merge Android 10 into master"
Xin Li [Thu, 5 Sep 2019 16:53:33 +0000 (16:53 +0000)]
Merge "DO NOT MERGE - Merge Android 10 into master"

5 years agoMerge "simpleperf: support profiling art interpreter on linux host."
Treehugger Robot [Thu, 5 Sep 2019 16:45:38 +0000 (16:45 +0000)]
Merge "simpleperf: support profiling art interpreter on linux host."

5 years agosimpleperf: 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

5 years agoDO NOT MERGE - Merge Android 10 into master
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

5 years agoMerge "Add support for new taskstats v9 functionality" am: 9229017530 am: 8db948eff7
Peter Enderborg [Tue, 3 Sep 2019 21:32:57 +0000 (14:32 -0700)]
Merge "Add support for new taskstats v9 functionality" am: 9229017530 am: 8db948eff7
am: 572f86ea5f

Change-Id: I322456d75452f7fd2e3d56797717919dfb8cf258

5 years agoMerge "Add support for new taskstats v9 functionality" am: 9229017530
Peter Enderborg [Tue, 3 Sep 2019 21:17:09 +0000 (14:17 -0700)]
Merge "Add support for new taskstats v9 functionality" am: 9229017530
am: 8db948eff7

Change-Id: I333ee7acf008b56c65a9057d4e944c60b53e3082

5 years agoMerge "Add support for new taskstats v9 functionality"
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

5 years agoMerge "Add support for new taskstats v9 functionality"
Treehugger Robot [Tue, 3 Sep 2019 20:37:06 +0000 (20:37 +0000)]
Merge "Add support for new taskstats v9 functionality"

5 years agoMerge "simpleperf: switch to llvm-symbolizer." am: f626973b9a am: 617bd5592a
Yabin Cui [Tue, 3 Sep 2019 17:54:38 +0000 (10:54 -0700)]
Merge "simpleperf: switch to llvm-symbolizer." am: f626973b9a am: 617bd5592a
am: ec46bff35f

Change-Id: I08a0adf3bd78ec4f36aed73a6fdd74d477fb7fdb

5 years agoMerge "simpleperf: switch to llvm-symbolizer." am: f626973b9a
Yabin Cui [Tue, 3 Sep 2019 17:47:41 +0000 (10:47 -0700)]
Merge "simpleperf: switch to llvm-symbolizer." am: f626973b9a
am: 617bd5592a

Change-Id: I51d26acae29b7c80458dd9888b6af21176f09aa5

5 years agoMerge "simpleperf: switch to llvm-symbolizer."
Yabin Cui [Tue, 3 Sep 2019 17:41:15 +0000 (10:41 -0700)]
Merge "simpleperf: switch to llvm-symbolizer."
am: f626973b9a

Change-Id: Iba347945d89f95967815e58809b90d667e0df8d5

5 years agoMerge "simpleperf: switch to llvm-symbolizer."
Yabin Cui [Tue, 3 Sep 2019 17:21:54 +0000 (17:21 +0000)]
Merge "simpleperf: switch to llvm-symbolizer."

5 years agosimpleperf: 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

5 years agoMerge "Refactor code with single trace parser." am: 7ac993ce67 am: 2077beb1a9
Christopher Ferris [Fri, 30 Aug 2019 18:48:01 +0000 (11:48 -0700)]
Merge "Refactor code with single trace parser." am: 7ac993ce67 am: 2077beb1a9
am: 8a80143732

Change-Id: I6e0075870521d601d489571c07027071140a8a71

5 years agoMerge "Refactor code with single trace parser." am: 7ac993ce67
Christopher Ferris [Fri, 30 Aug 2019 18:29:55 +0000 (11:29 -0700)]
Merge "Refactor code with single trace parser." am: 7ac993ce67
am: 2077beb1a9

Change-Id: I91c9c89815948ed4e61460ef9bd0cbf1c3e80db0

5 years agoMerge "Refactor code with single trace parser."
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

5 years agoMerge "Refactor code with single trace parser."
Christopher Ferris [Fri, 30 Aug 2019 17:47:00 +0000 (17:47 +0000)]
Merge "Refactor code with single trace parser."

5 years agoRefactor 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

5 years agoMerge "simpleperf: add --include-filter in record cmd." am: 178d1d48bf am: 64146b2a17
Yabin Cui [Fri, 30 Aug 2019 00:13:00 +0000 (17:13 -0700)]
Merge "simpleperf: add --include-filter in record cmd." am: 178d1d48bf am: 64146b2a17
am: 0fe1554768

Change-Id: I022874f6155d2ee09faae6307b17b00871c6a059

5 years agoMerge "simpleperf: add --include-filter in record cmd." am: 178d1d48bf
Yabin Cui [Thu, 29 Aug 2019 23:53:45 +0000 (16:53 -0700)]
Merge "simpleperf: add --include-filter in record cmd." am: 178d1d48bf
am: 64146b2a17

Change-Id: Id9b986dc05b4abb303630b51e6eefb8fc08c3b5c

5 years agoMerge "simpleperf: add --include-filter in record cmd."
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

5 years agoMerge "simpleperf: add --include-filter in record cmd."
Yabin Cui [Thu, 29 Aug 2019 23:37:14 +0000 (23:37 +0000)]
Merge "simpleperf: add --include-filter in record cmd."

5 years agosimpleperf: 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

5 years agoMerge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED." am: 3562ed57ed am:...
David Anderson [Wed, 28 Aug 2019 03:15:47 +0000 (20:15 -0700)]
Merge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED." am: 3562ed57ed am: aed02f2a70
am: 4e424d9f8c

Change-Id: I5cb04c3488dfba89c6c993eb1da3b6a969d25b37

5 years agoMerge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED." am: 3562ed57ed
David Anderson [Wed, 28 Aug 2019 03:07:45 +0000 (20:07 -0700)]
Merge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED." am: 3562ed57ed
am: aed02f2a70

Change-Id: Iffb8cd80bc459d1cc94ef9291a5b7aaa5dcf28dd

5 years agoMerge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED."
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

5 years agoMerge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED."
David Anderson [Wed, 28 Aug 2019 02:51:43 +0000 (02:51 +0000)]
Merge "Update lpdump to recognize LP_PARTITION_ATTR_UPDATED."

5 years agoUpdate 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

5 years agoMerge "Move fscrypt_init_extensions into system/core" am: 39e92468ad am: 55f0b4def8
Paul Crowley [Tue, 27 Aug 2019 03:03:25 +0000 (20:03 -0700)]
Merge "Move fscrypt_init_extensions into system/core" am: 39e92468ad am: 55f0b4def8
am: 80bee30dad

Change-Id: I2b5f432619026cc6faacb5aec9fa5a408579379e

5 years agoMerge "If the rollback directories won't encrypt, wipe them" am: 43ce86f084 am: 781bd...
Paul Crowley [Tue, 27 Aug 2019 02:33:18 +0000 (19:33 -0700)]
Merge "If the rollback directories won't encrypt, wipe them" am: 43ce86f084 am: 781bdf281c
am: 61576e5cf3

Change-Id: I7b2222d72cd42a22017ece9b69239553225dde0c

5 years agoMerge "Move fscrypt_init_extensions into system/core" am: 39e92468ad
Paul Crowley [Tue, 27 Aug 2019 02:10:14 +0000 (19:10 -0700)]
Merge "Move fscrypt_init_extensions into system/core" am: 39e92468ad
am: 55f0b4def8

Change-Id: I16d9b00a05e2af01647dd5b19411b6d7362aa161

5 years agoMerge "If the rollback directories won't encrypt, wipe them" am: 43ce86f084
Paul Crowley [Tue, 27 Aug 2019 01:53:04 +0000 (18:53 -0700)]
Merge "If the rollback directories won't encrypt, wipe them" am: 43ce86f084
am: 781bdf281c

Change-Id: I6356abd1d9b7b615c1ebefb3efdc3c69bd3e378f

5 years agoMerge "Move fscrypt_init_extensions into system/core"
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

5 years agoMerge "If the rollback directories won't encrypt, wipe them"
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

5 years agoMerge "Move fscrypt_init_extensions into system/core"
Treehugger Robot [Mon, 26 Aug 2019 23:24:54 +0000 (23:24 +0000)]
Merge "Move fscrypt_init_extensions into system/core"

5 years agoMerge "If the rollback directories won't encrypt, wipe them"
Treehugger Robot [Mon, 26 Aug 2019 23:24:49 +0000 (23:24 +0000)]
Merge "If the rollback directories won't encrypt, wipe them"

5 years agoMove fscrypt_init_extensions into system/core
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

5 years agoIf the rollback directories won't encrypt, wipe them
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

5 years agoMerge "simpleperf: fix is_elf_file." am: abde21870e am: b321cc63f8
Yabin Cui [Thu, 22 Aug 2019 21:43:57 +0000 (14:43 -0700)]
Merge "simpleperf: fix is_elf_file." am: abde21870e am: b321cc63f8
am: ffc5995997

Change-Id: Iebb19de3f11e702014c4120ccfd24359f3b1f226

5 years agoMerge "simpleperf: add inject cmd." am: 93dac5f6ac am: 41968dd856
Yabin Cui [Thu, 22 Aug 2019 21:42:43 +0000 (14:42 -0700)]
Merge "simpleperf: add inject cmd." am: 93dac5f6ac am: 41968dd856
am: 738200600f

Change-Id: Ibc1bc64a31d5e3bb60f83e5f68f72f6cc5c07e44

5 years agoMerge "simpleperf: fix is_elf_file." am: abde21870e
Yabin Cui [Thu, 22 Aug 2019 21:35:11 +0000 (14:35 -0700)]
Merge "simpleperf: fix is_elf_file." am: abde21870e
am: b321cc63f8

Change-Id: I76f1cd64fa205377fb4806545e447f0e20b92c3b

5 years agoMerge "simpleperf: add inject cmd." am: 93dac5f6ac
Yabin Cui [Thu, 22 Aug 2019 21:33:45 +0000 (14:33 -0700)]
Merge "simpleperf: add inject cmd." am: 93dac5f6ac
am: 41968dd856

Change-Id: If6d2b0a9cf74642e1423a3a5e473c8c1e15cc0cd

5 years agoMerge "simpleperf: fix is_elf_file."
Yabin Cui [Thu, 22 Aug 2019 21:23:47 +0000 (14:23 -0700)]
Merge "simpleperf: fix is_elf_file."
am: abde21870e

Change-Id: Ie8001786fec5cb09e2ce76d9fe4b882b2ff18b0a

5 years agoMerge "simpleperf: add inject cmd."
Yabin Cui [Thu, 22 Aug 2019 21:22:46 +0000 (14:22 -0700)]
Merge "simpleperf: add inject cmd."
am: 93dac5f6ac

Change-Id: I471c37642d76de90af2c4938a6b6e1e93db2737a

5 years agoMerge "simpleperf: fix is_elf_file."
Yabin Cui [Thu, 22 Aug 2019 20:56:08 +0000 (20:56 +0000)]
Merge "simpleperf: fix is_elf_file."

5 years agoMerge "simpleperf: add inject cmd."
Yabin Cui [Thu, 22 Aug 2019 20:55:46 +0000 (20:55 +0000)]
Merge "simpleperf: add inject cmd."

5 years agosimpleperf: fix is_elf_file.
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

5 years agosimpleperf: add inject cmd.
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

5 years agoMerge "simpleperf: add --use-devfreq-counters option." am: 5ff5b91fdc am: 5507a26a7c
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

5 years agoMerge "simpleperf: add --use-devfreq-counters option." am: 5ff5b91fdc
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

5 years agoMerge "simpleperf: add --use-devfreq-counters option."
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

5 years agoMerge "simpleperf: Add ETMDecoder." am: 0441e116a8 am: b6d4993018
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

5 years agoMerge "simpleperf: Add ETMDecoder." am: 0441e116a8
Yabin Cui [Tue, 20 Aug 2019 23:54:56 +0000 (16:54 -0700)]
Merge "simpleperf: Add ETMDecoder." am: 0441e116a8
am: b6d4993018

Change-Id: If03fc188e574160465bd31677b41818fea0cc5d7

5 years agoMerge "simpleperf: add --use-devfreq-counters option."
Yabin Cui [Tue, 20 Aug 2019 23:45:11 +0000 (23:45 +0000)]
Merge "simpleperf: add --use-devfreq-counters option."

5 years agoMerge "simpleperf: Add ETMDecoder."
Yabin Cui [Tue, 20 Aug 2019 23:27:02 +0000 (16:27 -0700)]
Merge "simpleperf: Add ETMDecoder."
am: 0441e116a8

Change-Id: I14f7f4fa991785bc03036ce7b046723342223491

5 years agoMerge "simpleperf: Add ETMDecoder."
Yabin Cui [Tue, 20 Aug 2019 23:08:37 +0000 (23:08 +0000)]
Merge "simpleperf: Add ETMDecoder."

5 years agosimpleperf: add --use-devfreq-counters option.
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

5 years agoMerge "simpleperf: update building prebuilts." am: d1df579357 am: 7509db7dcc
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

5 years agoMerge "simpleperf: update building prebuilts." am: d1df579357
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

5 years agoMerge "simpleperf: update building prebuilts."
Yabin Cui [Tue, 20 Aug 2019 21:02:17 +0000 (14:02 -0700)]
Merge "simpleperf: update building prebuilts."
am: d1df579357

Change-Id: Ic38640eccc732b298b94ab4f6b5a49a307f441bf

5 years agosimpleperf: Add ETMDecoder.
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

5 years agoMerge "simpleperf: update building prebuilts."
Yabin Cui [Tue, 20 Aug 2019 20:23:09 +0000 (20:23 +0000)]
Merge "simpleperf: update building prebuilts."

5 years agosimpleperf: 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

5 years agoMerge "simpleperf: update simpleperf prebuilts to build 5806936." am: e2af8d6b15...
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

5 years agoMerge "simpleperf: update simpleperf prebuilts to build 5806936." am: e2af8d6b15
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

5 years agoMerge "simpleperf: update simpleperf prebuilts to build 5806936."
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

5 years agoMerge "simpleperf: update simpleperf prebuilts to build 5806936."
Yabin Cui [Mon, 19 Aug 2019 19:24:11 +0000 (19:24 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 5806936."

5 years agosimpleperf: 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

5 years agoAdd support for new taskstats v9 functionality
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

5 years agoMerge "simpleperf: Update apks for testing ApiProfiler." am: 3c9e6a09ca am: 320f4563cb
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

5 years agoMerge "simpleperf: Update apks for testing ApiProfiler." am: 3c9e6a09ca
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

5 years agoMerge "simpleperf: Update apks for testing ApiProfiler."
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

5 years agoMerge "simpleperf: Update apks for testing ApiProfiler."
Yabin Cui [Fri, 16 Aug 2019 17:52:36 +0000 (17:52 +0000)]
Merge "simpleperf: Update apks for testing ApiProfiler."

5 years agosimpleperf: 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

5 years agoMerge "Add new traces." am: 3b4faa69d0 am: 3036799bbc
Christopher Ferris [Thu, 15 Aug 2019 15:02:19 +0000 (08:02 -0700)]
Merge "Add new traces." am: 3b4faa69d0 am: 3036799bbc
am: a7cd7de0a6

Change-Id: I39de66fa3e66eaed23f33cee2e26c23a3d033517

5 years agoMerge "Add new traces." am: 3b4faa69d0
Christopher Ferris [Thu, 15 Aug 2019 14:52:19 +0000 (07:52 -0700)]
Merge "Add new traces." am: 3b4faa69d0
am: 3036799bbc

Change-Id: I311298c6e678bb35493010f0cf2a7ae7d52127f0

5 years agoMerge "Add new traces."
Christopher Ferris [Thu, 15 Aug 2019 14:41:19 +0000 (07:41 -0700)]
Merge "Add new traces."
am: 3b4faa69d0

Change-Id: I0eeaec19946a31fb004e936fb3f3a02df4cd3c97

5 years agoMerge "Add new traces."
Christopher Ferris [Thu, 15 Aug 2019 14:17:49 +0000 (14:17 +0000)]
Merge "Add new traces."

5 years agoAdd new traces.
Christopher Ferris [Wed, 14 Aug 2019 22:10:13 +0000 (15:10 -0700)]
Add new traces.

Updates included:
- Adding traces from a few games and one top app (Angry Birds2, Candy Crush,
  Pubg, Google Photos).
- Change the dumps directory to traces to use a better name.
- Add new traces to TraceBenchmark.cpp.
- Add a TRACES file that includes information about how the trace files
  were collected.

Test: Unit tests pass.
Test: Ran the trace benchmarks.

Change-Id: I8d60db23cf78dd31977bb81d29749c06e1df354d

5 years agoMerge "Fix test broken by PSS to RSS change." am: c0dabf28ca am: bbe8580e4b
Christopher Ferris [Fri, 9 Aug 2019 16:10:45 +0000 (09:10 -0700)]
Merge "Fix test broken by PSS to RSS change." am: c0dabf28ca am: bbe8580e4b
am: d0a0397b4a

Change-Id: Ib233f5e68833d0101c2c5c4f2b6ef35d0f9e1409

5 years agoMerge "Fix test broken by PSS to RSS change." am: c0dabf28ca
Christopher Ferris [Fri, 9 Aug 2019 15:56:54 +0000 (08:56 -0700)]
Merge "Fix test broken by PSS to RSS change." am: c0dabf28ca
am: bbe8580e4b

Change-Id: I2d1fc963df5e5b880d00fdbbbb5afca42cb15ade

5 years agoMerge "Fix test broken by PSS to RSS change."
Christopher Ferris [Fri, 9 Aug 2019 15:47:29 +0000 (08:47 -0700)]
Merge "Fix test broken by PSS to RSS change."
am: c0dabf28ca

Change-Id: I0448f6455c48b166c59887716c5c1a11eff40692

5 years agoMerge "Fix test broken by PSS to RSS change."
Christopher Ferris [Fri, 9 Aug 2019 15:36:07 +0000 (15:36 +0000)]
Merge "Fix test broken by PSS to RSS change."

5 years agoMerge "simpleperf: add --aux-buffer-size in record cmd." am: f36aa2b28a am: 77605b5b77
Yabin Cui [Fri, 9 Aug 2019 01:24:26 +0000 (18:24 -0700)]
Merge "simpleperf: add --aux-buffer-size in record cmd." am: f36aa2b28a am: 77605b5b77
am: 8d9a066121

Change-Id: Ia6fb96790068cfa31a63aa79cbbda4ebc8ea1694

5 years agoMerge "simpleperf: add --aux-buffer-size in record cmd." am: f36aa2b28a
Yabin Cui [Fri, 9 Aug 2019 01:13:24 +0000 (18:13 -0700)]
Merge "simpleperf: add --aux-buffer-size in record cmd." am: f36aa2b28a
am: 77605b5b77

Change-Id: Ia83ce723a419c0806980e04185759149e221f5a4

5 years agoMerge "simpleperf: add --aux-buffer-size in record cmd."
Yabin Cui [Fri, 9 Aug 2019 01:04:17 +0000 (18:04 -0700)]
Merge "simpleperf: add --aux-buffer-size in record cmd."
am: f36aa2b28a

Change-Id: Ifac3113a2ba15fa0cb45d9afc8eaa88851286c99

5 years agoMerge "simpleperf: add --aux-buffer-size in record cmd."
Yabin Cui [Fri, 9 Aug 2019 00:36:16 +0000 (00:36 +0000)]
Merge "simpleperf: add --aux-buffer-size in record cmd."

5 years agoFix test broken by PSS to RSS change.
Christopher Ferris [Thu, 8 Aug 2019 22:07:36 +0000 (15:07 -0700)]
Fix test broken by PSS to RSS change.

Also, make the tests isolated and remove the suffix on the unit
test executable.

Bug: 138394907

Test: Unit tests pass now.
Change-Id: Iefe0e1738a2c9eda5cc220c55dfd91e4ff0e5a5f

5 years agoMerge "simpleperf: add AuxRecord and AUXTRACE feature section." am: 0ac62db142 am...
Yabin Cui [Thu, 8 Aug 2019 20:42:53 +0000 (13:42 -0700)]
Merge "simpleperf: add AuxRecord and AUXTRACE feature section." am: 0ac62db142 am: 746d8d3b95
am: 05798da7f0

Change-Id: I1028ef3bb556d42fbfbdd4572cb30f11c249b626

5 years agoMerge "simpleperf: add AuxRecord and AUXTRACE feature section." am: 0ac62db142
Yabin Cui [Thu, 8 Aug 2019 20:32:20 +0000 (13:32 -0700)]
Merge "simpleperf: add AuxRecord and AUXTRACE feature section." am: 0ac62db142
am: 746d8d3b95

Change-Id: I0a9131700ae85098c8769918a20ce5be8c901dfd

5 years agosimpleperf: add --aux-buffer-size in record cmd.
Yabin Cui [Sat, 3 Aug 2019 00:12:28 +0000 (17:12 -0700)]
simpleperf: add --aux-buffer-size in record cmd.

Bug: 135204414
Test: run simpleperf_unit_test.
Change-Id: I6baee8a2b178a374e446e0da4792eb9287bba6b1