OSDN Git Service

android-x86/system-extras.git
7 years agoMerge \"simpleperf: restore perf_harden after simpleperf cts test.\" into nyc-dev
Yabin Cui [Sat, 11 Jun 2016 03:58:28 +0000 (03:58 +0000)]
Merge \"simpleperf: restore perf_harden after simpleperf cts test.\" into nyc-dev
am: 4d9e9c66fb

Change-Id: I39119b7d227b946e294b40bfd6805d886d92fa8b

7 years agoMerge "simpleperf: restore perf_harden after simpleperf cts test." into nyc-dev
Yabin Cui [Sat, 11 Jun 2016 03:53:11 +0000 (03:53 +0000)]
Merge "simpleperf: restore perf_harden after simpleperf cts test." into nyc-dev

7 years agosimpleperf: restore perf_harden after simpleperf cts test.
Yabin Cui [Fri, 10 Jun 2016 19:15:11 +0000 (12:15 -0700)]
simpleperf: restore perf_harden after simpleperf cts test.

Bug: 29264324
Change-Id: Ia78ef924f049630968d222729cf3c1f378105b8a
(cherry picked from commit 5896132e00c7e49d2468d7ebd5372654df29b872)

7 years agosimpleperf: check perf event limit.
Yabin Cui [Sat, 11 Jun 2016 01:53:04 +0000 (01:53 +0000)]
simpleperf: check perf event limit.
am: 92c688b1f7

Change-Id: Ia53e2043e66f91a791e97353e7937ef1a4050d69

7 years agosimpleperf: check perf event limit.
Yabin Cui [Wed, 1 Jun 2016 22:39:39 +0000 (15:39 -0700)]
simpleperf: check perf event limit.

The property security.perf_harden is added in https://android-review.googlesource.com/#/c/233736/5. And simpleperf needs to notice that.

Bug: 29054680
Change-Id: I5f1593f5b389d182a56c4bf3bd438a1dc2b66686
(cherry picked from commit ebf79f3a65c81ef0f8cd7a3b875771be88157fcc)

7 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Tue, 7 Jun 2016 07:04:36 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

7 years agoDo not build multinetwork tools when targeting the PDK
Erik Kline [Tue, 7 Jun 2016 04:03:04 +0000 (04:03 +0000)]
Do not build multinetwork tools when targeting the PDK
am: 600c6341e6

* commit '600c6341e62c165c60f526174d965cc7f1b30c38':
  Do not build multinetwork tools when targeting the PDK

Change-Id: I1475ee586faf10942e805c51290d83aa1998cb5e

7 years agoDo not build multinetwork tools when targeting the PDK
Erik Kline [Mon, 6 Jun 2016 21:57:12 +0000 (06:57 +0900)]
Do not build multinetwork tools when targeting the PDK

Bug: 29071416
Change-Id: Ie39cad3151907aabbf523895d6cde37b82ff29a2

7 years agolibfec: return raw and corrected verity metadata signatures
Sami Tolvanen [Tue, 7 Jun 2016 00:05:42 +0000 (00:05 +0000)]
libfec: return raw and corrected verity metadata signatures
am: 65cbaeb020

* commit '65cbaeb020b209f3d75d594ebbe49a609dd3c7e7':
  libfec: return raw and corrected verity metadata signatures

Change-Id: I77bb88a549c2da0ed69f36d80ca6d93ed91a163b

7 years agolibfec: return raw and corrected verity metadata signatures
Sami Tolvanen [Fri, 3 Jun 2016 20:56:07 +0000 (13:56 -0700)]
libfec: return raw and corrected verity metadata signatures

Since it's not possible for libfec to identify whether the signature
field was successfully corrected, return both and allow the caller to
validate either signature.

Bug: 28943429
Change-Id: Ie913c21ba1d07d6df4c6feeb7226b2ec963f4d19

7 years agoMerge "Introduce squashfs compression threshold" into nyc-mr1-dev
Mohamad Ayyash [Mon, 6 Jun 2016 15:37:43 +0000 (15:37 +0000)]
Merge "Introduce squashfs compression threshold" into nyc-mr1-dev

7 years agoIntroduce squashfs compression threshold
Mohamad Ayyash [Sat, 4 Jun 2016 01:55:16 +0000 (18:55 -0700)]
Introduce squashfs compression threshold

