OSDN Git Service

android-x86/system-extras.git
7 years agoMerge "simpleperf: check invalid perf.data." am: 20eac2aa36 am: 3486ef2ed6 am: 40456825a1
Yabin Cui [Wed, 14 Dec 2016 19:02:00 +0000 (19:02 +0000)]
Merge "simpleperf: check invalid perf.data." am: 20eac2aa36 am: 3486ef2ed6 am: 40456825a1
am: 4a9bc6bfc7

Change-Id: I5f7516620e7f10fe0d3e8e2950826b070dd8250e

7 years agoMerge "simpleperf: check invalid perf.data." am: 20eac2aa36 am: 3486ef2ed6
Yabin Cui [Wed, 14 Dec 2016 18:55:30 +0000 (18:55 +0000)]
Merge "simpleperf: check invalid perf.data." am: 20eac2aa36 am: 3486ef2ed6
am: 40456825a1

Change-Id: I3148c6accd42c958082afb74e9f29f05335dd285

7 years agoMerge "simpleperf: check invalid perf.data." am: 20eac2aa36
Yabin Cui [Wed, 14 Dec 2016 18:48:25 +0000 (18:48 +0000)]
Merge "simpleperf: check invalid perf.data." am: 20eac2aa36
am: 3486ef2ed6

Change-Id: I3c796b156c7e3ad51b9a56e14a95259ff2e7ee22

7 years agoMerge "simpleperf: check invalid perf.data."
Yabin Cui [Wed, 14 Dec 2016 18:42:19 +0000 (18:42 +0000)]
Merge "simpleperf: check invalid perf.data."
am: 20eac2aa36

Change-Id: I07ebac8248ce921dc42e832a3d388b0a31530e20

7 years agoMerge "simpleperf: check invalid perf.data."
Yabin Cui [Wed, 14 Dec 2016 18:31:51 +0000 (18:31 +0000)]
Merge "simpleperf: check invalid perf.data."

7 years agosimpleperf: check invalid perf.data.
Yabin Cui [Wed, 14 Dec 2016 01:49:19 +0000 (17:49 -0800)]
simpleperf: check invalid perf.data.

Bug: http://b/33558210
Test: run simpleperf_unit_test.
Change-Id: If5a1f7fc9c436a39776f80f1e52479f1cd7ff407

7 years agoMerge "simpleperf: check monitored targets regularly." am: 923268ef1e am: 4d2b6f684e...
Yabin Cui [Wed, 14 Dec 2016 00:54:59 +0000 (00:54 +0000)]
Merge "simpleperf: check monitored targets regularly." am: 923268ef1e am: 4d2b6f684e am: a2e2a358dc
am: eeaa4eeee4

Change-Id: Iff7b8ccd8191d9bb41311ee2daefa43d8481c43b

7 years agoMerge "simpleperf: check monitored targets regularly." am: 923268ef1e am: 4d2b6f684e
Yabin Cui [Wed, 14 Dec 2016 00:47:32 +0000 (00:47 +0000)]
Merge "simpleperf: check monitored targets regularly." am: 923268ef1e am: 4d2b6f684e
am: a2e2a358dc

Change-Id: I3ee1d5978f8f355ff64934655b17da3e18e7320c

7 years agoMerge "simpleperf: check monitored targets regularly." am: 923268ef1e
Yabin Cui [Wed, 14 Dec 2016 00:40:46 +0000 (00:40 +0000)]
Merge "simpleperf: check monitored targets regularly." am: 923268ef1e
am: 4d2b6f684e

Change-Id: Ib09e5969ed637a6f9dfdb8ba65af8384b6a323fb

7 years agoMerge "simpleperf: check monitored targets regularly."
Yabin Cui [Wed, 14 Dec 2016 00:34:15 +0000 (00:34 +0000)]
Merge "simpleperf: check monitored targets regularly."
am: 923268ef1e

Change-Id: I66ab80242a5f42efc67d114cd60b0e033054977b

7 years agoMerge "simpleperf: check monitored targets regularly."
Yabin Cui [Wed, 14 Dec 2016 00:29:55 +0000 (00:29 +0000)]
Merge "simpleperf: check monitored targets regularly."

7 years agosimpleperf: check monitored targets regularly.
Yabin Cui [Tue, 13 Dec 2016 21:47:49 +0000 (13:47 -0800)]
simpleperf: check monitored targets regularly.

When monitoring some threads/processes not forked by simpleperf,
check if these threads/processes exist regularly. So we can
stop profiling once all threads/processes exit.

Also handle SIGHUP signal, so we can finish profiling properly
when `adb shell simpleperf record xxx` is killed by Ctrl-C.

Add corresponding tests.

Bug: http://b/33558210
Test: run simpleperf_unit_test.
Change-Id: Ieae4d00d099dc1c7a0c51b0610dff43981bb642e

7 years agoMerge "simpleperf: add script to manage app profiling process." am: 88ff807ea2 am...
Yabin Cui [Mon, 12 Dec 2016 22:27:46 +0000 (22:27 +0000)]
Merge "simpleperf: add script to manage app profiling process." am: 88ff807ea2 am: b1b51ee271 am: 75c08bc62f
am: 2cd38e216d

