OSDN Git Service

android-x86/system-extras.git
8 years agoMerge "Update binder benchmark to use google-benchmark" into nyc-dev
Julien Desprez [Tue, 29 Mar 2016 18:59:59 +0000 (18:59 +0000)]
Merge "Update binder benchmark to use google-benchmark" into nyc-dev
am: 43d1014

* commit '43d10141f1654a130f761741a62445b5dcb3456a':
  Update binder benchmark to use google-benchmark

Change-Id: I756ff78046d40e2ab068892021fa698e14910cde

8 years agoMerge "Update binder benchmark to use google-benchmark" into nyc-dev
Julien Desprez [Tue, 29 Mar 2016 18:55:25 +0000 (18:55 +0000)]
Merge "Update binder benchmark to use google-benchmark" into nyc-dev

8 years agoFix pagecache live stats.
Tim Murray [Tue, 29 Mar 2016 18:43:20 +0000 (18:43 +0000)]
Fix pagecache live stats.
am: f660240

* commit 'f6602403e98e6e88e336d1849e1291fac30bb31a':
  Fix pagecache live stats.

Change-Id: I1a9e33137422cd7f49779daf33adc4b3888c7339

8 years agoMerge "Simpleperf: add test for reporting callgraph of shared libraries in apk file...
Yabin Cui [Tue, 29 Mar 2016 18:30:28 +0000 (18:30 +0000)]
Merge "Simpleperf: add test for reporting callgraph of shared libraries in apk file." am: 6dd31f4
am: 8cc4b35

* commit '8cc4b3584497c6637db174ee5e40b3d1f296349f':
  Simpleperf: add test for reporting callgraph of shared libraries in apk file.

Change-Id: I78f724ffd0696481eb4a4f05be8211c491992fb5

8 years agoMerge "Simpleperf: add test for reporting callgraph of shared libraries in apk file."
Yabin Cui [Tue, 29 Mar 2016 18:24:21 +0000 (18:24 +0000)]
Merge "Simpleperf: add test for reporting callgraph of shared libraries in apk file."
am: 6dd31f4

* commit '6dd31f4a3fda4dc6a49bcda1fb67052bc478c3fb':
  Simpleperf: add test for reporting callgraph of shared libraries in apk file.

Change-Id: Idf654af8196cd42fdc292f38fda66ea785560982

8 years agoMerge "Simpleperf: add test for reporting callgraph of shared libraries in apk file."
Yabin Cui [Tue, 29 Mar 2016 18:18:47 +0000 (18:18 +0000)]
Merge "Simpleperf: add test for reporting callgraph of shared libraries in apk file."

8 years agoFix pagecache live stats.
Tim Murray [Tue, 29 Mar 2016 18:12:33 +0000 (11:12 -0700)]
Fix pagecache live stats.

Broke this while adding app filtering.

Change-Id: Ie9d4ae3b7f99169a15c04b9e2bc11d1cb2a62a95

8 years agoUpdate binder benchmark to use google-benchmark
Julien Desprez [Tue, 29 Mar 2016 15:22:30 +0000 (16:22 +0100)]
Update binder benchmark to use google-benchmark

Bug: 26449138
Change-Id: Ie91d114bf669c686f618c252e58feff4c853ef91

8 years agoMerge "Simpleperf: remove dependency on global current_arch." into nyc-dev
Yabin Cui [Mon, 28 Mar 2016 23:10:22 +0000 (23:10 +0000)]
Merge "Simpleperf: remove dependency on global current_arch." into nyc-dev
am: 7c4bbdc

* commit '7c4bbdc60586231e9601c6b199ec68317269ddd6':
  Simpleperf: remove dependency on global current_arch.

8 years agoMerge "Simpleperf: remove dependency on global current_arch." into nyc-dev
Yabin Cui [Mon, 28 Mar 2016 17:47:52 +0000 (17:47 +0000)]
Merge "Simpleperf: remove dependency on global current_arch." into nyc-dev

8 years agoSimpleperf: add test for reporting callgraph of shared libraries in apk file.
Yabin Cui [Sat, 19 Mar 2016 01:47:43 +0000 (18:47 -0700)]
Simpleperf: add test for reporting callgraph of shared libraries in apk file.

Also add comment for how to generate each perf.data in testdata/.
Add --log <leve> argument in unit test to help debugging.

Bug: 26962895
Change-Id: Iaa5a81cd8da5174d5b5b4e7847811e2432bf0db8

8 years agosimpleperf: don\'t looking for _text symbol in /proc/kallsyms.
Yabin Cui [Sat, 26 Mar 2016 22:19:29 +0000 (22:19 +0000)]
simpleperf: don\'t looking for _text symbol in /proc/kallsyms.
am: 9fbb28c

* commit '9fbb28cc4a05cbc9d571664cc31896899011bcde':
  simpleperf: don't looking for _text symbol in /proc/kallsyms.

8 years agoSimpleperf: remove dependency on global current_arch.
Yabin Cui [Fri, 18 Mar 2016 19:30:31 +0000 (12:30 -0700)]
Simpleperf: remove dependency on global current_arch.

