OSDN Git Service

android-x86/system-extras.git
6 years agosimpleperf: add pid argument to inferno
Wei Wang [Thu, 2 Aug 2018 19:26:10 +0000 (12:26 -0700)]
simpleperf: add pid argument to inferno

Bug: 112146809
Test: inferno.sh --pid 620
Change-Id: I99afe432a194bb8799e4633f0a651ff1be2354f5

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

Change-Id: I6ca11e76ff6c9e0bc30c3f228d0bf57587363df7

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

Change-Id: Iedc45a9d7e1bd9b8d7b8979f2775f1f654f09678

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

Change-Id: I1d7863fc5fb1e2aa7b21142be0fb72c0716a91d5

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 agoMerge "partition_tools: Use ResizePartition instead of GrowPartition." am: ab785445ce...
David Anderson [Thu, 2 Aug 2018 16:24:52 +0000 (09:24 -0700)]
Merge "partition_tools: Use ResizePartition instead of GrowPartition." am: ab785445ce am: cdf3a3eeee am: 17b22ff686
am: 84bac97bfe

Change-Id: Ifd05f9472751daaa31640310adfafa3f03e1a6d3

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

Change-Id: Ie2c36974b982f8ee00224ec4aba089e954d04900

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

Change-Id: I1c12782473305c4f000b5e08fa781551216ba42c

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." am:...
Sandeep Patil [Wed, 1 Aug 2018 02:30:58 +0000 (19:30 -0700)]
Merge "libfec: skip over verity tree when reading metadata from filesystem." am: b9d29fa84b am: 47bea3cfc9 am: 9dae89a891
am: 53a26518a2

Change-Id: Ia31becc8508ac6ae975bf5316fbef7d93089d2a7

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

Change-Id: I4f865b43d1d9b46876c6ab07eaa895fb6ccce936

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

Change-Id: I603584a6c8e7cf94821384da7c2ad5ae06f22614

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 agoMerge "Build partition_tools with liblp as a shared library." am: fde6f72cf0 am:...
David Anderson [Sat, 28 Jul 2018 23:10:39 +0000 (16:10 -0700)]
Merge "Build partition_tools with liblp as a shared library." am: fde6f72cf0 am: be497ab7ad am: 38e61979d3
am: 221b9863e0

Change-Id: Ia9bd0c5b88da9ed8e179a1b5da4c274a33b99e97

6 years agoMerge "Build partition_tools with liblp as a shared library." am: fde6f72cf0 am:...
David Anderson [Sat, 28 Jul 2018 23:05:14 +0000 (16:05 -0700)]
Merge "Build partition_tools with liblp as a shared library." am: fde6f72cf0 am: be497ab7ad
am: 38e61979d3

Change-Id: I90873df8f38a7ac72a330128742ecf03efdf0ef3

6 years agoMerge "Build partition_tools with liblp as a shared library." am: fde6f72cf0
David Anderson [Sat, 28 Jul 2018 23:01:33 +0000 (16:01 -0700)]
Merge "Build partition_tools with liblp as a shared library." am: fde6f72cf0
am: be497ab7ad

Change-Id: Ie57df5b84c37616a4724e2a97f3f8af0976ad1b0

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" am: e1bd9e74b0 am: ae448671a7 am: c9a26421c3
Andreas Gampe [Sat, 28 Jul 2018 18:18:50 +0000 (11:18 -0700)]
Merge "Perfprofd: Only pick up FUNC symbols" am: e1bd9e74b0 am: ae448671a7 am: c9a26421c3
am: d63f648e3d

Change-Id: I2693142f65b6690cd9c80739eb6a33b83316e5dc

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

Change-Id: Iac0047a3e624446a8ab2a6a0a9bd5b4077b6c8f4

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

Change-Id: I18f80d1701118a71edbeb80c471d05090fca572c

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." am: 8d81763715 am: e4575dfc...
Yabin Cui [Thu, 26 Jul 2018 23:24:59 +0000 (16:24 -0700)]
Merge "simpleperf: enforce clockid support in Android Q." am: 8d81763715 am: e4575dfcaa am: cb0176381e
am: 8874c155f7

Change-Id: I3ab44be92ba5773f3d875bcd4f4ff71447d0335c

6 years agoMerge "simpleperf: enforce clockid support in Android Q." am: 8d81763715 am: e4575dfcaa
Yabin Cui [Thu, 26 Jul 2018 20:39:05 +0000 (13:39 -0700)]
Merge "simpleperf: enforce clockid support in Android Q." am: 8d81763715 am: e4575dfcaa
am: cb0176381e

Change-Id: I89c1d47ad7face69221c8512f63b77c8a53cd175