Change-Id: Iacb6a47c70b610890535ddb00bdfd04300fc20aa

7 years agoMerge "simpleperf: add script to manage app profiling process." am: 88ff807ea2 am...
Yabin Cui [Mon, 12 Dec 2016 22:21:44 +0000 (22:21 +0000)]
Merge "simpleperf: add script to manage app profiling process." am: 88ff807ea2 am: b1b51ee271
am: 75c08bc62f

Change-Id: Ic80471cd6cc817ecc6099226b9f2e2a30a165322

7 years agoMerge "simpleperf: add script to manage app profiling process." am: 88ff807ea2
Yabin Cui [Mon, 12 Dec 2016 22:15:12 +0000 (22:15 +0000)]
Merge "simpleperf: add script to manage app profiling process." am: 88ff807ea2
am: b1b51ee271

Change-Id: I830b8aa8fbd229b18655bc6d2701dd7570d7faff

7 years agoMerge "simpleperf: add script to manage app profiling process."
Yabin Cui [Mon, 12 Dec 2016 22:09:10 +0000 (22:09 +0000)]
Merge "simpleperf: add script to manage app profiling process."
am: 88ff807ea2

Change-Id: I686b0b49fee06212442b0c076628dfd2cd449c88

7 years agoMerge "simpleperf: add script to manage app profiling process."
Yabin Cui [Mon, 12 Dec 2016 22:00:27 +0000 (22:00 +0000)]
Merge "simpleperf: add script to manage app profiling process."

7 years agosimpleperf: add script to manage app profiling process.
Yabin Cui [Mon, 5 Dec 2016 22:26:02 +0000 (14:26 -0800)]
simpleperf: add script to manage app profiling process.

app_profiler.py follows the instruction of profiling an
app in README.md. Users can just set the configuration,
and let app_profiler.py do environment setup, profiling
and data collection work.

Bug: http://b/32834638
Test: run app_profiler.py on android M, N, O.
Change-Id: I2e08790396b02df32320eaa27b75d49108f4856f

7 years agoMerge "simpleperf: Improve Callgraph." am: 37dd326f5a am: 2577b42281 am: 286f73ee1b
Yabin Cui [Sat, 10 Dec 2016 01:50:06 +0000 (01:50 +0000)]
Merge "simpleperf: Improve Callgraph." am: 37dd326f5a am: 2577b42281 am: 286f73ee1b
am: 8b1b311af5

Change-Id: Ie002d451f43b9fcac1cd4cf505a602b29601f3be

7 years agoMerge "simpleperf: Improve Callgraph." am: 37dd326f5a am: 2577b42281
Yabin Cui [Sat, 10 Dec 2016 01:44:01 +0000 (01:44 +0000)]
Merge "simpleperf: Improve Callgraph." am: 37dd326f5a am: 2577b42281
am: 286f73ee1b

Change-Id: Icc3d21d3946f8b3dee3def48fd430c3e2c738d23

7 years agoMerge "simpleperf: Improve Callgraph." am: 37dd326f5a
Yabin Cui [Sat, 10 Dec 2016 01:37:59 +0000 (01:37 +0000)]
Merge "simpleperf: Improve Callgraph." am: 37dd326f5a
am: 2577b42281

Change-Id: I62a3a20aca469fa27ece789f975199c1d5c52901

7 years agoMerge "simpleperf: Improve Callgraph."
Yabin Cui [Sat, 10 Dec 2016 01:31:58 +0000 (01:31 +0000)]
Merge "simpleperf: Improve Callgraph."
am: 37dd326f5a

Change-Id: I5a070a95482df4234d7df269f826ff11d701eb3c

7 years agoMerge "simpleperf: Improve Callgraph."
Yabin Cui [Sat, 10 Dec 2016 01:24:19 +0000 (01:24 +0000)]
Merge "simpleperf: Improve Callgraph."

7 years agosimpleperf: Improve Callgraph.
Yabin Cui [Fri, 9 Dec 2016 22:51:04 +0000 (14:51 -0800)]
simpleperf: Improve Callgraph.

1. Reduce columns used by callgraph by reducing spaces between
entries from 11 to 4. This helps to show more entries in the limited screen width.
2. Add [hit-in-function] line for each entry, so we know the percentage
of samples hit in the function and samples hit in the children functions.
3. Add --kallsyms option for report command.

After all, The callgraph is changed like below.
Before change:
 |--99.08%-- java.lang.Thread.run
 |           void com.example.cyb.tappydefender.TDView.run()
 |           |
 |           |           |--95.63%-- void com.example.cyb.tappydefender.TDView.draw()

After change:
 |--98.85%-- java.lang.Thread.run
 |           void com.example.cyb.tappydefender.TDView.run()
 |    |--0.09%-- [hit in function]
 |    |
 |    |--95.54%-- void com.example.cyb.tappydefender.TDView.draw()