If we can't beat that compression ratio for a single block then we leave
it uncompressed. The choice of the threshold depends on the cost of I/O
in a specific device which is determined from block I/O speed and CPU
speed.

BUG: 29058965
Change-Id: I8d17a4551c7d00ddb85687381b7cb0d6c60babf6
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
7 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Tue, 31 May 2016 07:03:53 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev

7 years agoAdd multinetwork debugging tools, dnschk and httpurl
Erik Kline [Tue, 31 May 2016 01:41:50 +0000 (01:41 +0000)]
Add multinetwork debugging tools, dnschk and httpurl
am: 871e63d9b7

* commit '871e63d9b7e584bc398dd4aa983cf561a5e8394e':
  Add multinetwork debugging tools, dnschk and httpurl

Change-Id: Iffea34208fb19daa3b1f2c015364dff3a6542498

7 years agoAdd multinetwork debugging tools, dnschk and httpurl
Erik Kline [Fri, 22 Jan 2016 00:07:44 +0000 (09:07 +0900)]
Add multinetwork debugging tools, dnschk and httpurl

Bug: 19537384
Bug: 27199751
Bug: 28719525
Change-Id: Ie983ec12ac6c550fa76c89cd44343220688a99b4

7 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 29 May 2016 07:06:00 +0000 (00:06 -0700)]
merge in nyc-release history after reset to nyc-dev

7 years agoANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67 am: 4b7f0...
Zhengyin Qian [Fri, 27 May 2016 18:11:07 +0000 (18:11 +0000)]
ANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67 am: 4b7f0b27a2
am: 27879586ff

* commit '27879586fff26d5ac1864f57bf441a39f8ab9315':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: Ib39181c0fd9901619a8a300f8a358e8918471e5b

7 years agoANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33...
Zhengyin Qian [Fri, 27 May 2016 18:11:05 +0000 (18:11 +0000)]
ANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33 am: ecb5849a5d
am: 90ce7ac45f

* commit '90ce7ac45f183aad12151d691f82a4a9c9a78f2f':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: I31faaec8cfcc377ae4f7fc12cc94e634503df04a