6 years agoMerge "simpleperf: enforce clockid support in Android Q." am: 8d81763715
Yabin Cui [Thu, 26 Jul 2018 20:18:30 +0000 (13:18 -0700)]
Merge "simpleperf: enforce clockid support in Android Q." am: 8d81763715
am: e4575dfcaa

Change-Id: I68df6711c85c7137c9dd9492724c5e1bd47eb7f0

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." am: 0e5c69a63f am:...
Yabin Cui [Wed, 25 Jul 2018 22:37:35 +0000 (15:37 -0700)]
Merge "simpleperf: support long callchain in report_html.py." am: 0e5c69a63f am: 3492824833 am: 2ef1d3d148
am: 3dc77b6880

Change-Id: I732f964790750585b1c9fb1a357f2c77f7d1f225

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

Change-Id: Ie48918d54c1890cdbd24fabb4f6773f34e3cfa25

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

Change-Id: Ic217b91d5625b12775dc636e1c457ab4c991043d

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" am: e5cf16f9d3 am: f4c6f8b4ec am: f67fa784d3
Tianjie Xu [Wed, 25 Jul 2018 21:40:43 +0000 (14:40 -0700)]
Merge "Export headers for libverity_tree" am: e5cf16f9d3 am: f4c6f8b4ec am: f67fa784d3
am: 2bef0816d7

Change-Id: Ia64ea3eb7c979acf70ddadc66e14d911f60774ed

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

Change-Id: Id3fe072c1f850a2706e9265be2fe70a1c1c08b70

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

Change-Id: Ibbdfba2b3dd63cea5f4d98385b3a430ff4d91b66

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." am: f2307ae2a0...
Yabin Cui [Wed, 25 Jul 2018 00:55:20 +0000 (17:55 -0700)]
Merge "simpleperf: add --binary_filter option in report_html.py." am: f2307ae2a0 am: d1a90c07ee am: e10b7789ce
am: 66572811c4

Change-Id: I42b1d3c18033bcb1fc4599e25c2bbb9455e122f3

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

Change-Id: I221c09b5b332630c957f24229843a9a1419952fe

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

Change-Id: I4c4fd9542ac36fcfcdfebece18cb0090e0c2c778

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." am: 148a756acd am...
Yabin Cui [Tue, 24 Jul 2018 23:58:41 +0000 (16:58 -0700)]
Merge "simpleperf: use libunwindstack directly for unwinding." am: 148a756acd am: 2cfb806223 am: 8925e8b2f7
am: 8bca2ec9b7

Change-Id: Ie2c6ab0176c46e77474c0f843512f4d3cb4a0686

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

Change-Id: I6a7450b5c1a42ac039e88ee7109f491f519cadd3

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

Change-Id: Ie6dd31939b30b724f8330a43b6f659b644a0bd13

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" am: bdb1bfde6e...
Tianjie Xu [Tue, 24 Jul 2018 22:28:51 +0000 (15:28 -0700)]
Merge "Add support of more hash algorithms for verity tree builder" am: bdb1bfde6e am: 59401431c3 am: 1577e37846
am: 3a6735db7e

Change-Id: Icaf6b72b61723653d9ebedcf1272c74d333efe67

6 years agoMerge "Add support of more hash algorithms for verity tree builder" am: bdb1bfde6e...
Tianjie Xu [Tue, 24 Jul 2018 22:12:47 +0000 (15:12 -0700)]
Merge "Add support of more hash algorithms for verity tree builder" am: bdb1bfde6e am: 59401431c3
am: 1577e37846

Change-Id: I6056f425e6c207744b2141c1fd66e6bc17328f0a

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

Change-Id: I7512024ac6b1568d6b291e1ceb9843cbe22d56d1

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." am: 295c3e1c04...
Yabin Cui [Tue, 24 Jul 2018 18:05:41 +0000 (11:05 -0700)]
Merge "simpleperf: add --symdir option in report-sample command." am: 295c3e1c04 am: 5b6d935192 am: 96f6839b87
am: 689855f47c

Change-Id: I70e7d1a939d8b2cf333c0614c7a860434dc7ae8a

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

Change-Id: I13e62a091bb38b2b23b8720d289a641d9a73bac7

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

Change-Id: I01f1ec5495a0eaf1ca016ac504487cff9554f0c4

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" am: 5e2ff37628...
Yi Kong [Tue, 24 Jul 2018 04:24:11 +0000 (21:24 -0700)]
Merge "[verity] Modernize codebase by replacing NULL with nullptr" am: 5e2ff37628 am: 086ca0b1c0 am: ff0051e01c
am: 5f238a0a18

Change-Id: I51b82afb9f11feaaf80e2212cc07aa82292d505d

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

Change-Id: I19f5fc4e75770ebde8c27398e141bac7f5311536

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