Bug: http://b/33356538
Test: run simpleperf_unit_test.
Test: run simpleperf report -g manually.
Change-Id: Ifc1846d4ee7469cadbcc727cae6bf59552d919d5

7 years agoMerge "ext4_utils: Fix return value in e4crypt_policy_get" am: 6c26bba8a9 am: 6c0637a...
Ethan Yonker [Wed, 7 Dec 2016 19:43:12 +0000 (19:43 +0000)]
Merge "ext4_utils: Fix return value in e4crypt_policy_get" am: 6c26bba8a9 am: 6c0637a8f5 am: 7e9786d791
am: b14e85ecfb

Change-Id: I8684b6a873644c8b7a165afad1e31adc87c209e4

7 years agoMerge "ext4_utils: Fix return value in e4crypt_policy_get" am: 6c26bba8a9 am: 6c0637a8f5
Ethan Yonker [Wed, 7 Dec 2016 19:39:17 +0000 (19:39 +0000)]
Merge "ext4_utils: Fix return value in e4crypt_policy_get" am: 6c26bba8a9 am: 6c0637a8f5
am: 7e9786d791

Change-Id: I390299006a0af18ac819afe8e1fbfce9c9c2d475

7 years agoMerge "ext4_utils: Fix return value in e4crypt_policy_get" am: 6c26bba8a9
Ethan Yonker [Wed, 7 Dec 2016 19:34:48 +0000 (19:34 +0000)]
Merge "ext4_utils: Fix return value in e4crypt_policy_get" am: 6c26bba8a9
am: 6c0637a8f5

Change-Id: Icad05c70cdf415c790d8fb0168732a1889ea1a26

7 years agoMerge "ext4_utils: Fix return value in e4crypt_policy_get"
Ethan Yonker [Wed, 7 Dec 2016 19:31:17 +0000 (19:31 +0000)]
Merge "ext4_utils: Fix return value in e4crypt_policy_get"
am: 6c26bba8a9

Change-Id: I24e845592c4d169a4817a0a034399c381e898d75

7 years agoMerge "ext4_utils: Fix return value in e4crypt_policy_get"
Treehugger Robot [Wed, 7 Dec 2016 19:26:30 +0000 (19:26 +0000)]
Merge "ext4_utils: Fix return value in e4crypt_policy_get"

7 years agoext4_utils: Fix return value in e4crypt_policy_get
Ethan Yonker [Wed, 7 Dec 2016 04:42:14 +0000 (22:42 -0600)]
ext4_utils: Fix return value in e4crypt_policy_get

Change-Id: I9e02cda707b551980683895ef7f22522157628d8

7 years agoMerge "make_ext4fs: add option to specify the number of inodes" am: 33d9ecbf96 am...
Pat Tjin [Wed, 7 Dec 2016 07:24:18 +0000 (07:24 +0000)]
Merge "make_ext4fs: add option to specify the number of inodes" am: 33d9ecbf96 am: 9db54ab7b3 am: 3b9050c80b
am: fc541d67d8

Change-Id: Ic5b500f5c0a7c622981a64a2e9e6f4f6e0960a6f

7 years agoMerge "make_ext4fs: add option to specify the number of inodes" am: 33d9ecbf96 am...
Pat Tjin [Wed, 7 Dec 2016 07:20:18 +0000 (07:20 +0000)]
Merge "make_ext4fs: add option to specify the number of inodes" am: 33d9ecbf96 am: 9db54ab7b3
am: 3b9050c80b

Change-Id: Ie956b07d01af76f9d020c834078615963ed32404

7 years agoMerge "make_ext4fs: add option to specify the number of inodes" am: 33d9ecbf96
Pat Tjin [Wed, 7 Dec 2016 07:15:47 +0000 (07:15 +0000)]
Merge "make_ext4fs: add option to specify the number of inodes" am: 33d9ecbf96
am: 9db54ab7b3

Change-Id: Iceb76b0636157932347bb52de827f398e21f2766

7 years agoMerge "make_ext4fs: add option to specify the number of inodes"
Pat Tjin [Wed, 7 Dec 2016 07:12:14 +0000 (07:12 +0000)]
Merge "make_ext4fs: add option to specify the number of inodes"
am: 33d9ecbf96

Change-Id: I88c802988fc17afcc7274be12940295e0987e341

7 years agoMerge "make_ext4fs: add option to specify the number of inodes"
Pat Tjin [Wed, 7 Dec 2016 07:07:25 +0000 (07:07 +0000)]
Merge "make_ext4fs: add option to specify the number of inodes"

7 years agomake_ext4fs: add option to specify the number of inodes
Patrick Tjin [Thu, 20 Oct 2016 17:55:11 +0000 (10:55 -0700)]
make_ext4fs: add option to specify the number of inodes

Add option to specify the number of inodes to create when
making the filesystem.  Read-only partitions don't have
a need for extra inodes, a lot of space is wasted by these
inodes.