When running unit tests on arm64 devices:
[OK] ReportCommandTest.dwarf_callgraph
[OK] record_cmd.dwarf_callchain_sampling.
ERROR: can't unwind data recorded on a different architecture.

It is because ReportCommandtest.dwarf_callgraph opens a perf.data
recorded on x86_64, and changes current_arch. It causes a problem when
the test record_cmd.dwarf_callchain_sampling calls libbacktrace built
on aarch64. Athough it doesn't make the test fail, we should fix this.

Bug: 27860749

Change-Id: I2cd70369a769ef2199cab2302b8b824369be0907
(cherry picked from commit 48460892306fbc232d7623b1aa5be1aefdc1a8a7)

8 years agosimpleperf: don't looking for _text symbol in /proc/kallsyms.
Yabin Cui [Sat, 26 Mar 2016 00:43:43 +0000 (17:43 -0700)]
simpleperf: don't looking for _text symbol in /proc/kallsyms.

simpleperf looks for _text symbol in /proc/kallsyms to get
kernel address space information. But that info is no longer
needed. As some kernels don't have _text symbol, we should
remove the corresponding code.

Bug: 27814103
Change-Id: I4eb9869b58c51846c99b1204f304cd107a0eb354
(cherry picked from commit 7134f388ccdccb4a5e3025254002a85333a72a70)

8 years agoMerge "simpleperf: don\'t looking for _text symbol in /proc/kallsyms."
Yabin Cui [Sat, 26 Mar 2016 03:12:01 +0000 (03:12 +0000)]
Merge "simpleperf: don\'t looking for _text symbol in /proc/kallsyms."
am: 7f5999a

* commit '7f5999aa3c78cd0f09dba7ebb041406fc34d0bfb':
  simpleperf: don't looking for _text symbol in /proc/kallsyms.

8 years agoMerge "simpleperf: don't looking for _text symbol in /proc/kallsyms."
Yabin Cui [Sat, 26 Mar 2016 03:05:11 +0000 (03:05 +0000)]
Merge "simpleperf: don't looking for _text symbol in /proc/kallsyms."

8 years agosimpleperf: don't looking for _text symbol in /proc/kallsyms.
Yabin Cui [Sat, 26 Mar 2016 00:43:43 +0000 (17:43 -0700)]
simpleperf: don't looking for _text symbol in /proc/kallsyms.

simpleperf looks for _text symbol in /proc/kallsyms to get
kernel address space information. But that info is no longer
needed. As some kernels don't have _text symbol, we should
remove the corresponding code.

Bug: 27814103
Change-Id: I4eb9869b58c51846c99b1204f304cd107a0eb354

8 years agoMerge "aslr_test: Fix typo."
dcashman [Wed, 23 Mar 2016 16:53:48 +0000 (16:53 +0000)]
Merge "aslr_test: Fix typo."
am: eb40ab9

* commit 'eb40ab9e3501acd0153a3483d90bf1e6d890583f':
  aslr_test: Fix typo.

8 years agoMerge "aslr_test: Fix typo."
Daniel Cashman [Wed, 23 Mar 2016 14:10:57 +0000 (14:10 +0000)]
Merge "aslr_test: Fix typo."

8 years agoaslr_test: Fix typo.
dcashman [Tue, 22 Mar 2016 23:42:25 +0000 (23:42 +0000)]
aslr_test: Fix typo.
am: b543b4e

* commit 'b543b4ed380bd3571f23225b216ad82860d281ee':
  aslr_test: Fix typo.

8 years agoaslr_test: Fix typo.
dcashman [Tue, 22 Mar 2016 23:08:26 +0000 (16:08 -0700)]
aslr_test: Fix typo.

(cherry-pick of internal commit: b543b4ed380bd3571f23225b216ad82860d281ee)

Bug: 26512380
Change-Id: I3e92b3ac7412a14ef875297310541fccd1774c03

8 years agoaslr_test: Fix typo.
dcashman [Tue, 22 Mar 2016 23:08:26 +0000 (16:08 -0700)]
aslr_test: Fix typo.

Bug: 26512380
Change-Id: Ia65986700f198a0f09db4a45a7d1bde173e557e6

8 years agoUpdate simpleperf for LLVM rebase to r256229.
Yabin Cui [Mon, 21 Mar 2016 19:57:29 +0000 (19:57 +0000)]
Update simpleperf for LLVM rebase to r256229.
am: a5d2920  -s ours

* commit 'a5d29203685774a9ef8c188d69d7f4cac69578e4':
  Update simpleperf for LLVM rebase to r256229.

8 years agoUpdate simpleperf for LLVM rebase to r256229.
Yabin Cui [Wed, 9 Mar 2016 22:48:52 +0000 (14:48 -0800)]
Update simpleperf for LLVM rebase to r256229.

Bug: 26987366

(cherry picked from commit 07cdff03ffb5e69d73979e8c2f8585314751ee17)

Change-Id: I15f2c3ad2f3cbc6239f3ffe42dbc09da2b703d3a

8 years agoMerge "Simpleperf: support reading symbols from .gnu_debugdata."
Yabin Cui [Sat, 19 Mar 2016 01:18:16 +0000 (01:18 +0000)]
Merge "Simpleperf: support reading symbols from .gnu_debugdata."
am: ea4a5a4