Change-Id: If2fd5fb7e473f543c8246c71b1d25bdd6756dd7e

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 ago[automerger skipped] Merge "Make libsquashfs_utils shared" am: a62caa38f1 -s ours...
Jerry Zhang [Tue, 24 Jul 2018 01:13:06 +0000 (18:13 -0700)]
[automerger skipped] Merge "Make libsquashfs_utils shared" am: a62caa38f1  -s ours am: c6565e9a93  -s ours am: 0d2982863f  -s ours
am: a51619c63d  -s ours

Change-Id: I31c89e77d529dbe780d630b6e1c70de5af2a289f

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" am: a62caa38f1 -s ours...
Jerry Zhang [Tue, 24 Jul 2018 00:32:18 +0000 (17:32 -0700)]
[automerger skipped] Merge "Make libsquashfs_utils shared" am: a62caa38f1  -s ours am: c6565e9a93  -s ours
am: 0d2982863f  -s ours

Change-Id: I7dbdbf826ef1efb6bfae360addad07fc8dc729f6

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

Change-Id: I819f787e60f6c6366c005e69093117435b87924b

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 "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage...
Xin Li [Mon, 23 Jul 2018 23:34:59 +0000 (16:34 -0700)]
Merge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage-dr1-aosp-master am: 5ba505d1e2
am: 07535b59e3

Change-Id: I7707735ff6bc994bbee085f6ff692096350c5ed7

6 years agoMerge "simpleperf: add progressbar for html report." am: 52b5c79cac am: 5b3f2e5679...
Yabin Cui [Mon, 23 Jul 2018 21:32:44 +0000 (14:32 -0700)]
Merge "simpleperf: add progressbar for html report." am: 52b5c79cac am: 5b3f2e5679 am: db2427a4f0
am: 863d660ae4

Change-Id: I288c93872f12df1510e6456f9a7ded0a541cc967

6 years agoMerge "Perfprofd: Add option to symbolize all DSOs" am: c54c0b3075 am: 248e6e2a93...
Andreas Gampe [Mon, 23 Jul 2018 21:28:48 +0000 (14:28 -0700)]
Merge "Perfprofd: Add option to symbolize all DSOs" am: c54c0b3075 am: 248e6e2a93 am: c29cfa369d
am: 34a4508f53

Change-Id: Icafd7d08d7e7f8cf7e312e6073ae18d4607fc386

6 years agoMerge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage...
Xin Li [Mon, 23 Jul 2018 21:26:01 +0000 (14:26 -0700)]
Merge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage-dr1-aosp-master
am: 5ba505d1e2

Change-Id: I080705dac04149d6c0368d8a1bff2c336aa690af

6 years agoMerge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage...
Xin Li [Mon, 23 Jul 2018 20:53:50 +0000 (20:53 +0000)]
Merge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage-dr1-aosp-master

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

Change-Id: I9109a7ed8ea61379ee9c7dd4b6e42a46abf9979e

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

Change-Id: Ib35bd1602058ca4dc0f2a0b104c41d47c731a900

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" am: c54c0b3075 am: 248e6e2a93
Andreas Gampe [Mon, 23 Jul 2018 19:23:55 +0000 (12:23 -0700)]
Merge "Perfprofd: Add option to symbolize all DSOs" am: c54c0b3075 am: 248e6e2a93
am: c29cfa369d

Change-Id: I2f19827737f294686581030def386fab5d1c119e

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

Change-Id: I0ddc570c5962a209b24fce15ac18851a80351939

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 agoMerge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
Xin Li [Mon, 23 Jul 2018 05:10:28 +0000 (22:10 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master

Bug: 111615259
Change-Id: Ia0e99f1324c7515275f79eb842d63ea7f9151027

6 years agoMerge "Perfprofd: Add event support filter capability" am: 033fd3a7bb am: 595f3c8079...
Andreas Gampe [Sat, 21 Jul 2018 06:07:09 +0000 (23:07 -0700)]
Merge "Perfprofd: Add event support filter capability" am: 033fd3a7bb am: 595f3c8079 am: 5b2fe4d9ee
am: 4d03e80073

Change-Id: I06afa57a182f0d3bb234506319f06c564736c792

6 years agoMerge "Perfprofd: Expose supported counters from simpleperf" am: 3a51155fd7 am: f6ec1...
Andreas Gampe [Sat, 21 Jul 2018 05:51:50 +0000 (22:51 -0700)]
Merge "Perfprofd: Expose supported counters from simpleperf" am: 3a51155fd7 am: f6ec1570e9 am: a4c0b272ca
am: bb2090f761

Change-Id: Ia2ed76410b9fbec4f08dd2f6692ac6ae013a93ad