Bug: 32246383
Test: make vendor partition with new options
Change-Id: I7063972ec4f4e617d28d2e029ad6a9f8e94add73
(cherry picked from commit 15c434682ac78262d2dad9730805eab52b748cdf)

7 years agoMerge "simpleperf: add binary_cache_builder script." am: a5a101294e am: 7b4295f4ab...
Yabin Cui [Sat, 3 Dec 2016 04:51:59 +0000 (04:51 +0000)]
Merge "simpleperf: add binary_cache_builder script." am: a5a101294e am: 7b4295f4ab am: 5564824d90
am: b2cd58e7d7

Change-Id: I184671b3d142cf9425bb29b1276664c29e8c1538

7 years agoMerge "simpleperf: add binary_cache_builder script." am: a5a101294e am: 7b4295f4ab
Yabin Cui [Sat, 3 Dec 2016 04:43:33 +0000 (04:43 +0000)]
Merge "simpleperf: add binary_cache_builder script." am: a5a101294e am: 7b4295f4ab
am: 5564824d90

Change-Id: Ie5834ce95e03799c641405b93a7d7e8f4940b9d9

7 years agoMerge "simpleperf: add binary_cache_builder script." am: a5a101294e
Yabin Cui [Sat, 3 Dec 2016 04:37:47 +0000 (04:37 +0000)]
Merge "simpleperf: add binary_cache_builder script." am: a5a101294e
am: 7b4295f4ab

Change-Id: Ife23eed139391475b0b00ac86c77c993a5c471d3

7 years agoMerge "simpleperf: add binary_cache_builder script."
Yabin Cui [Sat, 3 Dec 2016 04:23:48 +0000 (04:23 +0000)]
Merge "simpleperf: add binary_cache_builder script."
am: a5a101294e

Change-Id: I0c2a0c8037cd95e25dab555e9c348ab7270cfaf7

7 years agoManually merge commit 'bf03f2e' into stage-aosp-master am: a083ba6a48 am: 298394ac68
Adrien Schildknecht [Sat, 3 Dec 2016 04:20:11 +0000 (04:20 +0000)]
Manually merge commit 'bf03f2e' into stage-aosp-master am: a083ba6a48 am: 298394ac68
am: 822c2b6e07

Change-Id: I3682e1a156e0c5740b57f51a42c5d2b3f96f92a8

7 years agoManually merge commit 'bf03f2e' into stage-aosp-master am: a083ba6a48
Adrien Schildknecht [Sat, 3 Dec 2016 04:15:07 +0000 (04:15 +0000)]
Manually merge commit 'bf03f2e' into stage-aosp-master am: a083ba6a48
am: 298394ac68

Change-Id: I21a5898232427ee759f33f53bd1c5c96f4cc5439

7 years agoManually merge commit 'bf03f2e' into stage-aosp-master
Adrien Schildknecht [Sat, 3 Dec 2016 04:13:08 +0000 (04:13 +0000)]
Manually merge commit 'bf03f2e' into stage-aosp-master
am: a083ba6a48

Change-Id: I62ac977e4352061f3d3b7aecbf7dcfbc6026d32a

7 years agoManually merge commit 'bf03f2e' into stage-aosp-master
The Android Automerger [Sat, 3 Dec 2016 04:08:00 +0000 (04:08 +0000)]
Manually merge commit 'bf03f2e' into stage-aosp-master

* commit 'bf03f2e':
  ext4_utils: move ext2simg to upstream e2fsprogs
  ext4_utils: use mke2fs instead of make_ext4

BUG:33304034

7 years agoMerge "simpleperf: add binary_cache_builder script."
Yabin Cui [Fri, 2 Dec 2016 23:38:49 +0000 (23:38 +0000)]
Merge "simpleperf: add binary_cache_builder script."

7 years agoMerge changes from topic 'e2fsprogs'
Treehugger Robot [Fri, 2 Dec 2016 22:48:21 +0000 (22:48 +0000)]
Merge changes from topic 'e2fsprogs'

* changes:
  ext4_utils: move ext2simg to upstream e2fsprogs
  ext4_utils: use mke2fs instead of make_ext4

7 years agosimpleperf: add binary_cache_builder script.
Yabin Cui [Wed, 30 Nov 2016 19:46:20 +0000 (11:46 -0800)]
simpleperf: add binary_cache_builder script.

To report on host, we need to pull binaries from device to host.
binary_cache_builder.py is used to pull needed binaries automatically.

Other changes:
Move common functions to utils.py.
Move libsimpleperf_report.so to proper directory, so we can add other
host shared libraries and target binaries in the future.

Bug: http://b/32834638
Test: run binary_cache_builder.py for N, O devices, both root and non-root.

Change-Id: Ifa8931842087ed43d1e530e40ca0254cbf9ea3a9

7 years agoext4_utils: move ext2simg to upstream e2fsprogs
Adrien Schildknecht [Thu, 1 Dec 2016 23:10:09 +0000 (15:10 -0800)]
ext4_utils: move ext2simg to upstream e2fsprogs

This binary is now part of e2fsprogs.