* commit 'ea4a5a44c8748a7763fe64446b7da54dc69ca4fe':
  Simpleperf: support reading symbols from .gnu_debugdata.

8 years agoMerge "Simpleperf: support reading symbols from .gnu_debugdata."
Yabin Cui [Sat, 19 Mar 2016 00:38:36 +0000 (00:38 +0000)]
Merge "Simpleperf: support reading symbols from .gnu_debugdata."

8 years agoMerge "Simpleperf: insert testdata into simpleperf_unit_test for target build."
Yabin Cui [Sat, 19 Mar 2016 00:13:51 +0000 (00:13 +0000)]
Merge "Simpleperf: insert testdata into simpleperf_unit_test for target build."
am: 87f9b00

* commit '87f9b00d59998a64729138aadf8898a8bb431151':
  Simpleperf: insert testdata into simpleperf_unit_test for target build.

8 years agoMerge "Simpleperf: remove dependency on global current_arch."
Yabin Cui [Sat, 19 Mar 2016 00:13:50 +0000 (00:13 +0000)]
Merge "Simpleperf: remove dependency on global current_arch."
am: 87c5e41

* commit '87c5e41fd5b384a40d8717d4cd418b82cd74f7c4':
  Simpleperf: remove dependency on global current_arch.

8 years agoMerge "Simpleperf: insert testdata into simpleperf_unit_test for target build."
Yabin Cui [Sat, 19 Mar 2016 00:03:51 +0000 (00:03 +0000)]
Merge "Simpleperf: insert testdata into simpleperf_unit_test for target build."

8 years agoMerge "Simpleperf: remove dependency on global current_arch."
Yabin Cui [Sat, 19 Mar 2016 00:03:37 +0000 (00:03 +0000)]
Merge "Simpleperf: remove dependency on global current_arch."

8 years agoSimpleperf: support reading symbols from .gnu_debugdata.
Yabin Cui [Fri, 18 Mar 2016 04:18:53 +0000 (21:18 -0700)]
Simpleperf: support reading symbols from .gnu_debugdata.

As in https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html,
elf files can store mini debug information in .gnu_debugdata.

Bug: 27744639

Change-Id: If4a53a4a1332824388ee309ac63a008dc5cf8d5c

8 years agoSimpleperf: remove dependency on global current_arch.
Yabin Cui [Fri, 18 Mar 2016 19:30:31 +0000 (12:30 -0700)]
Simpleperf: remove dependency on global current_arch.

When running unit tests on arm64 devices:
[OK] ReportCommandTest.dwarf_callgraph
[OK] record_cmd.dwarf_callchain_sampling.
ERROR: can't unwind data recorded on a different architecture.

It is because ReportCommandtest.dwarf_callgraph opens a perf.data
recorded on x86_64, and changes current_arch. It causes a problem when
the test record_cmd.dwarf_callchain_sampling calls libbacktrace built
on aarch64. Athough it doesn't make the test fail, we should fix this.

Change-Id: I2cd70369a769ef2199cab2302b8b824369be0907

8 years agoSimpleperf: insert testdata into simpleperf_unit_test for target build.
Yabin Cui [Fri, 18 Mar 2016 20:48:42 +0000 (13:48 -0700)]
Simpleperf: insert testdata into simpleperf_unit_test for target build.

Before this change, we need to download testdata/ to device to run
unit tests. By inserting testdata into unit test elf file, we no
longer need to dowload testdata/ or add -t option to run unit tests
on device.

Change-Id: I888def6d55f893768dd8917083eead869b78c24b

8 years agoMerge "Update simpleperf for LLVM rebase to r256229."
Yabin Cui [Fri, 18 Mar 2016 22:30:39 +0000 (22:30 +0000)]
Merge "Update simpleperf for LLVM rebase to r256229."
am: 96fdd92

* commit '96fdd9223bf3d35f0b559fc6582271ffea81cd02':
  Update simpleperf for LLVM rebase to r256229.

8 years agoMerge "Update simpleperf for LLVM rebase to r256229."
Pirama Arumuga Nainar [Fri, 18 Mar 2016 21:54:50 +0000 (21:54 +0000)]
Merge "Update simpleperf for LLVM rebase to r256229."

8 years agoAdded -q flag to ignore errors.
Felipe Leme [Thu, 17 Mar 2016 23:00:32 +0000 (23:00 +0000)]
Added -q flag to ignore errors.
am: a5aa8f9

* commit 'a5aa8f9583aec9fcfba38161cb31b6ae2b588313':
  Added -q flag to ignore errors.

8 years agoAdded -q flag to ignore errors.
Felipe Leme [Thu, 17 Mar 2016 21:56:34 +0000 (14:56 -0700)]
Added -q flag to ignore errors.

dumpstate calls showmap for each pid, and since most of them are empty,
it ends up polluting logcat with entries like:

03-17 14:49:05.974 12160 12160 E dumpstate: command '/system/xbin/su
root showmap -q 9867' failed: No such file or directory