7 years agoANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81 am: c33bbcd4c7
Zhengyin Qian [Fri, 27 May 2016 18:11:03 +0000 (18:11 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81 am: c33bbcd4c7
am: 05d982d4ed

* commit '05d982d4edde37937c9a6fdb97e36a492e18f7d5':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: If7ad5c8aa7fa2b1314ed33ad0eb4f29d82ad4fa5

7 years agoANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67
Zhengyin Qian [Fri, 27 May 2016 17:58:00 +0000 (17:58 +0000)]
ANRdaemon: add README and a bash script to easily get trace. am: 9e90477a67
am: 4b7f0b27a2

* commit '4b7f0b27a267e5e10894bbf438dec15e534e4cc4':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: I0ea20dd173cfaef70df4d07672810ca233fcb5f2

7 years agoANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33
Zhengyin Qian [Fri, 27 May 2016 17:57:56 +0000 (17:57 +0000)]
ANRdaemon: add a few new trace options and poke all userland services am: 5b42895d33
am: ecb5849a5d

* commit 'ecb5849a5d8cc59828c66910f2096ac44e455ca3':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: Id35a4a5d9ccab90c0ab661e835fcd55787efa09a

7 years agoANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81
Zhengyin Qian [Fri, 27 May 2016 17:57:53 +0000 (17:57 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01% am: 6d25c0bd81
am: c33bbcd4c7

* commit 'c33bbcd4c7a2700f28af68a8673bec71ec92aacc':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: Ib6cc29b5ac94344c9c7a9766b6548563da060888

7 years agoANRdaemon: add README and a bash script to easily get trace.
Zhengyin Qian [Fri, 27 May 2016 17:50:50 +0000 (17:50 +0000)]
ANRdaemon: add README and a bash script to easily get trace.
am: 9e90477a67

* commit '9e90477a678b5b5fa6ac6dd7e78770746d6c50bf':
  ANRdaemon: add README and a bash script to easily get trace.

Change-Id: Ief3f17421cc970a6b8676921b414d093c43ea880

7 years agoANRdaemon: add a few new trace options and poke all userland services
Zhengyin Qian [Fri, 27 May 2016 17:50:49 +0000 (17:50 +0000)]
ANRdaemon: add a few new trace options and poke all userland services
am: 5b42895d33

* commit '5b42895d33d72e74e3e3446e1d43fc541fbf404f':
  ANRdaemon: add a few new trace options and poke all userland services

Change-Id: Ic1eac97f0b965cc8f1e2b73f26456975150acb48

7 years agoANRdaemon: increase the CPU threshold resolution to 0.01%
Zhengyin Qian [Fri, 27 May 2016 17:50:48 +0000 (17:50 +0000)]
ANRdaemon: increase the CPU threshold resolution to 0.01%
am: 6d25c0bd81

* commit '6d25c0bd81eee66810339d5db3d1ecd48691d229':
  ANRdaemon: increase the CPU threshold resolution to 0.01%

Change-Id: I4b8feac7f8908943ae543f096e97896e50963697

7 years agoGet encryption mode for policy
Paul Lawrence [Tue, 24 May 2016 11:57:23 +0000 (04:57 -0700)]
Get encryption mode for policy

Get encryption mode from the file saved out in vold

Bug: 28905864
Change-Id: I472a5f3f5f348943a968373910de23ad1b20b138

7 years agoRevert "Add fileencrypted=software/ice to fstab options"
Paul Lawrence [Mon, 23 May 2016 22:03:40 +0000 (22:03 +0000)]
Revert "Add fileencrypted=software/ice to fstab options"

This reverts commit e8299d81a18d16b006019f37ec9d84921d5ff845.

Bug: 28905864
Change-Id: I077f1ce7337c7ff42be67fb7acbb80ce5ee9b9ba

7 years agoANRdaemon: add README and a bash script to easily get trace.
Zhengyin Qian [Mon, 9 May 2016 18:40:18 +0000 (11:40 -0700)]
ANRdaemon: add README and a bash script to easily get trace.

Bug: 28989601
Change-Id: I5c9b819a6b05003e68d26bfacccf4c539ddab7ae

7 years agoANRdaemon: add a few new trace options and poke all userland services
Zhengyin Qian [Tue, 26 Apr 2016 22:14:27 +0000 (15:14 -0700)]
ANRdaemon: add a few new trace options and poke all userland services

Bug: 28989601
Change-Id: Ic0fdb6e0601d5e0a285d42cd9fe1a3d8d6f86286

7 years agoANRdaemon: increase the CPU threshold resolution to 0.01%
Zhengyin Qian [Tue, 26 Apr 2016 18:57:16 +0000 (11:57 -0700)]
ANRdaemon: increase the CPU threshold resolution to 0.01%

Bug: 28989601
Change-Id: If2a305bd14e8bd7c22115cbca668bd7777d0e7d2

7 years agoDisable fragments for squashfs
Mohamad Ayyash [Tue, 24 May 2016 20:53:53 +0000 (13:53 -0700)]
Disable fragments for squashfs

BUG: 28920352
BUG: 22322817
Change-Id: I01c731202ef7a2450b5d1beca627a0158c9cc3b4
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
7 years agoAdd fileencrypted=software/ice to fstab options
Paul Lawrence [Thu, 5 May 2016 18:01:42 +0000 (11:01 -0700)]
Add fileencrypted=software/ice to fstab options

Bug: 28616054
Change-Id: I34257870d388993d168f6541ef51ee2ce1067a7e

7 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Wed, 11 May 2016 07:04:17 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

7 years agoFail with an error if we can\'t read the policy for encryption
Paul Crowley [Tue, 10 May 2016 22:17:23 +0000 (22:17 +0000)]
Fail with an error if we can\'t read the policy for encryption
am: 8d53b9619b

* commit '8d53b9619ba913354ffdb23acf0108f7445bb8bc':
  Fail with an error if we can't read the policy for encryption

Change-Id: I56e185bc0ee583d3a966e072dc34ed24af21ed39

7 years agoFail with an error if we can't read the policy for encryption
Paul Crowley [Wed, 27 Apr 2016 17:24:40 +0000 (10:24 -0700)]
Fail with an error if we can't read the policy for encryption

The absence of a policy reference in the unencrypted directory now
causes e4crypt_set_directory_policy to fail with an error. Callers
should call e4crypt_is_native (now moved into here) before calling this.

Bug: 28318405
Change-Id: I209292aba3abad3b19105c9afe2b84e8b3dd6874

7 years agoFix LOCAL_CPP_EXTENSION.
Ying Wang [Fri, 6 May 2016 02:41:11 +0000 (19:41 -0700)]
Fix LOCAL_CPP_EXTENSION.

Bug: 28622149
Change-Id: I785b9bdf90f77ed87c41542f3bd010c6b7356069
(cherry picked from commit 070b6199012eaf0c962f2ff4313551b13735198d)

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 2 May 2016 23:54:55 +0000 (16:54 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 2 May 2016 22:20:58 +0000 (15:20 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 1 May 2016 07:04:32 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agoIncr Ext4: Properly merge block_allocation lists
Mohamad Ayyash [Fri, 29 Apr 2016 19:19:03 +0000 (19:19 +0000)]
Incr Ext4: Properly merge block_allocation lists
am: f7124d6c95

* commit 'f7124d6c955c0453361b0ff47c5c94619e68087f':
  Incr Ext4: Properly merge block_allocation lists

Change-Id: I9d343f1762c183aaf4cacd9f7fd613af174896e3

8 years agoIncremental Ext4 Bug: prevent out of bound boundary allocations
Mohamad Ayyash [Fri, 29 Apr 2016 18:18:24 +0000 (18:18 +0000)]
Incremental Ext4 Bug: prevent out of bound boundary allocations
am: d2ed02a940

* commit 'd2ed02a94086e1221041bc59825add3d0a657e19':
  Incremental Ext4 Bug: prevent out of bound boundary allocations

Change-Id: I25c596b4db090b92ad475fb211e4b43a7dd2856b

8 years agoIncr Ext4: Properly merge block_allocation lists
Mohamad Ayyash [Fri, 29 Apr 2016 18:14:02 +0000 (11:14 -0700)]
Incr Ext4: Properly merge block_allocation lists

BUG: 27698960
Change-Id: Ia31b8319e0d1c8644ae1798116007a4b35c39e9b
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agoIncremental Ext4 Bug: prevent out of bound boundary allocations
Mohamad Ayyash [Fri, 29 Apr 2016 04:49:01 +0000 (21:49 -0700)]
Incremental Ext4 Bug: prevent out of bound boundary allocations

This happens around the boundary of block groups where a slightly
different block boundary is set based on size of filesystem which means
allocations based on a previous filesystem layout need to verify they're
not crossing that new bounday

BUG: 27698960
Change-Id: I45d444b4477f14f71e8f17144523505a7525b4e2
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Tue, 19 Apr 2016 07:04:33 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomake_ext4fs: Modify ext4 filesystem setup to speed up fsck
Mohamad Ayyash [Tue, 19 Apr 2016 01:06:38 +0000 (01:06 +0000)]
make_ext4fs: Modify ext4 filesystem setup to speed up fsck
am: dedf8f9705

* commit 'dedf8f9705df13e1fd07d3f754216d34725bb269':
  make_ext4fs: Modify ext4 filesystem setup to speed up fsck

Change-Id: If03e8e8ef5ea07d979e8049beaf8301cc590beb3

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 17 Apr 2016 07:04:38 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomake_ext4fs: Modify ext4 filesystem setup to speed up fsck
Mohamad Ayyash [Fri, 15 Apr 2016 02:43:31 +0000 (19:43 -0700)]
make_ext4fs: Modify ext4 filesystem setup to speed up fsck

1) Set EXT4_BG_INODE_UNINIT so fsck will skip scanning unused inodes
2) Use EXT4_FEATURE_RO_COMPAT_GDT_CSUM to enable group descriptor
checksums in filesystem which reduces overhead for fsck

BUG: 24747200
BUG: 28013112
Change-Id: I118ab26935442f452962b3a7c29c61acf76ad4d9
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agosimpleperf: use libbacktrace_offline static library.
Yabin Cui [Thu, 14 Apr 2016 04:28:54 +0000 (21:28 -0700)]
simpleperf: use libbacktrace_offline static library.

Device may not have libbacktrace_offline shared library, so always
using libbacktrace_offline static library.
Use simpleperf namespace to avoid conflicts with ThreadEntry in
libbacktrace.

Bug: 28152982
Change-Id: Ia2cdbee3b28556c790ccd7b061a801ed96f9b97c
(cherry picked from commit 040f7b4c62ce49f0af0746640e94d415764262cd)

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 11 Apr 2016 23:00:54 +0000 (16:00 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 11 Apr 2016 21:47:54 +0000 (14:47 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 11 Apr 2016 19:01:54 +0000 (12:01 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 11 Apr 2016 18:44:18 +0000 (11:44 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 10 Apr 2016 07:05:29 +0000 (00:05 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agoMerge "Remove canned_fs_config from ext4_utils" into nyc-dev
Mohamad Ayyash [Fri, 8 Apr 2016 17:39:05 +0000 (17:39 +0000)]
Merge "Remove canned_fs_config from ext4_utils" into nyc-dev

8 years agoRemove canned_fs_config from ext4_utils
Mohamad Ayyash [Fri, 8 Apr 2016 05:15:57 +0000 (22:15 -0700)]
Remove canned_fs_config from ext4_utils

It is now also used in mksquashfs so it was added to libcutils

BUG: 27467028
Change-Id: I81c87938d5b6b200a8ad817f0c64c5ca699f451c
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Thu, 7 Apr 2016 07:04:41 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agoUse default path for mmapPerf binaries
Julien Desprez [Wed, 6 Apr 2016 13:40:56 +0000 (14:40 +0100)]
Use default path for mmapPerf binaries

Change-Id: Ic6994988152942e162e0b977afe48144b4d8bb32

8 years agoConvert mmapPerf to google-benchmark
Julien Desprez [Tue, 5 Apr 2016 17:29:52 +0000 (18:29 +0100)]
Convert mmapPerf to google-benchmark

Bug: 24272167
Change-Id: I831c9d26495e77e041a9461ddbafc70d7d11f9b7

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Tue, 5 Apr 2016 07:04:03 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agoMake squashfs work on BSD and macOS
Jaewan Kim [Mon, 4 Apr 2016 15:32:24 +0000 (00:32 +0900)]
Make squashfs work on BSD and macOS

Change-Id: Ie025a3d70237a7a959203d8cd066d05acf9e94b2

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 4 Apr 2016 19:15:48 +0000 (12:15 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Mon, 4 Apr 2016 18:59:47 +0000 (11:59 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 3 Apr 2016 07:05:03 +0000 (00:05 -0700)]
merge in nyc-release history after reset to nyc-dev

8 years agoUse default path to put benchmark binaries
Julien Desprez [Thu, 31 Mar 2016 15:16:34 +0000 (16:16 +0100)]
Use default path to put benchmark binaries

In order to keep all the benchmark binaries in the same
output place.

Change-Id: I188f7933c230d8955905217b915899dd19e614bf

8 years agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Wed, 30 Mar 2016 07:04:45 +0000 (00:04 -0700)]
merge in nyc-release history after reset to 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
(cherry picked from commit 8f680f60dc800bec880c5c35bfbc1ac36165e1f3)

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: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 in nyc-release history after reset to nyc-dev
The Android Automerger [Tue, 29 Mar 2016 07:04:51 +0000 (00:04 -0700)]
merge in nyc-release history after reset to nyc-dev

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 agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 27 Mar 2016 07:05:47 +0000 (00:05 -0700)]
merge in nyc-release history after reset to nyc-dev

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 in nyc-release history after reset to nyc-dev
The Android Automerger [Wed, 23 Mar 2016 07:03:55 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev

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 agomerge in nyc-release history after reset to nyc-dev
The Android Automerger [Tue, 22 Mar 2016 07:03:46 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev

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 in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 20 Mar 2016 07:03:51 +0000 (00:03 -0700)]
merge in nyc-release history after reset to nyc-dev

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 in nyc-release history after reset to nyc-dev
The Android Automerger [Wed, 16 Mar 2016 07:02:27 +0000 (00:02 -0700)]
merge in nyc-release history after reset to nyc-dev

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 in nyc-release history after reset to nyc-dev
The Android Automerger [Tue, 15 Mar 2016 07:02:48 +0000 (00:02 -0700)]
merge in nyc-release history after reset to nyc-dev

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 in nyc-release history after reset to nyc-dev
The Android Automerger [Sun, 13 Mar 2016 08:03:20 +0000 (00:03 -0800)]
merge in nyc-release history after reset to 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 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 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 in nyc-release history after reset to nyc-dev
The Android Automerger [Thu, 10 Mar 2016 08:02:34 +0000 (00:02 -0800)]
merge in nyc-release history after reset to nyc-dev

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 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 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 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