Test: m ext2simg
Change-Id: I6c30cc7d6c79770541c13c84449e35bbca8b5541

7 years agoext4_utils: use mke2fs instead of make_ext4
Adrien Schildknecht [Wed, 16 Nov 2016 06:33:29 +0000 (22:33 -0800)]
ext4_utils: use mke2fs instead of make_ext4

Test: m -j32 && fastboot flashall (aosp_angler-userdebug)

Change-Id: Ic4f598fdf19c8d6fb44740999663ed4f166b0a5b

7 years agoMerge "simpleperf: improve script interface." am: 090785e4dd am: 72fc75c1f7 am: bb436...
Yabin Cui [Wed, 30 Nov 2016 20:05:31 +0000 (20:05 +0000)]
Merge "simpleperf: improve script interface." am: 090785e4dd am: 72fc75c1f7 am: bb4366201f
am: 22570fa2ec

Change-Id: Id9f23a2389b957833a9df376ea50bbb4261e209e

7 years agoMerge "Rewrite bootctl utility to use new HAL interface" am: 1bc97843cb am: fe9d98092...
Connor O'Brien [Wed, 30 Nov 2016 20:05:20 +0000 (20:05 +0000)]
Merge "Rewrite bootctl utility to use new HAL interface" am: 1bc97843cb am: fe9d980924 am: 72332cb51b
am: 75e2751488

Change-Id: I6a5f511ee6de34d1138446e17ef6c98c2eec3829

7 years agoMerge "simpleperf: improve script interface." am: 090785e4dd am: 72fc75c1f7
Yabin Cui [Wed, 30 Nov 2016 20:00:34 +0000 (20:00 +0000)]
Merge "simpleperf: improve script interface." am: 090785e4dd am: 72fc75c1f7
am: bb4366201f

Change-Id: Ie4e2840c333565b2df03d2ee508ecf1755aa3126

7 years agoMerge "Rewrite bootctl utility to use new HAL interface" am: 1bc97843cb am: fe9d980924
Connor O'Brien [Wed, 30 Nov 2016 20:00:19 +0000 (20:00 +0000)]
Merge "Rewrite bootctl utility to use new HAL interface" am: 1bc97843cb am: fe9d980924
am: 72332cb51b

Change-Id: I5943d75aa91755f9f1d0e1c28ea308f8aaeab4c5

7 years agoMerge "simpleperf: improve script interface." am: 090785e4dd
Yabin Cui [Wed, 30 Nov 2016 19:55:30 +0000 (19:55 +0000)]
Merge "simpleperf: improve script interface." am: 090785e4dd
am: 72fc75c1f7

Change-Id: Ia7c9cc81aa76c4b4f465cf5a6b33884e2c5493fa

7 years agoMerge "Rewrite bootctl utility to use new HAL interface" am: 1bc97843cb
Connor O'Brien [Wed, 30 Nov 2016 19:55:19 +0000 (19:55 +0000)]
Merge "Rewrite bootctl utility to use new HAL interface" am: 1bc97843cb
am: fe9d980924

Change-Id: Icb27cd3a4e99394eab7754eda9b22d23988b3a0f

7 years agoMerge "simpleperf: improve script interface."
Yabin Cui [Wed, 30 Nov 2016 19:49:51 +0000 (19:49 +0000)]
Merge "simpleperf: improve script interface."
am: 090785e4dd

Change-Id: I6536a2764eed1b614628028fccb6a79477208268

7 years agoMerge "Rewrite bootctl utility to use new HAL interface"
Connor O'Brien [Wed, 30 Nov 2016 19:49:37 +0000 (19:49 +0000)]
Merge "Rewrite bootctl utility to use new HAL interface"
am: 1bc97843cb

Change-Id: I99deaf99e0f747ac75f53a03b1e85414228ed715

7 years agoMerge "simpleperf: improve script interface."
Yabin Cui [Wed, 30 Nov 2016 19:39:53 +0000 (19:39 +0000)]
Merge "simpleperf: improve script interface."

7 years agoMerge "Rewrite bootctl utility to use new HAL interface"
Connor O'Brien [Wed, 30 Nov 2016 19:33:34 +0000 (19:33 +0000)]
Merge "Rewrite bootctl utility to use new HAL interface"

7 years agoMerge "simpleperf: fix tests for dwarf callgraph unwinding." am: 35f8849075 am: ed3ee...
Yabin Cui [Wed, 30 Nov 2016 18:10:33 +0000 (18:10 +0000)]
Merge "simpleperf: fix tests for dwarf callgraph unwinding." am: 35f8849075 am: ed3ee52f81 am: fe39f81b95
am: 9623e09ae5

Change-Id: I96bc3345e092be4b9e29c3928de5286630c88e72

7 years agoMerge "simpleperf: fix tests for dwarf callgraph unwinding." am: 35f8849075 am: ed3ee...
Yabin Cui [Wed, 30 Nov 2016 18:05:06 +0000 (18:05 +0000)]
Merge "simpleperf: fix tests for dwarf callgraph unwinding." am: 35f8849075 am: ed3ee52f81
am: fe39f81b95