BUG: 26906985
Change-Id: I18d86adefe3f4b248f672732460d1145103e5828

8 years agoMerge "Correct aslr_test minimum arm value."
dcashman [Wed, 16 Mar 2016 18:59:54 +0000 (18:59 +0000)]
Merge "Correct aslr_test minimum arm value."
am: 47ea8ee

* commit '47ea8eeab1ad047432fcecf5b9abb2d015ee66ed':
  Correct aslr_test minimum arm value.

8 years agoMerge "Correct aslr_test minimum arm value."
Daniel Cashman [Wed, 16 Mar 2016 16:07:46 +0000 (16:07 +0000)]
Merge "Correct aslr_test minimum arm value."

8 years agoCorrect aslr_test minimum arm value.
dcashman [Tue, 15 Mar 2016 22:14:20 +0000 (15:14 -0700)]
Correct aslr_test minimum arm value.

Default mmap_rnd_bits value is now equal to the maximum supported (16)
on arm, not the minimum, 8.  Adjust the test criteria to match this.

(cherry-pick of internal commit: 6d7b862b59743b64500b9b079c90cc50d556ecdf)

Bug: 27680571
Change-Id: I2017bf3b77b9513b0c8a797b6fe3dc6aef8ef431

8 years agoCorrect aslr_test minimum arm value.
dcashman [Tue, 15 Mar 2016 22:59:36 +0000 (22:59 +0000)]
Correct aslr_test minimum arm value.
am: 6d7b862b59

* commit '6d7b862b59743b64500b9b079c90cc50d556ecdf':
  Correct aslr_test minimum arm value.

8 years agoCorrect aslr_test minimum arm value.
dcashman [Tue, 15 Mar 2016 22:14:20 +0000 (15:14 -0700)]
Correct aslr_test minimum arm value.

Default mmap_rnd_bits value is now equal to the maximum supported (16)
on arm, not the minimum, 8.  Adjust the test criteria to match this.

Bug: 27680571
Change-Id: I16f2c3120c92ca9ea537f445ba24ebd8172d613f

8 years agoMerge "Migrate aslr test to gtest."
dcashman [Mon, 14 Mar 2016 18:06:20 +0000 (18:06 +0000)]
Merge "Migrate aslr test to gtest."
am: 9da1eef4a4

* commit '9da1eef4a48a58e41252a2837e0caeadd65033bc':
  Migrate aslr test to gtest.

8 years agoMerge "Migrate aslr test to gtest."
Daniel Cashman [Mon, 14 Mar 2016 17:55:19 +0000 (17:55 +0000)]
Merge "Migrate aslr test to gtest."

8 years agoMerge "Migrate aslr test to gtest." into nyc-dev
dcashman [Mon, 14 Mar 2016 17:48:33 +0000 (17:48 +0000)]
Merge "Migrate aslr test to gtest." into nyc-dev
am: b098491ac6

* commit 'b098491ac69154f8633d11c0fc4a50429d374a4a':
  Migrate aslr test to gtest.

8 years agoMigrate aslr test to gtest.
dcashman [Mon, 7 Mar 2016 18:32:05 +0000 (10:32 -0800)]
Migrate aslr test to gtest.

Create tests which test the values of mmap_rnd_bits, and
mmap_rnd_compat_bits, if applicable, and verify that the address space
is randomized as expected given the provided values.

Also add a pair of tests to CTS that enforce that the observed entropy
is at least as high as a designated value.  That value will start as our
default value, which also corresponds to the maximum value of some
configurations.

Packaging of executables along with a nativetest suite is not supported,
so add a dummy nativetest suite, scrape_mmap_addr, which ensure that the
executables are present along with the given tests at predictable
locations.

(cherry-pick of internal commit: d661642651a6689c76d3f575b4b5dbf04e6b75bd)

Bug: 26512380
Change-Id: I8c4a68f3d10a57f9a51bdc6084df622cf8517b51

8 years agoMerge "Migrate aslr test to gtest." into nyc-dev
Daniel Cashman [Mon, 14 Mar 2016 17:38:58 +0000 (17:38 +0000)]
Merge "Migrate aslr test to gtest." into nyc-dev

8 years agoMerge "simpleperf: check if dwarf callgraph is supported by kernel before testing."
Yabin Cui [Thu, 10 Mar 2016 22:51:22 +0000 (22:51 +0000)]
Merge "simpleperf: check if dwarf callgraph is supported by kernel before testing."
am: 3fa224edef

* commit '3fa224edef81d5bccc6522c8340118364e29b673':
  simpleperf: check if dwarf callgraph is supported by kernel before testing.

8 years agoMerge "simpleperf: check if dwarf callgraph is supported by kernel before testing...
Yabin Cui [Thu, 10 Mar 2016 22:16:37 +0000 (22:16 +0000)]
Merge "simpleperf: check if dwarf callgraph is supported by kernel before testing." into nyc-dev
am: ad64c38f56

* commit 'ad64c38f5652c8557c3f61953a92c457da3e82d4':
  simpleperf: check if dwarf callgraph is supported by kernel before testing.

