OSDN Git Service

android-x86/system-extras.git
6 years agolibpagemap: make pm_kernel_* APIs consistently return negative errors.
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>
6 years agoMerge "simpleperf: fix a type error."
Treehugger Robot [Fri, 10 Aug 2018 15:24:29 +0000 (15:24 +0000)]
Merge "simpleperf: fix a type error."

6 years agosimpleperf: fix a type error.
Yabin Cui [Fri, 10 Aug 2018 01:16:53 +0000 (18:16 -0700)]
simpleperf: fix a type error.

Bug: none
Test: run simpleperf_unit_test on arm.
Change-Id: I7586810e84574e9beee38fd69c63497c24946da5

6 years agoMerge "simpleperf: fix reading dynmaic symbols."
Treehugger Robot [Thu, 9 Aug 2018 20:23:06 +0000 (20:23 +0000)]
Merge "simpleperf: fix reading dynmaic symbols."

6 years agosimpleperf: fix reading dynmaic symbols.
Yabin Cui [Thu, 9 Aug 2018 19:06:10 +0000 (12:06 -0700)]
simpleperf: fix reading dynmaic symbols.

Add a missing check when looking for a symbol's associated section.

Bug: 112405524
Test: manually add log in ReadSymbolTable() to make sure the
Test: section_end case works.
Test: run simpleperf_unit_test.
Change-Id: Ie75d3791086cf3d14dab0a763cfa92b4e73f82c5

6 years agoMerge "Move to using ClassAccessor"
Mathieu Chartier [Wed, 8 Aug 2018 17:39:48 +0000 (17:39 +0000)]
Merge "Move to using ClassAccessor"

6 years agoMerge "perfprofd: Fix get_charging logic"
Treehugger Robot [Wed, 8 Aug 2018 17:21:47 +0000 (17:21 +0000)]
Merge "perfprofd: Fix get_charging logic"

6 years agoMove to using ClassAccessor
Mathieu Chartier [Wed, 8 Aug 2018 01:32:31 +0000 (18:32 -0700)]
Move to using ClassAccessor

In preparation for removal of ClassDataItemIterator.

Bug: 79758018
Test: make
Change-Id: I6c9e9e5eabcfcb785595d6c892b4167853823ebe

6 years agoperfprofd: Fix get_charging logic
Yifan Hong [Tue, 7 Aug 2018 00:09:19 +0000 (17:09 -0700)]
perfprofd: Fix get_charging logic

getChargeStatus() can also return FULL for charging, so
test for that as well.

Change-Id: I611b687cfd9b65ef4ab2e0103d38116c9a893164
Fixes: 112184119
Test: perfprofd_test() has no errors related to get_charging()

6 years agoMerge "Revert "Support Speck encryption.""
Treehugger Robot [Tue, 7 Aug 2018 21:11:51 +0000 (21:11 +0000)]
Merge "Revert "Support Speck encryption.""

6 years agoRevert "Support Speck encryption."
Greg Kaiser [Wed, 1 Aug 2018 19:47:48 +0000 (12:47 -0700)]
Revert "Support Speck encryption."

This is a partial revert of
commit 6a0fa62dc71157f85b24ed15e39ada277f9b5201.

Remove the Speck encryption support. It was eventually
decided not to allow Speck in Android P, so this code
is no longer needed and wasn't used outside of testing.

We retain the e4crypt_get_policy_flags() changes from original
commit, though.

Bug: 112009351
Test: Confirmed AES continues to work with FBE.
Change-Id: I53b091dd4c5392de7a00a8c168919fb55e527eaf