Change-Id: I9cba435d4541a7293649786f46edf8a5ae094b8a

7 years agoMerge "simpleperf: fix tests for dwarf callgraph unwinding." am: 35f8849075
Yabin Cui [Wed, 30 Nov 2016 18:00:29 +0000 (18:00 +0000)]
Merge "simpleperf: fix tests for dwarf callgraph unwinding." am: 35f8849075
am: ed3ee52f81

Change-Id: I3ed2e28943962ea330ccd4b46c7a432272f16012

7 years agoMerge "simpleperf: fix tests for dwarf callgraph unwinding."
Yabin Cui [Wed, 30 Nov 2016 17:54:55 +0000 (17:54 +0000)]
Merge "simpleperf: fix tests for dwarf callgraph unwinding."
am: 35f8849075

Change-Id: I4329e4c23a5c20e3b13749fcf13ba5bd82ae645e

7 years agoMerge "simpleperf: fix tests for dwarf callgraph unwinding."
Yabin Cui [Wed, 30 Nov 2016 17:41:27 +0000 (17:41 +0000)]
Merge "simpleperf: fix tests for dwarf callgraph unwinding."

7 years agosimpleperf: improve script interface.
Yabin Cui [Tue, 29 Nov 2016 20:54:50 +0000 (12:54 -0800)]
simpleperf: improve script interface.

1. In ReportLib, return structure instead of pointer to structure.
So users can use 'sample' instead of 'sample[0]', as in report_sample.py.

2. For python3, convert char pointer to str type. Because str is more
convenient to use.

Bug: http://b/32834638
Test: run simpleperf_report_lib.py and report_sample.py.
Change-Id: Iee8c3570e82104c5dd02f3f657ac143d1fdc2233

7 years agoRewrite bootctl utility to use new HAL interface
Connor O'Brien [Fri, 14 Oct 2016 22:03:12 +0000 (15:03 -0700)]
Rewrite bootctl utility to use new HAL interface

Test: Ran and compared output to old version
Change-Id: I8889794a5c7953b066a1a7fecd0154c912f4d60d
Signed-off-by: Connor O'Brien <connoro@google.com>
7 years agosimpleperf: fix tests for dwarf callgraph unwinding.
Yabin Cui [Tue, 29 Nov 2016 23:21:13 +0000 (15:21 -0800)]
simpleperf: fix tests for dwarf callgraph unwinding.

32-bit simpleperf can't unwind a 64-bit `sleep` process in aarch64
environment. It makes following error in tests:
simpleperf is built in arch arm, and can't do stack unwinding for arch arm64

So make the workload be able to start a process
running callback function. By profiling that process, we can
guarantee that 32-bit simpleperf is profiling a 32-bit process.

Also fix a flaky test IOEventLoop.signal.
Build 32-bit simpleperf_unit_test on 64-bit devices.

Bug: http://b/33167911
Test: run simpleperf_unit_test.
Change-Id: I82741dc5d90c73c1890f834d8e2a9188421a3828

7 years agoMerge "simpleperf: add stuff in report_lib_interface." am: c11a58e701 am: 016ac14879...
Yabin Cui [Tue, 29 Nov 2016 20:07:55 +0000 (20:07 +0000)]
Merge "simpleperf: add stuff in report_lib_interface." am: c11a58e701 am: 016ac14879 am: 969472af65
am: 9e2eab76be

Change-Id: Ifbb27fe6c83ea2540fb1ec25fc05d3395505eb7e

7 years agoMerge "simpleperf: add stuff in report_lib_interface." am: c11a58e701 am: 016ac14879
Yabin Cui [Tue, 29 Nov 2016 20:02:23 +0000 (20:02 +0000)]
Merge "simpleperf: add stuff in report_lib_interface." am: c11a58e701 am: 016ac14879
am: 969472af65

Change-Id: Ia5b9fa61d5e68aec16b6c69540949da7415f450b

7 years agoMerge "simpleperf: add stuff in report_lib_interface." am: c11a58e701
Yabin Cui [Tue, 29 Nov 2016 19:57:23 +0000 (19:57 +0000)]
Merge "simpleperf: add stuff in report_lib_interface." am: c11a58e701
am: 016ac14879

Change-Id: Iabbcd190c4b94518fa15b5abd1a932063104aece

7 years agoMerge "simpleperf: add stuff in report_lib_interface."
Yabin Cui [Tue, 29 Nov 2016 19:51:53 +0000 (19:51 +0000)]
Merge "simpleperf: add stuff in report_lib_interface."
am: c11a58e701

Change-Id: I6fcdd9b4476d927298f419cee37aaf46c4c0ed2e