8 years agoMerge "Avoid bogus warnings by branching on whether dir is empty." into nyc-dev
Paul Crowley [Thu, 10 Mar 2016 22:16:37 +0000 (22:16 +0000)]
Merge "Avoid bogus warnings by branching on whether dir is empty." into nyc-dev
am: 2435622d30

* commit '2435622d30695d8f51cb203f2637643ea14170e5':
  Avoid bogus warnings by branching on whether dir is empty.

8 years agoCrypto performance benchmark
Srinath Sridharan [Thu, 10 Mar 2016 22:16:36 +0000 (22:16 +0000)]
Crypto performance benchmark
am: 9627638747

* commit '9627638747d7418dc3be9617a99a33c688e3bf87':
  Crypto performance benchmark

8 years agoMerge "simpleperf: check if dwarf callgraph is supported by kernel before testing...
Yabin Cui [Thu, 10 Mar 2016 22:04:06 +0000 (22:04 +0000)]
Merge "simpleperf: check if dwarf callgraph is supported by kernel before testing." into nyc-dev

8 years agoMerge "Avoid bogus warnings by branching on whether dir is empty." into nyc-dev
Paul Crowley [Thu, 10 Mar 2016 22:02:45 +0000 (22:02 +0000)]
Merge "Avoid bogus warnings by branching on whether dir is empty." into nyc-dev

8 years agosimpleperf: check if dwarf callgraph is supported by kernel before testing.
Yabin Cui [Thu, 10 Mar 2016 19:49:57 +0000 (11:49 -0800)]
simpleperf: check if dwarf callgraph is supported by kernel before testing.

Move inclusion of poll.h from header files to source files,
as event_selection_set.h is used by cmd_report_test.cpp, which
can be built on windows.

Bug: 27590546
Change-Id: Ic6b141a93d96610f911ab52da1d927b7f619ccb2
(cherry picked from commit 19e6b6d372a1244189dc2df62313085a61ed1a80)

8 years agoMerge "simpleperf: check if dwarf callgraph is supported by kernel before testing."
Yabin Cui [Thu, 10 Mar 2016 21:53:09 +0000 (21:53 +0000)]
Merge "simpleperf: check if dwarf callgraph is supported by kernel before testing."

8 years agosimpleperf: check if dwarf callgraph is supported by kernel before testing.
Yabin Cui [Thu, 10 Mar 2016 19:49:57 +0000 (11:49 -0800)]
simpleperf: check if dwarf callgraph is supported by kernel before testing.

Move inclusion of poll.h from header files to source files,
as event_selection_set.h is used by cmd_report_test.cpp, which
can be built on windows.

Bug: 27590546
Change-Id: Ic6b141a93d96610f911ab52da1d927b7f619ccb2

8 years agoCrypto performance benchmark
Srinath Sridharan [Thu, 10 Mar 2016 18:22:30 +0000 (10:22 -0800)]
Crypto performance benchmark

This reverts commit 39087e3740095e1851b0fcf1988c1c0881a208b6. And adds
the respective fix.

Change-Id: I1f70211c77f892c6252cf5e05e5e52d6c63e2293

8 years agoAvoid bogus warnings by branching on whether dir is empty.
Paul Crowley [Thu, 10 Mar 2016 20:44:14 +0000 (12:44 -0800)]
Avoid bogus warnings by branching on whether dir is empty.

If the directory is empty, we try to set policy, otherwise we get it.

Bug: 27596572
Change-Id: I127534b7e43c95cf259f001b0acba255a117f76e

8 years agoMerge "Revert "Crypto performance benchmark"" into nyc-dev
Srinath Sridharan [Thu, 10 Mar 2016 01:42:52 +0000 (01:42 +0000)]
Merge "Revert "Crypto performance benchmark"" into nyc-dev
am: de1e5fc187

* commit 'de1e5fc187f1fa6037f65a3d59805b23b8836660':
  Revert "Crypto performance benchmark"

8 years agoMerge "Revert "Crypto performance benchmark"" into nyc-dev
Srinath Sridharan [Thu, 10 Mar 2016 01:39:04 +0000 (01:39 +0000)]
Merge "Revert "Crypto performance benchmark"" into nyc-dev

8 years agoRevert "Crypto performance benchmark"
Srinath Sridharan [Thu, 10 Mar 2016 01:33:15 +0000 (01:33 +0000)]
Revert "Crypto performance benchmark"

This reverts commit 00652d85b0228bf70905a4934e88a38471832ac2.

Change-Id: I550ebd2e25c275a03e4f93437e6f12f83e232c7f

8 years agoMerge "Crypto performance benchmark" into nyc-dev
Srinath Sridharan [Thu, 10 Mar 2016 00:49:14 +0000 (00:49 +0000)]
Merge "Crypto performance benchmark" into nyc-dev
am: 89e7f9748c

* commit '89e7f9748cf3fcb5360357dd44ed4ec6639f6d4c':
  Crypto performance benchmark

8 years agoMigrate aslr test to gtest.
dcashman [Mon, 7 Mar 2016 18:32:05 +0000 (10:32 -0800)]
Migrate aslr test to gtest.

Create tests which test the values of mmap_rnd_bits, and
mmap_rnd_compat_bits, if applicable, and verify that the address space
is randomized as expected given the provided values.

