OSDN Git Service

android-x86/system-extras.git
6 years agoMerge "simpleperf: minor fix in report_sample.proto field" am: 4f613859c8 am: c103d16a21
Amaury Medeiros [Wed, 27 Sep 2017 17:14:00 +0000 (17:14 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field" am: 4f613859c8 am: c103d16a21
am: 2d67d0f52e

Change-Id: Ia86c0a163081bb75f82a760d2de0be6e6ee9d69d

6 years agoMerge "simpleperf: minor fix in report_sample.proto field" am: 4f613859c8
Amaury Medeiros [Wed, 27 Sep 2017 17:12:03 +0000 (17:12 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field" am: 4f613859c8
am: c103d16a21

Change-Id: I319e8b42a59ba4a29dd3dedf1d896d5b09244737

6 years agoMerge "simpleperf: minor fix in report_sample.proto field"
Amaury Medeiros [Wed, 27 Sep 2017 17:10:31 +0000 (17:10 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field"
am: 4f613859c8

Change-Id: Id0e72bb379f68bc41d75b3f9d77fcab76ad03471

6 years agoMerge "simpleperf: minor fix in report_sample.proto field"
Amaury Medeiros [Wed, 27 Sep 2017 17:06:33 +0000 (17:06 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field"

6 years agosimpleperf: minor fix in report_sample.proto field
Amaury Medeiros [Wed, 27 Sep 2017 12:28:53 +0000 (13:28 +0100)]
simpleperf: minor fix in report_sample.proto field

Test: run simpleperf_unit_test.
Change-Id: Ia42ce4c267ddae3640666f73f4a002c88429cb8e

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250." am: 6b369241f1...
Yabin Cui [Tue, 26 Sep 2017 22:51:41 +0000 (22:51 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250." am: 6b369241f1 am: 5db24b19df
am: 18696bb280

Change-Id: I96ae2f8adead144318e8c920a6f6d0c3517e7c41

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250." am: 6b369241f1
Yabin Cui [Tue, 26 Sep 2017 22:37:17 +0000 (22:37 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250." am: 6b369241f1
am: 5db24b19df

Change-Id: Ia61a7dcc7b3bb9b03cbaa15220c9f1f1488ed0d1

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250."
Yabin Cui [Tue, 26 Sep 2017 22:35:30 +0000 (22:35 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250."
am: 6b369241f1

Change-Id: Id03e307c652c63daacea22a999e6911c858542cc

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250."
Yabin Cui [Tue, 26 Sep 2017 22:28:56 +0000 (22:28 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250."

6 years agoMerge "inferno: support building embedded flamegraph." am: 9cc31b876f am: 52f0911911
Yabin Cui [Tue, 26 Sep 2017 17:29:00 +0000 (17:29 +0000)]
Merge "inferno: support building embedded flamegraph." am: 9cc31b876f am: 52f0911911
am: 4a6769c79d

Change-Id: I6a602eb854c70abed0400612e1ae2e31b13430cb

6 years agoMerge "inferno: support building embedded flamegraph." am: 9cc31b876f
Yabin Cui [Tue, 26 Sep 2017 17:26:58 +0000 (17:26 +0000)]
Merge "inferno: support building embedded flamegraph." am: 9cc31b876f
am: 52f0911911

Change-Id: I164ec32948d65c97391ede40adf74442d1c2a58a

6 years agosimpleperf: update simpleperf prebuilts to build 4360250.
Yabin Cui [Tue, 26 Sep 2017 17:23:26 +0000 (10:23 -0700)]
simpleperf: update simpleperf prebuilts to build 4360250.

Taken from branch aosp-master.

Bug: http://b/66914187
Test: none.

Change-Id: I31779df7d25c5f7210a2aaa85b4d4200d4972a89

6 years agoMerge "inferno: support building embedded flamegraph."
Yabin Cui [Tue, 26 Sep 2017 17:24:31 +0000 (17:24 +0000)]
Merge "inferno: support building embedded flamegraph."
am: 9cc31b876f

Change-Id: I4f6dec36cdfa11d0db51ef94d632790e06f25687

6 years agoMerge "inferno: support building embedded flamegraph."
Yabin Cui [Tue, 26 Sep 2017 17:17:03 +0000 (17:17 +0000)]
Merge "inferno: support building embedded flamegraph."

6 years agoMerge "simpleperf: Keep record time and android version in perf.data." am: c34215a771...
Yabin Cui [Tue, 26 Sep 2017 00:26:54 +0000 (00:26 +0000)]
Merge "simpleperf: Keep record time and android version in perf.data." am: c34215a771 am: 7c08170f86
am: 70e38cd751

Change-Id: I008c069aa5a1538d90217d186819d629f4eeacf1

6 years agoMerge "simpleperf: Keep record time and android version in perf.data." am: c34215a771
Yabin Cui [Tue, 26 Sep 2017 00:24:25 +0000 (00:24 +0000)]
Merge "simpleperf: Keep record time and android version in perf.data." am: c34215a771
am: 7c08170f86

Change-Id: Ibd9430cf3fcff44eae0ff49426903659289d0d28

6 years agoMerge "simpleperf: Keep record time and android version in perf.data."
Yabin Cui [Tue, 26 Sep 2017 00:22:27 +0000 (00:22 +0000)]
Merge "simpleperf: Keep record time and android version in perf.data."
am: c34215a771

Change-Id: I0bcc5388e410cbdbf2df3b905e97b98a79ad0ebc

6 years agoMerge "simpleperf: Keep record time and android version in perf.data."
Treehugger Robot [Tue, 26 Sep 2017 00:13:57 +0000 (00:13 +0000)]
Merge "simpleperf: Keep record time and android version in perf.data."

6 years agosimpleperf: Keep record time and android version in perf.data.
Yabin Cui [Mon, 25 Sep 2017 22:15:15 +0000 (15:15 -0700)]
simpleperf: Keep record time and android version in perf.data.

The record time and android version will be shown in html report.
Record time is useful to distinguish reports.
Android version is useful when checking reason for recording results.

Bug: http://b/66914187
Test: run simpleperf_unit_test.
Change-Id: I61ad5df380f8b51a3a6bc1f4dfa4bc9f350a4792

6 years agoinferno: support building embedded flamegraph.
Yabin Cui [Mon, 25 Sep 2017 22:54:45 +0000 (15:54 -0700)]
inferno: support building embedded flamegraph.

This is to show embedded flamegraph with other view in a report html.

Bug: http://b/66914187
Test: run inferno.sh manually.

Change-Id: Ib68b7dcbd41d85d1fb47f1637407e50bd7e93d87

6 years agoMerge "verity: Fix the broken 'build_verity_tree -A'." am: 97d9efc6ab am: ab15d60079
Tao Bao [Mon, 25 Sep 2017 16:07:21 +0000 (16:07 +0000)]
Merge "verity: Fix the broken 'build_verity_tree -A'." am: 97d9efc6ab am: ab15d60079
am: 838d5fdc31

Change-Id: I7ce460c2ebd5a5312ffc4d6c52316829ab331c51

6 years agoMerge "verity: Fix the broken 'build_verity_tree -A'." am: 97d9efc6ab
Tao Bao [Mon, 25 Sep 2017 16:03:50 +0000 (16:03 +0000)]
Merge "verity: Fix the broken 'build_verity_tree -A'." am: 97d9efc6ab
am: ab15d60079

Change-Id: I01b1c9aad77015eab7bc462f6a9d574a5dbf04f9

6 years agoMerge "verity: Fix the broken 'build_verity_tree -A'."
Tao Bao [Mon, 25 Sep 2017 16:02:29 +0000 (16:02 +0000)]
Merge "verity: Fix the broken 'build_verity_tree -A'."
am: 97d9efc6ab

Change-Id: Ibbfa251eb6cf53ead264cc2c60c4bb0a030163f8

6 years agoMerge "verity: Fix the broken 'build_verity_tree -A'."
Tao Bao [Mon, 25 Sep 2017 15:49:12 +0000 (15:49 +0000)]
Merge "verity: Fix the broken 'build_verity_tree -A'."

6 years agoverity: Fix the broken 'build_verity_tree -A'.
Tao Bao [Sat, 23 Sep 2017 05:09:32 +0000 (22:09 -0700)]
verity: Fix the broken 'build_verity_tree -A'.

Commit 6eb049322c26431961fb69168a113bfd27016ab3 introduced a bug in
checking if there's any passed-in salt string (via '-A <salt>' or '-a
<salt>'). "salt.data()" should be "salt.empty()", which otherwise may
or may not be nullptr even if salt is empty. This CL fixes the issue.

This CL also removes the duplicate variable 'salt_size', which can be
fully covered by salt.size().

Test: m build_verity_tree;
Test: `build_verity_tree system.img verity.img` gives random root hash
      and salt string across runs.
Test: `build_verity_tree -A <hex string> system.img verity.img` gives
      identical results across runs.
Test: `build_verity_tree -a <string> system.img verity.img` gives
      identical results across runs.
Change-Id: I377e42fc48c0f703dc33d813466f6ef60514bbe5

6 years agoRemove pstore related unit tests from CTS
Yoshitaka Seto [Fri, 22 Sep 2017 01:49:33 +0000 (01:49 +0000)]
Remove pstore related unit tests from CTS
am: 8ffd0b85d3

Change-Id: Id31d7cac5563ff09a931306ec5c614c39e8ad7b7

6 years agoRemove pstore related unit tests from CTS
Yoshitaka Seto [Mon, 31 Jul 2017 03:24:09 +0000 (12:24 +0900)]
Remove pstore related unit tests from CTS

Pstore test cases should not belong to CTS.
The test cases should be a part of GTS if really required.

Test: manual
Bug: 66431569
Bug: 63969981
Bug: 63913130
Signed-off-by: Srinavasa Nagaraju <Srinavasa.Nagaraju@sony.com>
Signed-off-by: Yoshitaka Seto <yoshitaka.seto@sony.com>
Tested-by: Srinavasa Nagaraju <Srinavasa.Nagaraju@sony.com>
Change-Id: Ie91625fd365b17dccdb179758639492da6b49787

6 years agoMerge "ext4_utils: Fix a looping bug and memory leak" am: 1db7fa615d am: ae908cfb27
Ting-Yuan Huang [Thu, 21 Sep 2017 19:25:34 +0000 (19:25 +0000)]
Merge "ext4_utils: Fix a looping bug and memory leak" am: 1db7fa615d am: ae908cfb27
am: d5070279f3

Change-Id: Id7ba7b29f78f631e2c5da78905e8360a070e4686

6 years agoMerge "Fix reduce_allocation()." am: 7d845bafe5 am: c32774f81e
Ting-Yuan Huang [Thu, 21 Sep 2017 19:25:19 +0000 (19:25 +0000)]
Merge "Fix reduce_allocation()." am: 7d845bafe5 am: c32774f81e
am: 968853c765

Change-Id: I4df82170e4d9f4661ae1ef8df384cc45dd6e6920

6 years agoMerge "ext4_utils: Fix a looping bug and memory leak" am: 1db7fa615d
Ting-Yuan Huang [Thu, 21 Sep 2017 19:23:02 +0000 (19:23 +0000)]
Merge "ext4_utils: Fix a looping bug and memory leak" am: 1db7fa615d
am: ae908cfb27

Change-Id: Ided398b0b112e87c3b0dc13561941d0cb0e4ad9b

6 years agoMerge "Fix reduce_allocation()." am: 7d845bafe5
Ting-Yuan Huang [Thu, 21 Sep 2017 19:22:47 +0000 (19:22 +0000)]
Merge "Fix reduce_allocation()." am: 7d845bafe5
am: c32774f81e

Change-Id: I58b9a58d1e6b71da1f0c620afa2371f0cfcf2896

6 years agoMerge "ext4_utils: Fix a looping bug and memory leak"
Ting-Yuan Huang [Thu, 21 Sep 2017 19:20:49 +0000 (19:20 +0000)]
Merge "ext4_utils: Fix a looping bug and memory leak"
am: 1db7fa615d

Change-Id: I9f7c608b981a286d25cb5ca2d9587e333808eddc

6 years agoMerge "Fix reduce_allocation()."
Ting-Yuan Huang [Thu, 21 Sep 2017 19:20:29 +0000 (19:20 +0000)]
Merge "Fix reduce_allocation()."
am: 7d845bafe5

Change-Id: I59e51d916e3a4dc6aefab2d41a0ad06a473fef1d

6 years agoMerge "ext4_utils: Fix a looping bug and memory leak"
Treehugger Robot [Thu, 21 Sep 2017 19:17:34 +0000 (19:17 +0000)]
Merge "ext4_utils: Fix a looping bug and memory leak"

6 years agoMerge "Fix reduce_allocation()."
Treehugger Robot [Thu, 21 Sep 2017 19:16:38 +0000 (19:16 +0000)]
Merge "Fix reduce_allocation()."

6 years agoMerge "simpleperf: allow inferno to run from any dir." am: a9e5b352f6 am: e274d27f2a
Yabin Cui [Thu, 21 Sep 2017 01:23:10 +0000 (01:23 +0000)]
Merge "simpleperf: allow inferno to run from any dir." am: a9e5b352f6 am: e274d27f2a
am: 2896204393

Change-Id: I2d6bffff9c92f98ca0410923ba7a118903c74e5a

6 years agoMerge "simpleperf: allow inferno to run from any dir." am: a9e5b352f6
Yabin Cui [Thu, 21 Sep 2017 01:20:11 +0000 (01:20 +0000)]
Merge "simpleperf: allow inferno to run from any dir." am: a9e5b352f6
am: e274d27f2a

Change-Id: I532819f154dfccfdc5eb8383c866155e045a3ef1

6 years agoMerge "simpleperf: allow inferno to run from any dir."
Yabin Cui [Thu, 21 Sep 2017 01:18:12 +0000 (01:18 +0000)]
Merge "simpleperf: allow inferno to run from any dir."
am: a9e5b352f6

Change-Id: I33034f54cb0919e1ce5d6152d5a1fbe896ca79b4

6 years agoMerge "simpleperf: allow inferno to run from any dir."
Treehugger Robot [Thu, 21 Sep 2017 01:14:34 +0000 (01:14 +0000)]
Merge "simpleperf: allow inferno to run from any dir."

6 years agosimpleperf: allow inferno to run from any dir.
Yabin Cui [Wed, 20 Sep 2017 23:20:04 +0000 (16:20 -0700)]
simpleperf: allow inferno to run from any dir.

Previously inferno.sh/.bat can only run from scripts/, this CL
removes the restriction.

Also add -o option to select report path.

Bug: http://b/32834638
Test: run test.py.
Change-Id: Ib1651dcd1beedac5be00249150e0b74fea906924

6 years agoMerge "Fix clang static analyzer warnings" am: 797da605d0 am: b11b9ab538
Manoj Gupta [Wed, 20 Sep 2017 00:36:00 +0000 (00:36 +0000)]
Merge "Fix clang static analyzer warnings" am: 797da605d0 am: b11b9ab538
am: f8d8a71e1b

Change-Id: Ib910a1a2bc7a5514235d97082b89b67cec616e01

6 years agoMerge "Fix clang static analyzer warnings" am: 797da605d0
Manoj Gupta [Wed, 20 Sep 2017 00:33:51 +0000 (00:33 +0000)]
Merge "Fix clang static analyzer warnings" am: 797da605d0
am: b11b9ab538

Change-Id: Ie38a626cc48f5df867bcbaf489c4b2942fb829c7

6 years agoMerge "Fix clang static analyzer warnings"
Manoj Gupta [Wed, 20 Sep 2017 00:30:11 +0000 (00:30 +0000)]
Merge "Fix clang static analyzer warnings"
am: 797da605d0

Change-Id: I5224ae1341e6442f28c044524c3d8b790873cdc8

6 years agoMerge "Fix clang static analyzer warnings"
Treehugger Robot [Wed, 20 Sep 2017 00:23:44 +0000 (00:23 +0000)]
Merge "Fix clang static analyzer warnings"

6 years agoext4_utils: Fix a looping bug and memory leak
Ting-Yuan Huang [Tue, 29 Aug 2017 23:27:59 +0000 (16:27 -0700)]
ext4_utils: Fix a looping bug and memory leak

Test: built without seeing the compiler warnings.
Change-Id: Ia277667b62323852f493a24b53ba3a34222c4f0e

6 years agoMerge "Add writepage(s) blaming support to ioblame." into oc-mr1-dev
Mohan Srinivasan [Fri, 15 Sep 2017 21:45:54 +0000 (21:45 +0000)]
Merge "Add writepage(s) blaming support to ioblame." into oc-mr1-dev
am: 7f3beedb7a

Change-Id: I62a4142ebb4016c20130057555d3d9d61b6dcccc

6 years agoMerge "Add writepage(s) blaming support to ioblame." into oc-mr1-dev
TreeHugger Robot [Fri, 15 Sep 2017 21:37:30 +0000 (21:37 +0000)]
Merge "Add writepage(s) blaming support to ioblame." into oc-mr1-dev

6 years agoMerge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE am: 57df090...
Bill Yi [Fri, 15 Sep 2017 21:23:28 +0000 (21:23 +0000)]
Merge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE am: 57df090195  -s ours am: 0b083d58be  -s ours
am: 4ed8458384

Change-Id: I4246c353f509604b934b8d130486e26369ec2bf4

6 years agoMerge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE am: 57df090...
Bill Yi [Fri, 15 Sep 2017 21:21:41 +0000 (21:21 +0000)]
Merge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE am: 57df090195  -s ours
am: 0b083d58be  -s ours

Change-Id: I77bfeeb76d21179afc7eeb972a8a77109bcea010

6 years agoMerge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE
Bill Yi [Fri, 15 Sep 2017 21:14:45 +0000 (21:14 +0000)]
Merge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE
am: 57df090195  -s ours

Change-Id: Ib04ab6d30f4a371d2d73cc7ed39d34775912829e

6 years agoMerge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE
Bill Yi [Fri, 15 Sep 2017 20:48:14 +0000 (13:48 -0700)]
Merge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE

Change-Id: I126b325ab5686ab9a99735d47cad2a20e53022ca

6 years agoAdd writepage(s) blaming support to ioblame.
Mohan Srinivasan [Fri, 8 Sep 2017 20:58:47 +0000 (13:58 -0700)]
Add writepage(s) blaming support to ioblame.

Make ioblame use the (f2fs) writepage(s) tracepoint, to attribute
writepage(s) to filenames. Useful to track down and tune apps that
might be writing too much.

Test: Tested the (new) -p option with f2fs (and also with ext4)
ensuring that it works with the former and exits gracefully with
error in the latter cases.

Bug: 63939317
Change-Id: I2a3ad02a650a293dbca4c23d0276bbe86ad648fe
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
6 years agoMerge "simpleperf: fix report_sample_test." into oreo-cts-dev
Treehugger Robot [Thu, 14 Sep 2017 17:30:43 +0000 (17:30 +0000)]
Merge "simpleperf: fix report_sample_test." into oreo-cts-dev

6 years agosimpleperf: Omit dwarf-callgraph tests running on arm translation tools.
Yabin Cui [Thu, 14 Sep 2017 06:39:15 +0000 (06:39 +0000)]
simpleperf: Omit dwarf-callgraph tests running on arm translation tools.
am: 3035e41eb6  -s ours

Change-Id: Ideeca0820befd88dde17dd499db618f0d23aeb36

6 years agoMerge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 6f9b64076a am: ed1878c15b
Justin Yun [Thu, 14 Sep 2017 06:14:50 +0000 (06:14 +0000)]
Merge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 6f9b64076a am: ed1878c15b
am: a7fcb39a5b  -s ours

Change-Id: Id84d48eab239f3fc4b102d86deb232793f937104

6 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."...
Yabin Cui [Thu, 14 Sep 2017 06:14:31 +0000 (06:14 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools." am: 1486c2cb07 am: ce64ec96a3
am: 0ebafd2f16

Change-Id: I82bd1808b45b558cd12cc6064ae64a20376f7066

6 years agoMerge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 6f9b64076a
Justin Yun [Thu, 14 Sep 2017 05:49:15 +0000 (05:49 +0000)]
Merge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 6f9b64076a
am: ed1878c15b

Change-Id: I313ddcb7532f66e787f8c517f75849ca1542259d

6 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."...
Yabin Cui [Thu, 14 Sep 2017 05:48:56 +0000 (05:48 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools." am: 1486c2cb07
am: ce64ec96a3

Change-Id: I223c88679614c8e65ece5cf9bd61882c2c1b9e89

6 years agoMerge "Mark the module as VNDK or VNDK-SP in Android.bp"
Justin Yun [Thu, 14 Sep 2017 05:22:25 +0000 (05:22 +0000)]
Merge "Mark the module as VNDK or VNDK-SP in Android.bp"
am: 6f9b64076a

Change-Id: Idc3ff00540eac3f6755ebbda162db57160753c75

6 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."
Yabin Cui [Thu, 14 Sep 2017 05:22:08 +0000 (05:22 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."
am: 1486c2cb07

Change-Id: I55efc3b160b62345742ab17874ae9d9dfca4bb1b

6 years agosimpleperf: Omit dwarf-callgraph tests running on arm translation tools.
Yabin Cui [Wed, 13 Sep 2017 20:21:32 +0000 (13:21 -0700)]
simpleperf: Omit dwarf-callgraph tests running on arm translation tools.

Bug: http://b/64946809
Bug: 64709603 (presubmit balking at the line above)
Test: run arm CtsSimpleperfTestCases32 on fugu.
Change-Id: I76ee44b8fd2a6022cbef32392ee0336fe4d14ade
(cherry picked from commit 64a9ecda2c006f90dcc047ad95be792139622ead)

6 years agoext4_utils: fix off-by-one error when free blocks
Jin Qian [Thu, 14 Sep 2017 03:37:10 +0000 (03:37 +0000)]
ext4_utils: fix off-by-one error when free blocks
am: 98e4272576

Change-Id: I85bf700d37794bf84188790d92c1199555a13452

6 years agoMerge "Mark the module as VNDK or VNDK-SP in Android.bp"
Treehugger Robot [Thu, 14 Sep 2017 01:59:30 +0000 (01:59 +0000)]
Merge "Mark the module as VNDK or VNDK-SP in Android.bp"

6 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."
Treehugger Robot [Thu, 14 Sep 2017 01:45:39 +0000 (01:45 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."

6 years agosimpleperf: fix report_sample_test.
Yabin Cui [Mon, 15 May 2017 20:39:36 +0000 (13:39 -0700)]
simpleperf: fix report_sample_test.

When running cmd_report_sample.* tests, it may call
ReportSampleCmd()->Run() more than once. If we shutdown
protobuf library in one call, using protobuf in the
following calls will encounter failures.

Bug: http://b/37996565
Test: run CtsSimpleperfTestCases.
Change-Id: I5ca217406e786645d45fda518055c4a63ab3db3c
(cherry picked from commit b3675a5db81d02b07b92f8f13d37187a9cb4890c)

6 years agosimpleperf: Omit dwarf-callgraph tests running on arm translation tools.
Yabin Cui [Wed, 13 Sep 2017 20:21:32 +0000 (13:21 -0700)]
simpleperf: Omit dwarf-callgraph tests running on arm translation tools.

Bug: http://b/64946809
Test: run arm CtsSimpleperfTestCases32 on fugu.
Change-Id: I76ee44b8fd2a6022cbef32392ee0336fe4d14ade

6 years agoFix reduce_allocation().
Ting-Yuan Huang [Tue, 29 Aug 2017 23:05:31 +0000 (16:05 -0700)]
Fix reduce_allocation().

alloc->list.last was repeatedly freed.

Test: built without seeing warnings.
Change-Id: Ia8b2f9d4b8ba9fbe13fae5d7a0a4d526ddc863d6

6 years agoext4_utils: fix off-by-one error when free blocks
Jin Qian [Fri, 8 Sep 2017 00:09:45 +0000 (17:09 -0700)]
ext4_utils: fix off-by-one error when free blocks

block points at one block before the region we wanted to free after
the loop that updats bitmap. This causes the code to free chunk still
being used.

Bug: 35262536
Test: lunch angler-userdebug; m dist
Test: lunch bullhead-userdebug; m dist
Change-Id: I7ebb30f4c7bcd01d3213ae0804a026a5ad98072c
(cherry picked from commit a4ed4e10e98b0efa4e259c99e84609bebb08cd66)

6 years agoMerge "<stdbool.h> not necessary in C++." am: 390c1a849e am: f2cfcb12ca
Elliott Hughes [Fri, 8 Sep 2017 17:38:32 +0000 (17:38 +0000)]
Merge "<stdbool.h> not necessary in C++." am: 390c1a849e am: f2cfcb12ca
am: 234229671c

Change-Id: I148d0e409d726a20379c119294bcf69feac54c8a

6 years agoMerge "<stdbool.h> not necessary in C++." am: 390c1a849e
Elliott Hughes [Fri, 8 Sep 2017 17:36:58 +0000 (17:36 +0000)]
Merge "<stdbool.h> not necessary in C++." am: 390c1a849e
am: f2cfcb12ca

Change-Id: I4e1cfb2241a05a3bc894252fda5a341e4bd91270

6 years agoMerge "<stdbool.h> not necessary in C++."
Elliott Hughes [Fri, 8 Sep 2017 17:35:28 +0000 (17:35 +0000)]
Merge "<stdbool.h> not necessary in C++."
am: 390c1a849e

Change-Id: I6650c34ff30aeec00dd28396f7fbe5ed3eb9c5c9

6 years agoMerge "<stdbool.h> not necessary in C++."
Elliott Hughes [Fri, 8 Sep 2017 17:31:58 +0000 (17:31 +0000)]
Merge "<stdbool.h> not necessary in C++."

6 years ago<stdbool.h> not necessary in C++.
Elliott Hughes [Thu, 7 Sep 2017 20:34:03 +0000 (13:34 -0700)]
<stdbool.h> not necessary in C++.

Bug: N/A
Test: builds
Change-Id: I02c2619bd5ddcabf19b0fea6845e2ffbe9c9edf6

6 years agoMark the module as VNDK or VNDK-SP in Android.bp
Justin Yun [Mon, 24 Jul 2017 06:19:45 +0000 (15:19 +0900)]
Mark the module as VNDK or VNDK-SP in Android.bp

As a VNDK/VNDK-SP module, Android.bp must have 'vndk' tag as well
as 'vendor_available: true'.

For a VNDK module, the 'vndk' tag has 'enabled: true'.
It will be installed system/lib(64)/vndk as a vendor variant.

For a VNDK-SP module, the 'vndk' tag has
'support_system_process: true' as well as 'enabled: true'.
It will be installed system/lib(64)/vndk-sp as a vendor variant.

Bug: 63866913
Test: build and boot with BOARD_VNDK_VERSION=current
Merged-In: I7a2eaf4894188d4d300fcc78380a2b05517c54f4
Change-Id: I7a2eaf4894188d4d300fcc78380a2b05517c54f4
(cherry picked from commit 953341705abd2a840b464928d9ce56e0c1f37b25)

6 years agoFix clang static analyzer warnings
Manoj Gupta [Tue, 5 Sep 2017 23:35:17 +0000 (16:35 -0700)]
Fix clang static analyzer warnings

Fix the following warnings:

system/extras/librank/librank.c:422:12: warning: Potential leak of
memory pointed to by 'pi' [clang-analyzer-unix.Malloc]
system/extras/librank/librank.c:137:29: warning: Call to 'realloc' has
an allocation size of 0 bytes [clang-analyzer-unix.API]
system/extras/librank/librank.c:95:21: warning: Call to 'realloc' has an
allocation size of 0 bytes [clang-analyzer-unix.API]

The memory leak is real but we don't care about memory leaks when exiting
main. So just replace return by exit to silence the analyzer.

Bug: b/27101951
Test:Warnings are gone.
Change-Id: I9af4ec4a4b740f5edcf9390b30a16b95d76e6a20

6 years agoMerge "simpleperf: support --clockid option in record cmd." am: 41e392642f am: 1cad85ba22
Yabin Cui [Tue, 5 Sep 2017 22:31:34 +0000 (22:31 +0000)]
Merge "simpleperf: support --clockid option in record cmd." am: 41e392642f am: 1cad85ba22
am: 6e63a5cc58

Change-Id: I5fa335fd642afd1666e762eb9d7913cd997ed2aa

6 years agoMerge "simpleperf: support --clockid option in record cmd." am: 41e392642f
Yabin Cui [Tue, 5 Sep 2017 22:27:05 +0000 (22:27 +0000)]
Merge "simpleperf: support --clockid option in record cmd." am: 41e392642f
am: 1cad85ba22

Change-Id: Iec74a85c408fff23105212260a4fc0d439f41d2f

6 years agoMerge "simpleperf: support --clockid option in record cmd."
Yabin Cui [Tue, 5 Sep 2017 22:24:04 +0000 (22:24 +0000)]
Merge "simpleperf: support --clockid option in record cmd."
am: 41e392642f

Change-Id: Ibaad342c2b420eef59601a69fcfbeca51c3d1ac5

6 years agoMerge "simpleperf: support --clockid option in record cmd."
Yabin Cui [Tue, 5 Sep 2017 22:17:56 +0000 (22:17 +0000)]
Merge "simpleperf: support --clockid option in record cmd."

6 years agosimpleperf: support --clockid option in record cmd.
Yabin Cui [Fri, 1 Sep 2017 22:40:41 +0000 (15:40 -0700)]
simpleperf: support --clockid option in record cmd.

Setting clockid is supported in kernel 4.x.
Whether it is supported by the kernel can be checked
via `simpleperf list --show-features`.

Bug: http://b/65214671
Test: run simpleperf_unit_test.
Change-Id: I6f312cc62893af0fa5092ed91434b6df46435d7f

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4312148." am: c01804d628...
Yabin Cui [Fri, 1 Sep 2017 22:30:53 +0000 (22:30 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4312148." am: c01804d628 am: fd80a8e536
am: 5a6d737d53

Change-Id: I826bbd00cb9f2613cc549b892cb4e821e4e06df3

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4312148." am: c01804d628
Yabin Cui [Fri, 1 Sep 2017 22:03:18 +0000 (22:03 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4312148." am: c01804d628
am: fd80a8e536

Change-Id: Id1465ec327d6219ca9bb78264cd6a4fd9830c732

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4312148."
Yabin Cui [Fri, 1 Sep 2017 21:49:42 +0000 (21:49 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4312148."
am: c01804d628

Change-Id: Icef7d41a072ea8e16c934f81b223badb58e9bf30

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4312148."
Yabin Cui [Fri, 1 Sep 2017 21:28:10 +0000 (21:28 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4312148."

6 years agosimpleperf: update simpleperf prebuilts to build 4312148.
Yabin Cui [Fri, 1 Sep 2017 18:30:40 +0000 (11:30 -0700)]
simpleperf: update simpleperf prebuilts to build 4312148.

Taken from branch aosp-master.
Bug: http://b/65025325
Test: run test.py.

Change-Id: Ifa1b8620c47d3448a8924447371bf74461f97fb0

6 years agoMerge "simpleperf: fix --app option for multiprocess apps." am: 5324d11761 am: 25ae641a7d
Yabin Cui [Thu, 31 Aug 2017 17:24:34 +0000 (17:24 +0000)]
Merge "simpleperf: fix --app option for multiprocess apps." am: 5324d11761 am: 25ae641a7d
am: 09fcf7d9dc

Change-Id: I2fb90408e7c73a2a68f2b7af539edfe559822327

6 years agoMerge "simpleperf: fix --app option for multiprocess apps." am: 5324d11761
Yabin Cui [Thu, 31 Aug 2017 17:19:35 +0000 (17:19 +0000)]
Merge "simpleperf: fix --app option for multiprocess apps." am: 5324d11761
am: 25ae641a7d

Change-Id: Idd747b7f4f8cb77f43892e484ca2e8516493dc88

6 years agoMerge "simpleperf: fix --app option for multiprocess apps."
Yabin Cui [Thu, 31 Aug 2017 17:03:34 +0000 (17:03 +0000)]
Merge "simpleperf: fix --app option for multiprocess apps."
am: 5324d11761

Change-Id: I47fb7b496b91d7b17fe6450c6795485de965e1db

6 years agoMerge "simpleperf: fix --app option for multiprocess apps."
Yabin Cui [Thu, 31 Aug 2017 16:52:39 +0000 (16:52 +0000)]
Merge "simpleperf: fix --app option for multiprocess apps."

6 years agoMerge "fix memory leak in unittest." am: d9ea298022 am: 607a669016
Yunlian Jiang [Wed, 30 Aug 2017 19:13:36 +0000 (19:13 +0000)]
Merge "fix memory leak in unittest." am: d9ea298022 am: 607a669016
am: 7479ae94e0

Change-Id: I46602c43fe55c92fd109fd325648d1cb6ca6ba49

6 years agoMerge "fix memory leak in unittest." am: d9ea298022
Yunlian Jiang [Wed, 30 Aug 2017 19:06:35 +0000 (19:06 +0000)]
Merge "fix memory leak in unittest." am: d9ea298022
am: 607a669016

Change-Id: I4dbfad16a2626c39f349a3be406ea75d2e845b9e

6 years agoMerge "fix memory leak in unittest."
Yunlian Jiang [Wed, 30 Aug 2017 19:01:05 +0000 (19:01 +0000)]
Merge "fix memory leak in unittest."
am: d9ea298022

Change-Id: Ice30391dfa5352ca12eff79ca888febe87aa63ae

6 years agoMerge "fix memory leak in unittest."
Treehugger Robot [Wed, 30 Aug 2017 18:51:33 +0000 (18:51 +0000)]
Merge "fix memory leak in unittest."

6 years agofix memory leak in unittest.
Yunlian Jiang [Wed, 30 Aug 2017 16:50:05 +0000 (09:50 -0700)]
fix memory leak in unittest.

This fixes the warning
warning: Potential leak of memory pointed to by 'salt' [clang-analyzer-cplusplus.NewDeleteLeaks]

Bug: None
Test: The warning is gone.
Change-Id: I1a31188775c2a099949bf8b8e2613b71af5081cd

6 years agoMerge "Memory pressure" am: c7d0028ac2 am: a4e7af5980
Sherry Yang [Wed, 30 Aug 2017 04:01:41 +0000 (04:01 +0000)]
Merge "Memory pressure" am: c7d0028ac2 am: a4e7af5980
am: 08fb4b606a

Change-Id: I195f028ca2f394ae0253b946a9af8b702b0e1d18

6 years agoMerge "Memory pressure" am: c7d0028ac2
Sherry Yang [Wed, 30 Aug 2017 03:55:11 +0000 (03:55 +0000)]
Merge "Memory pressure" am: c7d0028ac2
am: a4e7af5980

Change-Id: Ic35727f6c6fcc5e9c7c1c6b9646e77a6a9bfee56

6 years agoMerge "Memory pressure"
Sherry Yang [Wed, 30 Aug 2017 03:48:40 +0000 (03:48 +0000)]
Merge "Memory pressure"
am: c7d0028ac2

Change-Id: I9d32b1c5233158411f55542402353c5802077402

6 years agoMerge "Memory pressure"
Treehugger Robot [Wed, 30 Aug 2017 03:32:35 +0000 (03:32 +0000)]
Merge "Memory pressure"

6 years agosimpleperf: fix --app option for multiprocess apps.
Yabin Cui [Mon, 28 Aug 2017 21:49:04 +0000 (14:49 -0700)]
simpleperf: fix --app option for multiprocess apps.

1. Search all processes in an app when using --app option in record command.
2. Fix searching one app process when using -p option in app_profiler.py.
3. Add unittest for profiling multiprocess apps.

Bug: http://b/65025325
Test: run test.py

Change-Id: Iba2e97c2174815d0236636e3cf15b1fc17a5d838

6 years agoMerge "simpleperf: fix finding app's process." am: 5c4dcdb68d am: 3919e31d85
Yabin Cui [Tue, 29 Aug 2017 16:42:57 +0000 (16:42 +0000)]
Merge "simpleperf: fix finding app's process." am: 5c4dcdb68d am: 3919e31d85
am: d2c98f9fad

Change-Id: I8ef1130032231d6fd337cf64748dbcd9f91c6e77