7 years agoMerge "simpleperf: add stuff in report_lib_interface."
Yabin Cui [Tue, 29 Nov 2016 19:46:07 +0000 (19:46 +0000)]
Merge "simpleperf: add stuff in report_lib_interface."

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:29:17 +0000 (18:29 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0 am: 3734580187 am: 69dd400b72  -s ours am: 1bec234d84
am: 8282e56528  -s ours

Change-Id: I76672d3f842655d08f98910bc459620c2a9c9a86

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:29:06 +0000 (18:29 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0 am: 3734580187 am: 69dd400b72 am: 378116f05a  -s ours
am: 1db7b34fa5  -s ours

Change-Id: I7abd967dac1e1a24f4eed9eb632bf2dba4fd35f7

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:24:05 +0000 (18:24 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0 am: 3734580187 am: 69dd400b72  -s ours
am: 1bec234d84

Change-Id: I21bc233a2c57c6beb856cb2c55dd7532823eafd3

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:23:44 +0000 (18:23 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0 am: 3734580187 am: 69dd400b72
am: 378116f05a  -s ours

Change-Id: I4732bd36a0d48ed56cac2b84721d6df67ab1f829

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:19:04 +0000 (18:19 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0 am: 3734580187
am: 69dd400b72  -s ours

Change-Id: I4bb866122631ea580cd1811dc4b7e3f5138a2140

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:14:11 +0000 (18:14 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0 am: 3734580187
am: 69dd400b72

Change-Id: I9ac01c8b23f58972b1867822c197c36909d771d2

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am...
Tao Bao [Tue, 29 Nov 2016 18:09:11 +0000 (18:09 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7 am: 533ed53bc0
am: 3734580187

Change-Id: Id3fd5d9611e86735f5cb54f7888048ff7c108f3b

7 years agoMerge changes I2198f8b5,I245c859e am: c3fbd8b936 am: af3938ae34 am: 3d4318fdf6
Mark Salyzyn [Tue, 29 Nov 2016 18:04:17 +0000 (18:04 +0000)]
Merge changes I2198f8b5,I245c859e am: c3fbd8b936 am: af3938ae34 am: 3d4318fdf6
am: b5fee4acfd

Change-Id: I9d16fc734bbde1ebc0547b822e6651dfb6a5363c

7 years agotime test reclassification as gTest am: 11a438be18 am: 0ceab28690 am: 40ae93af53
Mark Salyzyn [Tue, 29 Nov 2016 18:04:15 +0000 (18:04 +0000)]
time test reclassification as gTest am: 11a438be18 am: 0ceab28690 am: 40ae93af53
am: 1257e26e37

Change-Id: Ifd9aa11c37109a90a3fbb26005f3b858cc89f3f0

7 years agosystem/extras: Replace cutils/log.h with android/log.h or log/log.h am: 3d66aa307e...
Mark Salyzyn [Tue, 29 Nov 2016 18:04:12 +0000 (18:04 +0000)]
system/extras: Replace cutils/log.h with android/log.h or log/log.h am: 3d66aa307e am: 55925a0a50 am: 1ce37777ee
am: a383bf437b

Change-Id: I6a594a5bd69375e92ea37de75acadbf30af84ae4

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7
Tao Bao [Tue, 29 Nov 2016 18:04:10 +0000 (18:04 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC. am: 989f6a13a7
am: 533ed53bc0

Change-Id: I1eca68a42d8c935f95e6dbeadd8e52ca5df48d01

7 years agoMerge changes I2198f8b5,I245c859e am: c3fbd8b936 am: af3938ae34
Mark Salyzyn [Tue, 29 Nov 2016 17:59:17 +0000 (17:59 +0000)]
Merge changes I2198f8b5,I245c859e am: c3fbd8b936 am: af3938ae34
am: 3d4318fdf6

Change-Id: I710739bcac64579e44fab162fa5dd9afacd8e3d5

7 years agotime test reclassification as gTest am: 11a438be18 am: 0ceab28690
Mark Salyzyn [Tue, 29 Nov 2016 17:59:14 +0000 (17:59 +0000)]
time test reclassification as gTest am: 11a438be18 am: 0ceab28690
am: 40ae93af53

Change-Id: I7460465465b9144577771d86fcd8b40db6cc45ef

7 years agosystem/extras: Replace cutils/log.h with android/log.h or log/log.h am: 3d66aa307e...
Mark Salyzyn [Tue, 29 Nov 2016 17:59:12 +0000 (17:59 +0000)]
system/extras: Replace cutils/log.h with android/log.h or log/log.h am: 3d66aa307e am: 55925a0a50
am: 1ce37777ee

Change-Id: I3a1c830cf024485d1c21fb5d76861614a4e18899

7 years agoDO NOT MERGE verity_verifier: Support verifying images with FEC.
Tao Bao [Tue, 29 Nov 2016 17:59:10 +0000 (17:59 +0000)]
DO NOT MERGE verity_verifier: Support verifying images with FEC.
am: 989f6a13a7

Change-Id: I7e9bebaafac56456c618befee18f971114e24b85

7 years agoMerge changes I2198f8b5,I245c859e am: c3fbd8b936
Mark Salyzyn [Tue, 29 Nov 2016 17:54:46 +0000 (17:54 +0000)]
Merge changes I2198f8b5,I245c859e am: c3fbd8b936
am: af3938ae34

Change-Id: I9092e5733eb6e861ed7631e77ea6968260159de8

7 years agotime test reclassification as gTest am: 11a438be18
Mark Salyzyn [Tue, 29 Nov 2016 17:54:44 +0000 (17:54 +0000)]
time test reclassification as gTest am: 11a438be18
am: 0ceab28690

Change-Id: I8ad8fef52e2949319b3bab0c5cf9e7275560e9d9

7 years agosystem/extras: Replace cutils/log.h with android/log.h or log/log.h am: 3d66aa307e
Mark Salyzyn [Tue, 29 Nov 2016 17:54:41 +0000 (17:54 +0000)]
system/extras: Replace cutils/log.h with android/log.h or log/log.h am: 3d66aa307e
am: 55925a0a50

Change-Id: I763b2d935997e0c125d60f474afe699260c7014c

7 years agoMerge changes I2198f8b5,I245c859e
Mark Salyzyn [Tue, 29 Nov 2016 17:50:14 +0000 (17:50 +0000)]
Merge changes I2198f8b5,I245c859e
am: c3fbd8b936

Change-Id: I8a765ad6d12ea8450fba6f229e564b0a40007c15

7 years agotime test reclassification as gTest
Mark Salyzyn [Tue, 29 Nov 2016 17:50:13 +0000 (17:50 +0000)]
time test reclassification as gTest
am: 11a438be18

Change-Id: I06539c7e894be9a1739779f97fb31ec6f1e672b1

7 years agosystem/extras: Replace cutils/log.h with android/log.h or log/log.h
Mark Salyzyn [Tue, 29 Nov 2016 17:50:12 +0000 (17:50 +0000)]
system/extras: Replace cutils/log.h with android/log.h or log/log.h
am: 3d66aa307e

Change-Id: Ifa46c3083140959b0cd1f27a96de7826a3413205

7 years agosimpleperf: add stuff in report_lib_interface.
Yabin Cui [Tue, 29 Nov 2016 01:28:08 +0000 (17:28 -0800)]
simpleperf: add stuff in report_lib_interface.

It's a preparation to annotate binaries, containing following
changes:
1. Export build_id for binaries.
2. Export function virtual addresses.
3. Add unit tests in simpleperf_report_lib.py.

Bug: http://b/32834638
Test: simpleperf_unit_test.
Test: run `python simpleperf_report_lib.py`.
Change-Id: Ieed40935ff9ede44bf823ba9c88ad87806ffac0a

7 years agoMerge changes I2198f8b5,I245c859e
Treehugger Robot [Tue, 29 Nov 2016 17:42:28 +0000 (17:42 +0000)]
Merge changes I2198f8b5,I245c859e

* changes:
  time test reclassification as gTest
  system/extras: Replace cutils/log.h with android/log.h or log/log.h

7 years agoDO NOT MERGE: libfec: allow fec_header to be located anywhere am: 549f048fcb am:...
Sami Tolvanen [Tue, 29 Nov 2016 00:15:31 +0000 (00:15 +0000)]
DO NOT MERGE: libfec: allow fec_header to be located anywhere am: 549f048fcb am: 3050f05110
am: 66ed40d4c1  -s ours

Change-Id: I413353996a221ae71137899d5c38f937213aa86a

7 years agoDO NOT MERGE: fec: add --padding am: 61fce29c45 am: 867093305e
Sami Tolvanen [Tue, 29 Nov 2016 00:15:26 +0000 (00:15 +0000)]
DO NOT MERGE: fec: add --padding am: 61fce29c45 am: 867093305e
am: 7ce0727615  -s ours

Change-Id: I72abc8c04a75d81448a175bca9fb8b2d8b5d6d67

7 years agoDO NOT MERGE: fec: remove unneeded target executable am: 955d3afe95 -s ours am:...
Sami Tolvanen [Tue, 29 Nov 2016 00:15:23 +0000 (00:15 +0000)]
DO NOT MERGE: fec: remove unneeded target executable am: 955d3afe95  -s ours am: 4ab0c5b6f7
am: f16360fa50  -s ours

Change-Id: I69cf604d219c747dfcbfe440ec6aca4410f922ca

7 years agoDO NOT MERGE: fec: remove unused mmap code am: cace33a52a -s ours am: ca87aaab7d
Sami Tolvanen [Tue, 29 Nov 2016 00:15:20 +0000 (00:15 +0000)]
DO NOT MERGE: fec: remove unused mmap code am: cace33a52a  -s ours am: ca87aaab7d
am: 26e4ba751b  -s ours

Change-Id: Iba0a5a627c4f8ebe796cb4f126d7fef7ba3388d4

7 years agoDO NOT MERGE: libfec: allow fec_header to be located anywhere am: 549f048fcb
Sami Tolvanen [Tue, 29 Nov 2016 00:10:58 +0000 (00:10 +0000)]
DO NOT MERGE: libfec: allow fec_header to be located anywhere am: 549f048fcb
am: 3050f05110

Change-Id: I953944520b1e611b77e9484251777b560a4b775d