Also add a pair of tests to CTS that enforce that the observed entropy
is at least as high as a designated value.  That value will start as our
default value, which also corresponds to the maximum value of some
configurations.

Packaging of executables along with a nativetest suite is not supported,
so add a dummy nativetest suite, scrape_mmap_addr, which ensure that the
executables are present along with the given tests at predictable
locations.

Bug: 26512380
Change-Id: Ib1202984f9b98c503b8d3bc2c2248a9d06940845

8 years agoMerge "Crypto performance benchmark" into nyc-dev
Srinath Sridharan [Thu, 10 Mar 2016 00:38:05 +0000 (00:38 +0000)]
Merge "Crypto performance benchmark" into nyc-dev

8 years agoCrypto performance benchmark
Srinath Sridharan [Tue, 8 Mar 2016 22:54:28 +0000 (14:54 -0800)]
Crypto performance benchmark

Before running the benchmark do the following:

Lock the frequency of the core by setting scaling_min_freq=scaling_max_freq=DESIRED_FREQ

Change-Id: Ic291ae4db6a202ea2e968dc6823c61d352eb272d

8 years agoUpdate simpleperf for LLVM rebase to r256229.
Yabin Cui [Wed, 9 Mar 2016 22:48:52 +0000 (14:48 -0800)]
Update simpleperf for LLVM rebase to r256229.

Bug: 26987366
Change-Id: I55b0ab1214e0365d523eff3c8c1db2aa30effd18

8 years agoMerge changes from topic \'incremental-ext4\' into nyc-dev
Mohamad Ayyash [Wed, 9 Mar 2016 21:07:52 +0000 (21:07 +0000)]
Merge changes from topic \'incremental-ext4\' into nyc-dev
am: e958ab33e6

* commit 'e958ab33e69493770e458a45677d7962ca58dd61':
  make_ext4_fs: Clean up a few error messages
  Introduce blk_alloc_to_base_fs utility

8 years agoMerge changes from topic 'incremental-ext4' into nyc-dev
Mohamad Ayyash [Wed, 9 Mar 2016 20:56:18 +0000 (20:56 +0000)]
Merge changes from topic 'incremental-ext4' into nyc-dev

* changes:
  make_ext4_fs: Clean up a few error messages
  Introduce blk_alloc_to_base_fs utility

8 years agoMerge "su: Segmentation Fault on unknown numerical uids"
Mark Salyzyn [Wed, 9 Mar 2016 19:31:53 +0000 (19:31 +0000)]
Merge "su: Segmentation Fault on unknown numerical uids"
am: 5ecd3d5fa4

* commit '5ecd3d5fa48c5c4467a040bebcbd0aaa5f83a337':
  su: Segmentation Fault on unknown numerical uids

8 years agocts: android.kernel.config
Mark Salyzyn [Wed, 9 Mar 2016 18:32:42 +0000 (18:32 +0000)]
cts: android.kernel.config
am: 0a34d46204

* commit '0a34d462046a77c7649a40226b06c2232a547635':
  cts: android.kernel.config

8 years agosu: Segmentation Fault on unknown numerical uids
Mark Salyzyn [Wed, 9 Mar 2016 18:32:42 +0000 (18:32 +0000)]
su: Segmentation Fault on unknown numerical uids
am: 75dbde9b57

* commit '75dbde9b57c0bb76927ad16b4f1b65aa0e9eb5f4':
  su: Segmentation Fault on unknown numerical uids

8 years agocts: android.kernel.config
Mark Salyzyn [Thu, 11 Feb 2016 22:20:24 +0000 (14:20 -0800)]
cts: android.kernel.config

(cherry pick from commit 67522d05df61e7757e1ff08ba0b7ad0f19406ec0)

- Added plumbing for CTS tests
- Divide Required into CTS and gTest and
  Recommended into gTest
- Added check of CONFIG_ANDROID_LOGGER
- test typically completes after 3ms

Bug: 19173869
Change-Id: I13a92081bfa9b53abb69923b160b82e3be2142ab

8 years agosu: Segmentation Fault on unknown numerical uids
Mark Salyzyn [Tue, 8 Mar 2016 21:36:00 +0000 (13:36 -0800)]
su: Segmentation Fault on unknown numerical uids

(cherry pick from commit 45948f910c69d354cc3f7e81631445d83ebadc3d)

e.g.

su 2999,2999,2999 echo hello
Segmentation Fault

return from getpwuid is NULL. KISS we opt to unset LOGNAME and USER

Change-Id: I7e7eddacfd6857f83482727eb5ec5c51b9170039

8 years agoMerge "su: Segmentation Fault on unknown numerical uids"
Mark Salyzyn [Wed, 9 Mar 2016 16:50:49 +0000 (16:50 +0000)]
Merge "su: Segmentation Fault on unknown numerical uids"

8 years agosu: Segmentation Fault on unknown numerical uids
Mark Salyzyn [Tue, 8 Mar 2016 21:36:00 +0000 (13:36 -0800)]
su: Segmentation Fault on unknown numerical uids

e.g.

su 2999,2999,2999 echo hello
Segmentation Fault