6 years agoMerge "Merge Android Pie into master"
Xin Li [Tue, 7 Aug 2018 16:51:27 +0000 (16:51 +0000)]
Merge "Merge Android Pie into master"

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4934367."
Treehugger Robot [Tue, 7 Aug 2018 04:40:58 +0000 (04:40 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4934367."

6 years agoMerge "simpleperf: use Addr2Nearestline in annotate.py."
Treehugger Robot [Tue, 7 Aug 2018 01:55:52 +0000 (01:55 +0000)]
Merge "simpleperf: use Addr2Nearestline in annotate.py."

6 years agoMerge Android Pie into master
Xin Li [Tue, 7 Aug 2018 00:27:10 +0000 (17:27 -0700)]
Merge Android Pie into master

Bug: 112104996
Change-Id: I8402a013c2121613d154a84655bc42d0ae7150bf

6 years agosimpleperf: update simpleperf prebuilts to build 4934367.
Yabin Cui [Mon, 6 Aug 2018 23:36:55 +0000 (16:36 -0700)]
simpleperf: update simpleperf prebuilts to build 4934367.

Taken from branch aosp-master.

Test: run test.py.

Change-Id: If0c2d3c95b9dd43d21997dab42f42483dbe0a456

6 years agoMerge "simpleperf: add test for a kernel bug making zero dyn_size."
Treehugger Robot [Mon, 6 Aug 2018 23:58:52 +0000 (23:58 +0000)]
Merge "simpleperf: add test for a kernel bug making zero dyn_size."

6 years agosimpleperf: use Addr2Nearestline in annotate.py.
Yabin Cui [Mon, 6 Aug 2018 23:18:23 +0000 (16:18 -0700)]
simpleperf: use Addr2Nearestline in annotate.py.

It contains below changes:
1. Move SourceFileSearcher from report_html.py to utils.py.
2. Use Addr2Nearestline and SourceFileSearcher to replace code finding
source lines and files in annotate.py.
3. Use Addr2Nearestline to replace code finding source lines in
pprof_proto_generator.py.
4. Update tests for SourceFileSearcher and Addr2Nearestline.
5. Add options to run selected tests.

Bug: none
Test: run test.py.
Change-Id: Ifed8b798b243f344ac9baab478862ac8b3bb56f4

6 years agoMerge "Make host targets use non-repackaged targets"
Neil Fuller [Sun, 5 Aug 2018 15:12:52 +0000 (08:12 -0700)]
Merge "Make host targets use non-repackaged targets"
am: 6ba2231930

Change-Id: I0c03213cd351080d6bf7cbab4e6e49b83bc2d2b9

6 years agoMerge "Make host targets use non-repackaged targets"
Treehugger Robot [Sun, 5 Aug 2018 15:05:48 +0000 (15:05 +0000)]
Merge "Make host targets use non-repackaged targets"

6 years agoMerge "simpleperf: make scripts executable."
Yabin Cui [Fri, 3 Aug 2018 23:09:18 +0000 (16:09 -0700)]
Merge "simpleperf: make scripts executable."
am: 41f7122918

Change-Id: I35247feb71d016aba762b98bf6cbaa5780110d40

6 years agoMerge "simpleperf: remove an improper error message."
Yabin Cui [Fri, 3 Aug 2018 23:03:35 +0000 (16:03 -0700)]
Merge "simpleperf: remove an improper error message."
am: d8dd8edbd6

Change-Id: I47eb9cf0ade388ee7aaf4be9655ddbbea52e3d92

6 years agoMerge "simpleperf: make scripts executable."
Treehugger Robot [Fri, 3 Aug 2018 21:54:15 +0000 (21:54 +0000)]
Merge "simpleperf: make scripts executable."

6 years agoMerge "simpleperf: remove an improper error message."
Treehugger Robot [Fri, 3 Aug 2018 21:51:07 +0000 (21:51 +0000)]
Merge "simpleperf: remove an improper error message."

6 years agosimpleperf: add test for a kernel bug making zero dyn_size.
Yabin Cui [Fri, 3 Aug 2018 21:16:51 +0000 (14:16 -0700)]
simpleperf: add test for a kernel bug making zero dyn_size.

Also fix a tiny problem in support_mmap2 test.

Bug: 22612370
Test: run simpleperf_unit_test, it successes on walleye,
Test: and fails on bullhead (which has 3.10 kernel).
Change-Id: I1af69a05446ddb61af6c24b34dc689afac8ee71d

6 years agoMerge "Perfprofd: Add option dump"
Andreas Gampe [Fri, 3 Aug 2018 19:51:46 +0000 (12:51 -0700)]
Merge "Perfprofd: Add option dump"
am: d4e3b2199b

Change-Id: Icda6762aa4551ce1fb3038ffa2e0905d701780d5

6 years agoMerge "Perfprofd: Add option dump"
Treehugger Robot [Fri, 3 Aug 2018 19:40:58 +0000 (19:40 +0000)]
Merge "Perfprofd: Add option dump"

6 years agosimpleperf: make scripts executable.
Yabin Cui [Fri, 3 Aug 2018 18:59:55 +0000 (11:59 -0700)]
simpleperf: make scripts executable.

To run scripts using `./xxx.py` instead of `python xxx.py`.

Bug: none
Test: run scripts using `./xxx.py`.
Change-Id: I0fab340ca92a6345c01474c0de2ff3a0047177c5

6 years agosimpleperf: remove an improper error message.
Yabin Cui [Fri, 3 Aug 2018 18:47:23 +0000 (11:47 -0700)]
simpleperf: remove an improper error message.

Parsing a map using extracted classes.dex in apk file triggers the
error message. But it isn't an error.

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

6 years agoMerge "fgetc(3) returns int."
Elliott Hughes [Fri, 3 Aug 2018 17:54:29 +0000 (10:54 -0700)]
Merge "fgetc(3) returns int."
am: 3dafe0b635

Change-Id: I68145812813f157121f6f9ca17a14edba0d4fafe

6 years agoMerge "libfec: fix a check for read-only mode"
Sami Tolvanen [Fri, 3 Aug 2018 17:54:03 +0000 (10:54 -0700)]
Merge "libfec: fix a check for read-only mode"
am: 497886ab9f

Change-Id: I9e09aa7e38a6b16222cd4ecbbf14fbb23d0c6dca

6 years agoMerge "fgetc(3) returns int."
Treehugger Robot [Fri, 3 Aug 2018 17:52:57 +0000 (17:52 +0000)]
Merge "fgetc(3) returns int."

6 years agoMerge "libfec: fix a check for read-only mode"
Treehugger Robot [Fri, 3 Aug 2018 17:42:10 +0000 (17:42 +0000)]
Merge "libfec: fix a check for read-only mode"

6 years agoMerge "Change the interface parameter from off_t to uint64_t"
Tianjie Xu [Fri, 3 Aug 2018 17:41:19 +0000 (10:41 -0700)]
Merge "Change the interface parameter from off_t to uint64_t"
am: ec4e2d2667

Change-Id: Ib75623509ca990b46bb5040fd4aeba6c5b8698c7

6 years agoMerge "Change the interface parameter from off_t to uint64_t"
Tianjie Xu [Fri, 3 Aug 2018 17:26:55 +0000 (17:26 +0000)]
Merge "Change the interface parameter from off_t to uint64_t"

6 years agolibfec: fix a check for read-only mode
Sami Tolvanen [Thu, 2 Aug 2018 18:13:15 +0000 (11:13 -0700)]
libfec: fix a check for read-only mode

O_RDONLY is defined as zero, which makes the test for it incorrect. As
we don't allow O_WRONLY when opening files, it's sufficient to test for
O_RDWR instead.

Bug: 112147169
Test: tested that corrupt zero blocks are not read without O_RDWR
Change-Id: I2328cda4285f4c9daf98dffa2a6602c9db5ad539

6 years agofgetc(3) returns int.
Elliott Hughes [Thu, 2 Aug 2018 23:29:22 +0000 (16:29 -0700)]
fgetc(3) returns int.

The real WTF here might be that we copy an entire file byte-by-byte if
we ever take this path...

Bug: http://b/112146629
Bug: https://www.viva64.com/en/b/0579/
Test: builds
Change-Id: I8bfe6befa3851a839b499ac222c30d26a82bc075

6 years agoChange the interface parameter from off_t to uint64_t
Tianjie Xu [Thu, 2 Aug 2018 00:06:01 +0000 (17:06 -0700)]
Change the interface parameter from off_t to uint64_t

Therefore, users won't need to set the FILE_OFFSET_BITS=64

Test: unit tests pass
Change-Id: I6dbd756d598ee16282b10ae554ca852d61a6b809

6 years agoMerge "lpmake: Pass the block size to MetadataBuilder."
David Anderson [Thu, 2 Aug 2018 19:31:29 +0000 (12:31 -0700)]
Merge "lpmake: Pass the block size to MetadataBuilder."
am: 1b184b4451

Change-Id: I947f809c536ff35d392e8d925bb280ea1dce61ce

6 years agoMerge "lpmake: Pass the block size to MetadataBuilder."
Treehugger Robot [Thu, 2 Aug 2018 19:20:58 +0000 (19:20 +0000)]
Merge "lpmake: Pass the block size to MetadataBuilder."

6 years agoMerge "simpleperf: add test for a kernel bug."
Yabin Cui [Thu, 2 Aug 2018 17:10:08 +0000 (10:10 -0700)]
Merge "simpleperf: add test for a kernel bug."
am: 604b95c653

Change-Id: I23bad6ab69665da04307afeda47529a3e38f78db

6 years agoMerge "simpleperf: add test for a kernel bug."
Yabin Cui [Thu, 2 Aug 2018 17:01:07 +0000 (17:01 +0000)]
Merge "simpleperf: add test for a kernel bug."

6 years agolpmake: Pass the block size to MetadataBuilder.
David Anderson [Thu, 2 Aug 2018 16:44:50 +0000 (09:44 -0700)]
lpmake: Pass the block size to MetadataBuilder.

Bug: 79173901
Test: lpmake builds
Change-Id: I6e7e5f24c5819250f82d100f47aa15938f7cb039

6 years agoMerge "partition_tools: Use ResizePartition instead of GrowPartition."
David Anderson [Thu, 2 Aug 2018 16:13:10 +0000 (09:13 -0700)]
Merge "partition_tools: Use ResizePartition instead of GrowPartition."
am: ab785445ce

Change-Id: Ie9c5e62684050dae71eef03d5b306d7826f8bdeb

6 years agoMerge "partition_tools: Use ResizePartition instead of GrowPartition."
Treehugger Robot [Thu, 2 Aug 2018 16:01:24 +0000 (16:01 +0000)]
Merge "partition_tools: Use ResizePartition instead of GrowPartition."

6 years agopartition_tools: Use ResizePartition instead of GrowPartition.
David Anderson [Wed, 1 Aug 2018 17:04:22 +0000 (10:04 -0700)]
partition_tools: Use ResizePartition instead of GrowPartition.

Bug: 79173901
Test: N/A
Change-Id: I1b13883f5089a00e7c4637ebb2e5bdb44a50d11e

6 years agoMerge "libfec: skip over verity tree when reading metadata from filesystem."
Sandeep Patil [Wed, 1 Aug 2018 02:17:52 +0000 (19:17 -0700)]
Merge "libfec: skip over verity tree when reading metadata from filesystem."
am: b9d29fa84b

Change-Id: Ia0701405840739cd8b0537cc15c272f3a24be3b5

6 years agoMerge "libfec: skip over verity tree when reading metadata from filesystem."
Treehugger Robot [Wed, 1 Aug 2018 02:09:23 +0000 (02:09 +0000)]
Merge "libfec: skip over verity tree when reading metadata from filesystem."

6 years agosimpleperf: add test for a kernel bug.
Yabin Cui [Tue, 31 Jul 2018 23:43:18 +0000 (16:43 -0700)]
simpleperf: add test for a kernel bug.

Bug: 111520437
Test: run simpleperf_unit_test, it was passed on
Test: on walleye, and caused kernel panic on bullhead and angler.
Change-Id: I848943e9a49b15d69940f5a1615c76bd336d95c4

6 years agolibfec: skip over verity tree when reading metadata from filesystem.
Sandeep Patil [Tue, 31 Jul 2018 20:54:28 +0000 (13:54 -0700)]
libfec: skip over verity tree when reading metadata from filesystem.

If partition size > filesystem image, we must skip over the verity
tree appended to the filesystem image when trying to find the verity
metadata.

Bug: 112046449
Test: Enable verity for hikey960 (system partition size = ~2 x
     filesystem size) and boot.

Change-Id: Ia6cdbc0f35a98fdfa1fb4677951ae5c829cabb0f
Signed-off-by: Sandeep Patil <sspatil@google.com>
6 years agoPerfprofd: Add option dump
Andreas Gampe [Mon, 30 Jul 2018 18:26:24 +0000 (11:26 -0700)]
Perfprofd: Add option dump

Dump an active profiling configuration in cmd perfprofd dump.

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I6f285b1d246126efd196ec26ef556d0415fb4373

6 years agoMerge "Build partition_tools with liblp as a shared library."
David Anderson [Sat, 28 Jul 2018 22:57:59 +0000 (15:57 -0700)]
Merge "Build partition_tools with liblp as a shared library."
am: fde6f72cf0

Change-Id: Ic0b5642d21ecbff28683c3f2d6a9b82c1e6fce8d

6 years agoMerge "Build partition_tools with liblp as a shared library."
Treehugger Robot [Sat, 28 Jul 2018 22:52:23 +0000 (22:52 +0000)]
Merge "Build partition_tools with liblp as a shared library."

6 years agoMerge "Perfprofd: Only pick up FUNC symbols"
Andreas Gampe [Sat, 28 Jul 2018 18:06:45 +0000 (11:06 -0700)]
Merge "Perfprofd: Only pick up FUNC symbols"
am: e1bd9e74b0

Change-Id: Ib8fe308a46c0a5e93a09c75892b995b9ade5661e

6 years agoMerge "Perfprofd: Only pick up FUNC symbols"
Treehugger Robot [Sat, 28 Jul 2018 17:59:35 +0000 (17:59 +0000)]
Merge "Perfprofd: Only pick up FUNC symbols"

6 years agoPerfprofd: Only pick up FUNC symbols
Andreas Gampe [Sat, 28 Jul 2018 00:46:38 +0000 (17:46 -0700)]
Perfprofd: Only pick up FUNC symbols

Lately, more marker symbols are emitted, and mess up general
handling. Only pick up FUNC symbols.

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I9d3c533aaa396aa8a2a46a65ea703eb498985ce8

6 years agoBuild partition_tools with liblp as a shared library.
David Anderson [Fri, 27 Jul 2018 23:14:36 +0000 (16:14 -0700)]
Build partition_tools with liblp as a shared library.

Bug: 79173901
Test: mmm partition_tools builds
Change-Id: Ib96867aeb0a2a3ad777c5017fbc882adeb41a129

6 years agoMerge "simpleperf: enforce clockid support in Android Q."
Yabin Cui [Thu, 26 Jul 2018 19:50:08 +0000 (12:50 -0700)]
Merge "simpleperf: enforce clockid support in Android Q."
am: 8d81763715

Change-Id: Iec5fb44da069fe38968ccc5e91893091e2329d89

6 years agoMerge "simpleperf: enforce clockid support in Android Q."
Yabin Cui [Thu, 26 Jul 2018 17:48:50 +0000 (17:48 +0000)]
Merge "simpleperf: enforce clockid support in Android Q."

6 years agosimpleperf: enforce clockid support in Android Q.
Yabin Cui [Thu, 26 Jul 2018 00:20:52 +0000 (17:20 -0700)]
simpleperf: enforce clockid support in Android Q.

It is needed to merge JIT symfiles into records precisely.

Bug: 110923759
Test: run simpleperf_unit_test.
Change-Id: I676dc5ca40f12145760d59cd786e9ee538abd728

6 years agoMerge "simpleperf: support long callchain in report_html.py."
Yabin Cui [Wed, 25 Jul 2018 22:02:11 +0000 (15:02 -0700)]
Merge "simpleperf: support long callchain in report_html.py."
am: 0e5c69a63f

Change-Id: Ic7088f77cfcc79b5b1f24b9d48a0debf4c6219d9

6 years agoMerge "simpleperf: support long callchain in report_html.py."
Yabin Cui [Wed, 25 Jul 2018 21:53:52 +0000 (21:53 +0000)]
Merge "simpleperf: support long callchain in report_html.py."

6 years agoMerge "Export headers for libverity_tree"
Tianjie Xu [Wed, 25 Jul 2018 20:05:03 +0000 (13:05 -0700)]
Merge "Export headers for libverity_tree"
am: e5cf16f9d3

Change-Id: I251b4b889a50d7c0b45944804dea481c44ef7b5a

6 years agoMerge "Export headers for libverity_tree"
Tianjie Xu [Wed, 25 Jul 2018 19:54:01 +0000 (19:54 +0000)]
Merge "Export headers for libverity_tree"

6 years agosimpleperf: support long callchain in report_html.py.
Yabin Cui [Wed, 25 Jul 2018 18:16:24 +0000 (11:16 -0700)]
simpleperf: support long callchain in report_html.py.

Support callchains with max length 750 in report_html.py, and
cut callchains longer than that to avoid max recursion depth exception.

Bug: none
Test: run test.py TestReportHtml.test_long_callchain.
Change-Id: I9ca278ba4e13a89bcaa4898a5e9c9794b033b604

6 years agoExport headers for libverity_tree
Tianjie Xu [Mon, 23 Jul 2018 22:11:23 +0000 (15:11 -0700)]
Export headers for libverity_tree

Also factor out a function to convert a hex string to the byte array.

Bug: 25170618
Test: unit tests pass
Change-Id: Id9252d58d8de065bce332e806e2302dd18a54a8c

6 years agoMerge "simpleperf: add --binary_filter option in report_html.py."
Yabin Cui [Wed, 25 Jul 2018 00:43:47 +0000 (17:43 -0700)]
Merge "simpleperf: add --binary_filter option in report_html.py."
am: f2307ae2a0

Change-Id: I5f9e6ad5f57f697b9d55bc1870523b9f2a0672a1

6 years agoMerge "simpleperf: add --binary_filter option in report_html.py."
Yabin Cui [Wed, 25 Jul 2018 00:36:25 +0000 (00:36 +0000)]
Merge "simpleperf: add --binary_filter option in report_html.py."

6 years agoMerge "simpleperf: use libunwindstack directly for unwinding."
Yabin Cui [Tue, 24 Jul 2018 23:38:44 +0000 (16:38 -0700)]
Merge "simpleperf: use libunwindstack directly for unwinding."
am: 148a756acd

Change-Id: I45c16f9271d2640d2c6ef0fc265b621ac6f85059

6 years agoMerge "simpleperf: use libunwindstack directly for unwinding."
Yabin Cui [Tue, 24 Jul 2018 23:28:16 +0000 (23:28 +0000)]
Merge "simpleperf: use libunwindstack directly for unwinding."

6 years agoMerge "Add support of more hash algorithms for verity tree builder"
Tianjie Xu [Tue, 24 Jul 2018 22:03:39 +0000 (15:03 -0700)]
Merge "Add support of more hash algorithms for verity tree builder"
am: bdb1bfde6e

Change-Id: Ifbcb3f07ed8445b682e8e3a93d02bf651ceed66a

6 years agoMerge "Add support of more hash algorithms for verity tree builder"
Tianjie Xu [Tue, 24 Jul 2018 21:52:40 +0000 (21:52 +0000)]
Merge "Add support of more hash algorithms for verity tree builder"

6 years agosimpleperf: add --binary_filter option in report_html.py.
Yabin Cui [Tue, 24 Jul 2018 19:50:47 +0000 (12:50 -0700)]
simpleperf: add --binary_filter option in report_html.py.

Since disassemble binary is slow, and it is not useful to disassemble
all binaries, add --binary_filter option to disassemble and add source
code only for selected binaries.

Also add is_elf_file() in utils.py to avoid the warning message of
running readelf on files not in elf format.

Also fix two small errors in report_html.js.

Bug: none
Test: run test.py TestExampleWithNative.test_report_html.
Change-Id: I115543c30a409dc2d11c76491614804d097326b1

6 years agoAdd support of more hash algorithms for verity tree builder
Tianjie Xu [Tue, 26 Jun 2018 18:57:13 +0000 (11:57 -0700)]
Add support of more hash algorithms for verity tree builder

Currently, verified boot 1.0 is using SHA256 to compute the hash tree
while AVB is using SHA1. We should support at least these two hash
functionss in the HashTreeBuilder and command line parser. And we can
potentially add more algorithms in the future.

Bug: 25170618
Test: unit tests pass
Change-Id: I5f6dc8a545c0cef75acbbc2044959e8100f9f842

6 years agoMerge "simpleperf: add --symdir option in report-sample command."
Yabin Cui [Tue, 24 Jul 2018 17:31:04 +0000 (10:31 -0700)]
Merge "simpleperf: add --symdir option in report-sample command."
am: 295c3e1c04

Change-Id: I3b8fa61a2585dea6eed1b7379d0d7c74e1b71a8f

6 years agoMerge "simpleperf: add --symdir option in report-sample command."
Yabin Cui [Tue, 24 Jul 2018 17:20:31 +0000 (17:20 +0000)]
Merge "simpleperf: add --symdir option in report-sample command."

6 years agoMerge "[verity] Modernize codebase by replacing NULL with nullptr"
Yi Kong [Tue, 24 Jul 2018 04:12:14 +0000 (21:12 -0700)]
Merge "[verity] Modernize codebase by replacing NULL with nullptr"
am: 5e2ff37628

Change-Id: I67bf5811ccbf43c67ad3eb8b6710c30c712ed532

6 years agoMerge "[verity] Modernize codebase by replacing NULL with nullptr"
Yi Kong [Tue, 24 Jul 2018 04:04:30 +0000 (04:04 +0000)]
Merge "[verity] Modernize codebase by replacing NULL with nullptr"

6 years agosimpleperf: use libunwindstack directly for unwinding.
Yabin Cui [Mon, 23 Jul 2018 22:32:47 +0000 (15:32 -0700)]
simpleperf: use libunwindstack directly for unwinding.

Using BacktraceMap needs to rebuild all maps when some map is
changed. For example, in a system wide recording, about 7% cpu time
in unwinding is used for allocating and freeing map space. By switching
to unwindstack::Maps and update maps when some map is changed, It can
reduce about 10% cpu time in unwinding.

Also set max unwinding frames to 512.
Also remove deprecated unwinding error code.

Bug: 110923759
Test: run simpleperf_unit_test.

Change-Id: I9bd8c54e5087c33de2929768a83e749240ddb203

6 years ago[automerger skipped] Merge "Make libsquashfs_utils shared"
Jerry Zhang [Tue, 24 Jul 2018 00:11:59 +0000 (17:11 -0700)]
[automerger skipped] Merge "Make libsquashfs_utils shared"
am: a62caa38f1  -s ours

Change-Id: I1918d89205601fb964e9ae88c9f865d5f4877131

6 years agoMerge "Make libsquashfs_utils shared"
Treehugger Robot [Mon, 23 Jul 2018 23:52:03 +0000 (23:52 +0000)]
Merge "Make libsquashfs_utils shared"

6 years ago[verity] Modernize codebase by replacing NULL with nullptr
Yi Kong [Mon, 23 Jul 2018 23:44:35 +0000 (16:44 -0700)]
[verity] Modernize codebase by replacing NULL with nullptr

Fixes -Wzero-as-null-pointer-constant warning.

Test: m
Bug: 68236239
Change-Id: I1772953d2e66d3030aaa5a65e42d6ad664d19d78

6 years agoMerge "simpleperf: add progressbar for html report."
Yabin Cui [Mon, 23 Jul 2018 19:44:30 +0000 (12:44 -0700)]
Merge "simpleperf: add progressbar for html report."
am: 52b5c79cac

Change-Id: I08459a8e41539eb2e313d95dc046eb5b18ae56db

6 years agoMerge "simpleperf: add progressbar for html report."
Yabin Cui [Mon, 23 Jul 2018 19:40:19 +0000 (19:40 +0000)]
Merge "simpleperf: add progressbar for html report."

6 years agoMerge "Perfprofd: Add option to symbolize all DSOs"
Andreas Gampe [Mon, 23 Jul 2018 19:07:15 +0000 (12:07 -0700)]
Merge "Perfprofd: Add option to symbolize all DSOs"
am: c54c0b3075

Change-Id: I7db658431b0df26f3a862e5676ace39558343d5d

6 years agoMerge "Perfprofd: Add option to symbolize all DSOs"
Treehugger Robot [Mon, 23 Jul 2018 17:53:36 +0000 (17:53 +0000)]
Merge "Perfprofd: Add option to symbolize all DSOs"

6 years agosimpleperf: add --symdir option in report-sample command.
Yabin Cui [Sat, 21 Jul 2018 00:12:13 +0000 (17:12 -0700)]
simpleperf: add --symdir option in report-sample command.

--symdir option is used to provide a directory containing files with
symbols. Mutliple --symdir options can be used to provide more than
one directories. For each symbol directory, simpleperf collects build
id for all elf files under it recursively. Then simpleperf can use
the collected build ids to find files with symbols.

Also fix an error in GetCompleteProcessName().

Bug: 111687223
Test: run simpleperf_unit_test.
Change-Id: Ieac5ebf7451ae85ca15c3eae37bac3c89615580b

6 years agoMake host targets use non-repackaged targets
Neil Fuller [Thu, 12 Jul 2018 18:44:10 +0000 (19:44 +0100)]
Make host targets use non-repackaged targets

A host build target was depending on a target that is intended for
on-device, repackaged (com.android.) use. This switches to using the
unbundled target instead.

Test: Build
Bug: 111055375
Bug: 111734251
Change-Id: I47ea4f4807da9373feedd27022c0fc5c4f7650e6

6 years agoMerge "Perfprofd: Add event support filter capability"
Andreas Gampe [Sat, 21 Jul 2018 00:16:00 +0000 (17:16 -0700)]
Merge "Perfprofd: Add event support filter capability"
am: 033fd3a7bb

Change-Id: I9ace9b71ad453eec0082aa137b52f046b5e75bb8

6 years agoMerge "Perfprofd: Expose supported counters from simpleperf"
Andreas Gampe [Sat, 21 Jul 2018 00:15:03 +0000 (17:15 -0700)]
Merge "Perfprofd: Expose supported counters from simpleperf"
am: 3a51155fd7

Change-Id: I655881f133b6ef2ca0d3a03b7da5a9d01e0a1ca5

6 years agoPerfprofd: Add option to symbolize all DSOs
Andreas Gampe [Fri, 20 Jul 2018 23:55:34 +0000 (16:55 -0700)]
Perfprofd: Add option to symbolize all DSOs

Add an option to not skip entities with a build ID. This increases
result size but simplifies analysis.

Bug: 111701142
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I95d653c2c3f6905a75cd86014d6f40c74e8c4317

6 years agoMerge "Perfprofd: Add event support filter capability"
Treehugger Robot [Fri, 20 Jul 2018 23:59:55 +0000 (23:59 +0000)]
Merge "Perfprofd: Add event support filter capability"

6 years agoMerge "Perfprofd: Expose supported counters from simpleperf"
Treehugger Robot [Fri, 20 Jul 2018 22:39:51 +0000 (22:39 +0000)]
Merge "Perfprofd: Expose supported counters from simpleperf"

6 years agosimpleperf: add progressbar for html report.
Yabin Cui [Wed, 18 Jul 2018 00:36:35 +0000 (17:36 -0700)]
simpleperf: add progressbar for html report.

Currently, report_html.js uses setTimeout(0) to draw details in idle
time. But it can make the UI not responsive. So switch to use
progressbar when drawing details.

Also switch to use bootstrap4.

Bug: 109943459
Test: run report_html.py manually.
Test: run test.py TestExamplePureJava.test_report_html.

Change-Id: I0ed30bd4326087502af799a702076851abb5f63f

6 years agoPerfprofd: Add event support filter capability
Andreas Gampe [Thu, 19 Jul 2018 19:18:47 +0000 (12:18 -0700)]
Perfprofd: Add event support filter capability

Add the (default) option to strip unsupported events from a perf
invocation.

Bug: 110555909
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: Ia1988e9d1be99308061748b4d227e2fa309c9be1

6 years agoPerfprofd: Expose supported counters from simpleperf
Andreas Gampe [Mon, 16 Jul 2018 23:07:48 +0000 (16:07 -0700)]
Perfprofd: Expose supported counters from simpleperf

Add code to collect the supported counters.

Bug: 110555909
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I51e22b0efb54ec05dff67bb5bc75d3b701fa7f56

6 years agoMerge "Make libsquashfs_utils shared" into stage-aosp-master
TreeHugger Robot [Fri, 20 Jul 2018 20:09:21 +0000 (20:09 +0000)]
Merge "Make libsquashfs_utils shared" into stage-aosp-master

6 years agoMerge "Add unit tests to build_verity_tree"
Tianjie Xu [Fri, 20 Jul 2018 18:12:13 +0000 (11:12 -0700)]
Merge "Add unit tests to build_verity_tree"
am: 5358f2e8fe

Change-Id: I377bbc1812a3f8a5da8562c01fa4a5aac6590aa5

6 years agoMerge "Add unit tests to build_verity_tree"
Tianjie Xu [Fri, 20 Jul 2018 18:00:20 +0000 (18:00 +0000)]
Merge "Add unit tests to build_verity_tree"

6 years agoMake libsquashfs_utils shared
Jerry Zhang [Thu, 21 Jun 2018 00:30:07 +0000 (17:30 -0700)]
Make libsquashfs_utils shared

Also rename boot_control_copy away from default.
boot_control_copy isn't a shipping implementation.
boot_control_bcb is the actual default.

Bug: 78793464
Test: compiles
Change-Id: I2bdbcb80605ca396dbfa69b837be381cbcc6e3e7
Merged-In: I2bdbcb80605ca396dbfa69b837be381cbcc6e3e7
(cherry picked from commit 87d6221e37a7c8d579699874b65dd164a6e25251)