return from getpwuid is NULL. KISS we opt to unset LOGNAME and USER

Change-Id: I7e7eddacfd6857f83482727eb5ec5c51b9170039

8 years agocpustats: do not die in case a CPU is offlined
Thierry Strudel [Wed, 9 Mar 2016 00:45:52 +0000 (00:45 +0000)]
cpustats: do not die in case a CPU is offlined
am: e363c2db05

* commit 'e363c2db056fefd6b45d77a36a39de8fa85dad7b':
  cpustats: do not die in case a CPU is offlined

8 years agocpustats: do not die in case a CPU is offlined
Thierry Strudel [Tue, 13 Oct 2015 22:10:32 +0000 (15:10 -0700)]
cpustats: do not die in case a CPU is offlined

Change-Id: I05700266f1c7584ff51557b3e559654045379e87

8 years agoMerge "cts: android.kernel.config"
Mark Salyzyn [Tue, 8 Mar 2016 23:57:23 +0000 (23:57 +0000)]
Merge "cts: android.kernel.config"
am: 07efeb6e2d

* commit '07efeb6e2de34fc52da417a56449d44fd9cb9ca7':
  cts: android.kernel.config

8 years agoMerge "cts: android.kernel.config"
Mark Salyzyn [Tue, 8 Mar 2016 23:48:05 +0000 (23:48 +0000)]
Merge "cts: android.kernel.config"

8 years agoMerge "Add support for filtering based on app name to pagecache." into nyc-dev
Tim Murray [Tue, 8 Mar 2016 22:40:58 +0000 (22:40 +0000)]
Merge "Add support for filtering based on app name to pagecache." into nyc-dev
am: affcb23f28

* commit 'affcb23f280cae4d6c73388e98ec52e46a25dec3':
  Add support for filtering based on app name to pagecache.

8 years agoMerge "Add support for filtering based on app name to pagecache." into nyc-dev
Tim Murray [Tue, 8 Mar 2016 22:19:36 +0000 (22:19 +0000)]
Merge "Add support for filtering based on app name to pagecache." into nyc-dev

8 years agosimpleperf: support building cts test.
Yabin Cui [Tue, 8 Mar 2016 00:19:04 +0000 (00:19 +0000)]
simpleperf: support building cts test.
am: b7724264f7

* commit 'b7724264f7b0119277ef6d205d55687e393bbaf9':
  simpleperf: support building cts test.

8 years agosimpleperf: support building cts test.
Yabin Cui [Wed, 2 Mar 2016 21:56:28 +0000 (13:56 -0800)]
simpleperf: support building cts test.

1. build cts test libraries.
2. change tests to use tmpfile instead of perf.data.
3. support extracting testdata from cts test file.

Bug: 27387280
Change-Id: I7c5db77f3157d586d0c9beb446b247626e7cce36
(cherry picked from commit be7ec66eaa4f995bd9068637f7c7d5718173922c)

8 years agosimpleperf: fix mac build.
Yabin Cui [Mon, 7 Mar 2016 21:33:01 +0000 (21:33 +0000)]
simpleperf: fix mac build.
am: 08663eb56b

* commit '08663eb56b17e5ce1a9b0030d5a965306de0e3ae':
  simpleperf: fix mac build.

8 years agosimpleperf: port cmd_report_test to nonlinux.
Yabin Cui [Mon, 7 Mar 2016 21:32:51 +0000 (21:32 +0000)]
simpleperf: port cmd_report_test to nonlinux.
am: 025745a017  -s ours

* commit '025745a017b893797c1532da704edd0a2854cb14':
  simpleperf: port cmd_report_test to nonlinux.

8 years agosimpleperf: fix build by removing off64_t.
Yabin Cui [Mon, 7 Mar 2016 21:21:17 +0000 (21:21 +0000)]
simpleperf: fix build by removing off64_t.
am: cc9bc34039

* commit 'cc9bc34039544d2dcca7168958a80828bac8d089':
  simpleperf: fix build by removing off64_t.

8 years agosimpleperf: report symbols of native libraries in apk file.
Yabin Cui [Mon, 7 Mar 2016 21:21:09 +0000 (21:21 +0000)]
simpleperf: report symbols of native libraries in apk file.
am: 7288501a66  -s ours

* commit '7288501a660ce2616539e8a963185d2f3c679729':
  simpleperf: report symbols of native libraries in apk file.

8 years agosimpleperf: accept different perf_attr sizes.
Yabin Cui [Mon, 7 Mar 2016 21:17:25 +0000 (21:17 +0000)]
simpleperf: accept different perf_attr sizes.
am: 9a1f829db0

* commit '9a1f829db03dc9ad9701b4ddae1267d3140e84f4':
  simpleperf: accept different perf_attr sizes.

8 years agosimpleperf: port read_apk and read_apk/read_elf tests to nonlinux.
Yabin Cui [Mon, 7 Mar 2016 21:17:15 +0000 (21:17 +0000)]
simpleperf: port read_apk and read_apk/read_elf tests to nonlinux.
am: 0bd2a5cef3  -s ours

* commit '0bd2a5cef3cf787552c55f643631b6ba77637711':
  simpleperf: port read_apk and read_apk/read_elf tests to nonlinux.

8 years agosimpleperf: fix mac build.
Yabin Cui [Thu, 25 Feb 2016 19:02:30 +0000 (11:02 -0800)]
simpleperf: fix mac build.

I forgot that mac doesn't support whole static library. Change to static library
to avoid hiting the same problem in the future.

Bug: 26962895
Change-Id: Ia8e26c2e1cf7621391e00e100b22b7ed451dfa32
(cherry picked from commit ff7465c896ab90c162cbcf2b141c4cdd79bf437f)

8 years agosimpleperf: port cmd_report_test to nonlinux.
Yabin Cui [Wed, 24 Feb 2016 05:41:03 +0000 (21:41 -0800)]
simpleperf: port cmd_report_test to nonlinux.

And fix one build_id bug introduced by previous patch.

Bug: 26962895

Change-Id: Ibb8bd6ec77ee862bb01c26342d3b3024468e75b2
(cherry picked from commit 6e51bef9aa101307523946df301ca90215d0ee82)

8 years agosimpleperf: fix build by removing off64_t.
Yabin Cui [Thu, 18 Feb 2016 20:11:40 +0000 (12:11 -0800)]
simpleperf: fix build by removing off64_t.

Bug: 26962895
Change-Id: I211bacc22c2f6b6b24c639365c706e93d66ce4ac
(cherry picked from commit 41e32ca272f474d35a84a6e7c7f0a28c3160abc3)

8 years agosimpleperf: report symbols of native libraries in apk file.
Yabin Cui [Mon, 15 Feb 2016 03:18:02 +0000 (19:18 -0800)]
simpleperf: report symbols of native libraries in apk file.

Changes included:
1. provide interface in read_apk.h to read build id and symbols.
2. report symbols of native libraries in apk file.
3. refactor code in read_elf.cpp and read_apk.cpp.
4. add verbose log.
5. add -o report_file_name option for report command.
6. add corresponding unit tests.

Bug: 26962895
Change-Id: I0d5398996e0c29dba4a6f5226692b758ca096bbd
(cherry picked from commit b1a885b014540a2f7798b5a35ea0f0ec150d93ee)

8 years agosimpleperf: accept different perf_attr sizes.
Yabin Cui [Tue, 16 Feb 2016 20:15:31 +0000 (12:15 -0800)]
simpleperf: accept different perf_attr sizes.

The size of perf_attr can be increased as new features are added. And
we can accept different perf_attr sizes in perf.data, and ignore
unknown features.

Bug: 26962895

Change-Id: Ia42617f92acb3ab6ae56eb91aa0d7b73efc0b8af
(cherry picked from commit dd2ae2878b7e5ac1754da55a08cbcdacadf53d78)

8 years agosimpleperf: port read_apk and read_apk/read_elf tests to nonlinux.
Yabin Cui [Sat, 6 Feb 2016 01:32:08 +0000 (17:32 -0800)]
simpleperf: port read_apk and read_apk/read_elf tests to nonlinux.

Also make following small changes:
1. Manage testdata files like libziparchive.
2. Replace StringToPid() with android::base::ParseInt().
3. Add tests in read_elf_test.

Bug: 26962895

Change-Id: I6603e9f3cea3a013e2618ea003790d102739f843
(cherry picked from commit 569f64afd3db2b43003978765b833669f99477d2)

8 years agoMerge "Fix static analyzer warnings." am: 5667da92fd
Chih-Hung Hsieh [Fri, 4 Mar 2016 19:58:38 +0000 (19:58 +0000)]
Merge "Fix static analyzer warnings." am: 5667da92fd
am: be20231f03

* commit 'be20231f033abe912cde88c3d6e8ef41d33cdff6':
  Fix static analyzer warnings.

8 years agoMerge "Fix static analyzer warnings."
Chih-Hung Hsieh [Fri, 4 Mar 2016 19:56:37 +0000 (19:56 +0000)]
Merge "Fix static analyzer warnings."
am: 5667da92fd

* commit '5667da92fd874c30eff40eae488ae6e05dba9d31':
  Fix static analyzer warnings.

8 years agoMerge "Fix static analyzer warnings."
Chih-hung Hsieh [Fri, 4 Mar 2016 19:38:44 +0000 (19:38 +0000)]
Merge "Fix static analyzer warnings."

8 years agoFix static analyzer warnings.
Chih-Hung Hsieh [Fri, 4 Mar 2016 18:14:32 +0000 (10:14 -0800)]
Fix static analyzer warnings.

* Add missing free.
* Remove unused local variable.

BUG: 27120398
Change-Id: I84d32fcee5615a428bd1de6673a6f15036736998

8 years agoMerge "postinst: Update postinstall_example documentation." am: 9be329ae32
Alex Deymo [Fri, 4 Mar 2016 05:47:24 +0000 (05:47 +0000)]
Merge "postinst: Update postinstall_example documentation." am: 9be329ae32
am: 11711d63fa

* commit '11711d63fa195ada77ec9f95b498136d5b64f464':
  postinst: Update postinstall_example documentation.