OSDN Git Service

android-x86/system-extras.git
4 years agoMerge tag 'android-9.0.0_r48' into pie-x86 pie-x86 android-x86-9.0-r1 android-x86-9.0-r2
Chih-Wei Huang [Fri, 20 Sep 2019 06:02:16 +0000 (14:02 +0800)]
Merge tag 'android-9.0.0_r48' into pie-x86

Android 9.0.0 release 48

5 years agomkuserimg_mke2fs.sh: calculate size automatically
Chih-Wei Huang [Tue, 26 Feb 2019 13:59:39 +0000 (21:59 +0800)]
mkuserimg_mke2fs.sh: calculate size automatically

Add extra size by the $SRC_DIR size plus 10%.

5 years agoDisable the legacy su
Chih-Wei Huang [Mon, 19 May 2014 16:38:35 +0000 (00:38 +0800)]
Disable the legacy su

5 years agoSnap for 5073521 from 23fa94128f73282f62a410a37bdcd415265a62f7 to pi-qpr2-release
android-build-team Robot [Wed, 17 Oct 2018 03:15:18 +0000 (03:15 +0000)]
Snap for 5073521 from 23fa94128f73282f62a410a37bdcd415265a62f7 to pi-qpr2-release

Change-Id: Ifd25050c008de078a60bfd28a6654ef9d5d658d7

5 years agolibperfmgr: Update nodes in 2 passes
Wei Wang [Wed, 6 Jun 2018 18:20:36 +0000 (11:20 -0700)]
libperfmgr: Update nodes in 2 passes

Some nodes have dependency in each other: e.g cpufreq min/max

Bug: 116855734
Test: libperfmgr_test pass
Change-Id: Ica639b94e78d40fd0f21fb8f241dc1887a6756fc

5 years agoSnap for 4939496 from fa9ce0e4a240d50fde168369c2095d1e14241a97 to pi-qpr1-release
android-build-team Robot [Wed, 8 Aug 2018 03:09:11 +0000 (03:09 +0000)]
Snap for 4939496 from fa9ce0e4a240d50fde168369c2095d1e14241a97 to pi-qpr1-release

Change-Id: I07a2fb093806a835d82f109574cc774d4a487da5

5 years agoRevert "Support Speck encryption."
Greg Kaiser [Wed, 1 Aug 2018 19:47:48 +0000 (12:47 -0700)]
Revert "Support Speck encryption."

This is a partial revert of
commit 6a0fa62dc71157f85b24ed15e39ada277f9b5201.

Remove the Speck encryption support. It was eventually
decided not to allow Speck in Android P, so this code
is no longer needed and wasn't used outside of testing.

We retain the e4crypt_get_policy_flags() changes from original
commit, though.

Bug: 112009351
Test: Confirmed AES continues to work with FBE.
Change-Id: I53b091dd4c5392de7a00a8c168919fb55e527eaf

5 years agosimpleperf: fix test on APCT.
Yabin Cui [Wed, 2 May 2018 00:31:36 +0000 (17:31 -0700)]
simpleperf: fix test on APCT.

Bug: http://b/77470883
Test: run adb shell
Test: /data/local/tmp/simpleperf_unit_test/simpleperf_unit_test.
Change-Id: I640ad76b68842045f6ecdcb3cf686b7823d7d5db
(cherry picked from commit 03a31c13168f6502883e8beb4dbc76bc064a54a0)

5 years agoSnap for 4801384 from 932eb00d242d4bbb8fedbf07fe8cefd7b4b70ac9 to pi-release
android-build-team Robot [Thu, 24 May 2018 07:22:41 +0000 (07:22 +0000)]
Snap for 4801384 from 932eb00d242d4bbb8fedbf07fe8cefd7b4b70ac9 to pi-release

Change-Id: Iabfafb7b9a3201281abb56b7bc3f6e4e750ae0f1

5 years agoMerge "Make logging much less verbose" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 21:33:55 +0000 (21:33 +0000)]
Merge "Make logging much less verbose" into pi-dev

5 years agoMake logging much less verbose
Paul Crowley [Tue, 22 May 2018 22:58:38 +0000 (15:58 -0700)]
Make logging much less verbose

On a broken device, this logging is much too verbose and obscures real
information.

Test: adb shell mkdir -p /data/media/10/foo, then create second
Bug: 78592001
Change-Id: Idf235c65048187791a8e5f184a46ee802283de86

5 years agoSnap for 4796401 from 27fdbce115dea066262333ef798980338a6d5c19 to pi-release
android-build-team Robot [Tue, 22 May 2018 07:23:38 +0000 (07:23 +0000)]
Snap for 4796401 from 27fdbce115dea066262333ef798980338a6d5c19 to pi-release

Change-Id: I37074d0d34ef5fd0708041b8fcdf3648a9687e5b

5 years agoSnap for 4793185 from c4547885620f75af5c75c4bd59c2e9b6d36f35e3 to pi-release
android-build-team Robot [Sun, 20 May 2018 07:27:06 +0000 (07:27 +0000)]
Snap for 4793185 from c4547885620f75af5c75c4bd59c2e9b6d36f35e3 to pi-release

Change-Id: I7be4492fc651976d69ba7071ece0d729320cc0a7

5 years agocppreopts: using /dev/block/by-name/system_{ab} for postinstall
Bowgo Tsai [Thu, 17 May 2018 13:53:56 +0000 (21:53 +0800)]
cppreopts: using /dev/block/by-name/system_{ab} for postinstall

/dev/block/bootdevice/by-name/system_{ab} should not be used because
there is no requirement of a single boot device. Replace it with
/dev/block/by-name/system_{ab}.

Bug: 78613232
Test: factory wipe, reboot device to check logcat

Change-Id: Ia3a476ef7a4b271eff90f44ef4e04fdbee17052b
Merged-In: Ia3a476ef7a4b271eff90f44ef4e04fdbee17052b
(cherry picked from commit 5ede0b2dc72585d14cc3ef09e6e8c5776dcac9a7)

5 years agoRecursively list directories that break encryption
Paul Crowley [Wed, 16 May 2018 20:41:01 +0000 (13:41 -0700)]
Recursively list directories that break encryption

If we're unable to set or change encryption policy because the
directory is not empty, log the contents that cause the problem

Bug: 78592001
Test: adb shell mkdir -p /data/media/10/foo, then create second user
Change-Id: I87cc46f09551728a7949659b21ae0401ae253e5e

5 years agoSnap for 4778776 from 0db2d7b9dc463e4db33456b4944bb62d7281ba93 to pi-release
android-build-team Robot [Sun, 13 May 2018 07:26:26 +0000 (07:26 +0000)]
Snap for 4778776 from 0db2d7b9dc463e4db33456b4944bb62d7281ba93 to pi-release

Change-Id: I806100e91a2940fa484164b05bbfb91166fe96ac

5 years agoMerge changes I8fd41da0,I9a7ad445,I4e15cd4f,I896cfe8c,I5d80887a, ... into pi-dev
Andreas Gampe [Fri, 11 May 2018 21:02:56 +0000 (21:02 +0000)]
Merge changes I8fd41da0,I9a7ad445,I4e15cd4f,I896cfe8c,I5d80887a, ... into pi-dev

* changes:
  Perfprofd: Minor fixes
  Perfprofd: Add string-based binder interface
  Perfprofd: Add ScopeGuard for file deletion
  Perfprofd: Fix binder interface
  Perfprofd: Use the right parameter
  Perfprofd: Expose more parameters in the simple binder interface
  Perfprofd: Add process to configreader
  Perfprofd: More scripts
  Perfprofd: Separate symbol offset in samples
  Perfprofd: Add parallel processing to stack script
  Perfprofd: Update perf_proto_stack

5 years agoSnap for 4770446 from 34b5ed247cf41ff9889a9e9c3a413e017e690f58 to pi-release
android-build-team Robot [Wed, 9 May 2018 07:26:51 +0000 (07:26 +0000)]
Snap for 4770446 from 34b5ed247cf41ff9889a9e9c3a413e017e690f58 to pi-release

Change-Id: Ib2efb29b68a13828199cc0840789af02b9edcee6

5 years agoAppend null byte to exPath.
Rajeev Kumar [Tue, 8 May 2018 21:14:30 +0000 (14:14 -0700)]
Append null byte to exPath.

Note: Without this fix on Android Go device exPath gets some junk chars at the end of exPath because readlink() does not append a null byte to buf.

Bug: 79430762
Test: Tested manually by running alloc-stress on Android Go device.

Change-Id: I8e09d8c6d670b7d29e7f98c00dd8e9e9c5492169

5 years agoSnap for 4765094 from 6f14272775fdf15ea8d7d616bc75ce6103a2226b to pi-release
android-build-team Robot [Sun, 6 May 2018 07:26:46 +0000 (07:26 +0000)]
Snap for 4765094 from 6f14272775fdf15ea8d7d616bc75ce6103a2226b to pi-release

Change-Id: I4e55ceca152e223f1e38afad5242296bb5654918

5 years agosimpleperf: improve managing temp files.
Yabin Cui [Wed, 7 Mar 2018 23:47:15 +0000 (15:47 -0800)]
simpleperf: improve managing temp files.

Instead of relying on callers to delete temp files, support managing
all temp files in ScopedTempFiles.

Bug: http://b/73127105
Test: run simpleperf_unit_test and simpleperf manually.
Change-Id: Ib73065754657320ebd244f676e3f851544ff2718
(cherry picked from commit c68e66dcf067c052319c8da13a6a49ff06481fa5)

5 years agoPerfprofd: Minor fixes
Andreas Gampe [Mon, 30 Apr 2018 23:55:15 +0000 (16:55 -0700)]
Perfprofd: Minor fixes

Set the allowed minimum for collection_interval to 0.

Copy the sampling_frequency.

Add "-m 8192" when call-stacks are requested.

(cherry picked from commit 59a18215031faedc4bbee70baef363299cec0b69)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I8fd41da08eb14dadc98b85afe1e4dbed2d9bc9b1
Change-Id: I8fd41da08eb14dadc98b85afe1e4dbed2d9bc9b1

5 years agoPerfprofd: Add string-based binder interface
Andreas Gampe [Fri, 27 Apr 2018 22:15:34 +0000 (15:15 -0700)]
Perfprofd: Add string-based binder interface

Add a "weakly-typed" interface that works similar to the shellCommand
implementation, encoding parameters into a string decoded by the
ConfigReader.

(cherry picked from commit 9301b6f524b8267f14c88b0e5e2ed64bbc186fd4)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: I9a7ad4452ba7a040906e237a76b63e50fbe5aa24
Change-Id: I9a7ad4452ba7a040906e237a76b63e50fbe5aa24

5 years agoPerfprofd: Add ScopeGuard for file deletion
Andreas Gampe [Thu, 26 Apr 2018 05:32:36 +0000 (22:32 -0700)]
Perfprofd: Add ScopeGuard for file deletion

Ensure that the temporary will be deleted.

(cherry picked from commit 529af96ba77f26c1597d077ca55d051feeb5df3d)

Bug: 73175642
Test: perfprofd_test
Merged-In: I4e15cd4fa81a173a70126edaea5c0a0023b8c359
Change-Id: I4e15cd4fa81a173a70126edaea5c0a0023b8c359

5 years agoPerfprofd: Fix binder interface
Andreas Gampe [Thu, 26 Apr 2018 05:00:53 +0000 (22:00 -0700)]
Perfprofd: Fix binder interface

Actually forward to the right onTransact.

(cherry picked from commit 109780d575f0776fca092b5a238a0bff21e3ece1)

Bug: 73175642
Test: perfprofd_test
Test: manual
Merged-In: I896cfe8cf166c00bc49f4be5de8b19f913baad2d
Change-Id: I896cfe8cf166c00bc49f4be5de8b19f913baad2d

5 years agoPerfprofd: Use the right parameter
Andreas Gampe [Thu, 26 Apr 2018 04:59:48 +0000 (21:59 -0700)]
Perfprofd: Use the right parameter

Fix a typo.

(cherry picked from commit 51c08f9041648378717c79f787db773ac55e74b1)

Bug: 73175642
Test: perfprofd_test
Merged-In: I5d80887af08e3b3a1b19a1a303ca1c63bec75fbd
Change-Id: I5d80887af08e3b3a1b19a1a303ca1c63bec75fbd

5 years agoPerfprofd: Expose more parameters in the simple binder interface
Andreas Gampe [Sat, 21 Apr 2018 00:11:22 +0000 (17:11 -0700)]
Perfprofd: Expose more parameters in the simple binder interface

Expose most interesting parameters.

(cherry picked from commit 5a7181b3d3127660916e7a14057fdafa71c7d77b)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: Ifab7f0a0c4a1e664a6b679c6f2d060f02eee232c
Change-Id: Ifab7f0a0c4a1e664a6b679c6f2d060f02eee232c

5 years agoPerfprofd: Add process to configreader
Andreas Gampe [Thu, 19 Apr 2018 17:16:30 +0000 (10:16 -0700)]
Perfprofd: Add process to configreader

So that it is exposed to the command line interface.

(cherry picked from commit abc57274490870903f591140ad3a5cd509a0b372)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Test: manual
Merged-In: I18903e860d91957dc53adeea9c1f12596fd7ff74
Change-Id: I18903e860d91957dc53adeea9c1f12596fd7ff74

5 years agoPerfprofd: More scripts
Andreas Gampe [Wed, 11 Apr 2018 18:23:10 +0000 (11:23 -0700)]
Perfprofd: More scripts

Add conversion of JSON files to a SQLite database, and aggregation
of data in a SQLite database to a flamegraph.

(cherry picked from commit 597f40df90fae8b89ce7672da6ab4825eb234d10)

Bug: 73175642
Test: m
Merged-In: I70827c7395b6a60a59ed420503434ad4b84a105f
Change-Id: I70827c7395b6a60a59ed420503434ad4b84a105f

5 years agoPerfprofd: Separate symbol offset in samples
Andreas Gampe [Fri, 6 Apr 2018 20:46:19 +0000 (13:46 -0700)]
Perfprofd: Separate symbol offset in samples

Separate out the offset from the start of the sample in the
reporting struct. Parse the data from unwind_symbols.

(cherry picked from commit b84d5fd0c6e67af069fe542149b0fc7d72844e50)

Bug: 73175642
Test: manual
Merged-In: I8910fa826cef0843dd9f98342df4203cb3ebf5c5
Change-Id: I8910fa826cef0843dd9f98342df4203cb3ebf5c5

5 years agoPerfprofd: Add parallel processing to stack script
Andreas Gampe [Fri, 6 Apr 2018 20:20:29 +0000 (13:20 -0700)]
Perfprofd: Add parallel processing to stack script

Allow to process multiple proto files in parallel. This will fork
out each processed file into a subprocess, as making symbolization
thread-safe is non-trivial.

(cherry picked from commit 34c434d468d71e83b4ba9d69b1143c993ae1829e)

Bug: 73175642
Test: manual
Merged-In: I9bda1717e3f50569ad43f457413c7bc5831fd6a5
Change-Id: I9bda1717e3f50569ad43f457413c7bc5831fd6a5

5 years agoPerfprofd: Update perf_proto_stack
Andreas Gampe [Fri, 6 Apr 2018 02:53:49 +0000 (19:53 -0700)]
Perfprofd: Update perf_proto_stack

Update the python script. Also clean it up.

(cherry picked from commit afe71cfc8ce97887756aad613169358e28c45a62)

Bug: 73175642
Test: manual: PYTHONPATH=$PYTHONPATH:$ANDROID_BUILD_TOP/development/scripts python -u system/extras/perfprofd/scripts/perf_proto_stack.py --syms /storage/perfprofd_symbols/out/target/product/walleye/symbols --skip-kernel-syms --print-samples --print-sym-histogram perf.data.encoded.0
Merged-In: I3d9c1eb0bca8818f53095d1410b5f95a0e93f24d
Change-Id: I3d9c1eb0bca8818f53095d1410b5f95a0e93f24d

5 years agoSnap for 4751833 from ca4e5e87e5bf18698638b43a4b0a954e1f900028 to pi-release
android-build-team Robot [Sun, 29 Apr 2018 07:27:50 +0000 (07:27 +0000)]
Snap for 4751833 from ca4e5e87e5bf18698638b43a4b0a954e1f900028 to pi-release

Change-Id: Idaef846e750b317ce347711bdef8bc77a7921b6d

5 years agoMake the NOT_CONFIG_SYSVIPC test also exercise the syscalls
Luis Hector Chavez [Tue, 24 Apr 2018 15:40:10 +0000 (08:40 -0700)]
Make the NOT_CONFIG_SYSVIPC test also exercise the syscalls

This change augments the NOT_CONFIG_SYSVIPC test, such that in addition
to being evidence-based (by inspecting some paths in /proc), it also
tries to invoke the syscalls.  This is done because in some platforms
like Chrome OS, the SYSVIPC kernel config is enabled (because some parts
of the system require that to boot), but when Android is running, all
SYSVIPC syscalls are blocked by an LSM in the kernel.

It also changes the /proc/sysvipc path check from using access(2) and
F_OK to R_OK, since the paths itself is present and visible.

Bug: 77490033
Test: CtsKernelConfigTestCases
Change-Id: I79df1816e0e5d3618da2a0e242c3d685352b7220
Merged-In: I79df1816e0e5d3618da2a0e242c3d685352b7220
(cherry picked from commit 687cd48d8bce5548c7bf1dcbbfd3fd770e452362)

5 years agoSnap for 4736748 from 2381050555c065cb1b721d24c0ff511f027af1b5 to pi-release
android-build-team Robot [Sun, 22 Apr 2018 07:21:29 +0000 (07:21 +0000)]
Snap for 4736748 from 2381050555c065cb1b721d24c0ff511f027af1b5 to pi-release

Change-Id: I4f99bdc25e83ddb0615b5afc6363bf533f86d202

6 years agoMerge "mkuserimg_mke2fs: Support passing reserved block percent" into pi-dev
TreeHugger Robot [Sat, 21 Apr 2018 00:25:32 +0000 (00:25 +0000)]
Merge "mkuserimg_mke2fs: Support passing reserved block percent" into pi-dev

6 years agolibperfmgr: change to use Value directly in config
Wei Wang [Tue, 17 Apr 2018 03:30:36 +0000 (20:30 -0700)]
libperfmgr: change to use Value directly in config

Using Value directly is more clear and intuitive than using an index of
Values.

Bug: 77282526
Test: libperfmgr_test and boot wahoo
Change-Id: I4414a2bb04be8bf3fc01c20695ebd6ac3c19df79

6 years agoSnap for 4722539 from b3ebfaaeef2fa5fd3f1071b0fe8b9b92edbbdd2d to pi-release
android-build-team Robot [Sun, 15 Apr 2018 07:23:09 +0000 (07:23 +0000)]
Snap for 4722539 from b3ebfaaeef2fa5fd3f1071b0fe8b9b92edbbdd2d to pi-release

Change-Id: Ifee7113065ba37d9696798b9dec18b2969c13758

6 years agoPerfprofd: Add support for sampling frequency
Andreas Gampe [Thu, 5 Apr 2018 04:06:26 +0000 (21:06 -0700)]
Perfprofd: Add support for sampling frequency

Allow sampling frequency (-f) besides sampling period (-c), and
support simpleperf default values (when neither is set).

(cherry picked from commit e4b2ed98a9a4a35ac4bb46c20b1599e0889eb3a3)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I40d7472bc45f5efd33687f9d8a5d6493343091c3
Change-Id: I40d7472bc45f5efd33687f9d8a5d6493343091c3

6 years agoSnap for 4713750 from 0708cde464d97fc0a1b251f0431f6fe29f07b47d to pi-release
android-build-team Robot [Wed, 11 Apr 2018 07:24:23 +0000 (07:24 +0000)]
Snap for 4713750 from 0708cde464d97fc0a1b251f0431f6fe29f07b47d to pi-release

Change-Id: I3d4b832748ebe847799fa346e6ab5434a9aba33f

6 years agomkf2fsuserimg.sh: set fsverity feature bit
Jaegeuk Kim [Fri, 6 Apr 2018 05:45:00 +0000 (22:45 -0700)]
mkf2fsuserimg.sh: set fsverity feature bit

Bug: 74604441
Bug: 67380979
Change-Id: I64800783437ed28054d0ada8cb6537bc6683b238
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
6 years agoSnap for 4698807 from 38e113b1496d22f09fcdb52139a56f541e0cbaf6 to pi-release
android-build-team Robot [Wed, 4 Apr 2018 07:24:39 +0000 (07:24 +0000)]
Snap for 4698807 from 38e113b1496d22f09fcdb52139a56f541e0cbaf6 to pi-release

Change-Id: I6c23a9780d2df1d4d256f0473efe151b7901eded

6 years agoMerge "Perfprofd: Factor out threaded handler" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 03:05:42 +0000 (03:05 +0000)]
Merge "Perfprofd: Factor out threaded handler" into pi-dev

6 years agoMerge "Perfprofd: Place darwin disable into general defaults" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 19:50:36 +0000 (19:50 +0000)]
Merge "Perfprofd: Place darwin disable into general defaults" into pi-dev

6 years agoMerge "Make bootctrl.default use LOCAL_HEADER_LIBS bootimg_headers." into pi-dev
Jayant Chowdhary [Tue, 3 Apr 2018 16:43:28 +0000 (16:43 +0000)]
Merge "Make bootctrl.default use LOCAL_HEADER_LIBS bootimg_headers." into pi-dev

6 years agoSnap for 4696032 from 6ebf8824e2eda039168cff05684590e5b3a98bff to pi-release
android-build-team Robot [Tue, 3 Apr 2018 07:20:45 +0000 (07:20 +0000)]
Snap for 4696032 from 6ebf8824e2eda039168cff05684590e5b3a98bff to pi-release

Change-Id: I96bb4f2904843366bc736d873f78e415494ac36e

6 years agoPerfprofd: Factor out threaded handler
Andreas Gampe [Mon, 2 Apr 2018 17:58:32 +0000 (10:58 -0700)]
Perfprofd: Factor out threaded handler

To improve testability.

(cherry picked from commit b019ddc547f4491fee3ac95415767b02ae40edd1)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I259b86b9ef7c8c7d8523f3875ce63c2e71e42543
Change-Id: I259b86b9ef7c8c7d8523f3875ce63c2e71e42543

6 years agoPerfprofd: Place darwin disable into general defaults
Andreas Gampe [Fri, 30 Mar 2018 18:45:14 +0000 (11:45 -0700)]
Perfprofd: Place darwin disable into general defaults

Avoid further Mac breakage.

(cherry picked from commit 2230fb2d54ef4cc841c3347e8975320d621488a3)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I3b4db7d363c69b5e4249223d8cb185a4e9eef5cf
Change-Id: I3b4db7d363c69b5e4249223d8cb185a4e9eef5cf

6 years agoMake bootctrl.default use LOCAL_HEADER_LIBS bootimg_headers.
Jayant Chowdhary [Fri, 30 Mar 2018 03:46:04 +0000 (20:46 -0700)]
Make bootctrl.default use LOCAL_HEADER_LIBS bootimg_headers.

Bug: 74763691

Test: make -j64

Merged-In: I55fb951eea449c27aa0a4a5e9ab1a4dca09dbfa5
Change-Id: I55fb951eea449c27aa0a4a5e9ab1a4dca09dbfa5
(cherry picked from commit 41afebb109a6f4b444c43622daa9707820eef6ef)

6 years agoPerfprofd: Use ConfigReader for shellCommand startProfiling
Andreas Gampe [Thu, 29 Mar 2018 21:52:57 +0000 (14:52 -0700)]
Perfprofd: Use ConfigReader for shellCommand startProfiling

Use the ConfigReader for parsing arguments to startProfiling, so
that new arguments can be transparently picked up. This diverges
it from the AIDL interface, but is more functional and maintainable.

Also adjust some bounds.

(cherry picked from commit f73ddfa2db064d284ee9fa9821595a597d5ff2cb)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Test: manual: adb shell cmd perfprofd startProfiling main_loop_iterations=2 compress=1 stack_profile=0 sampling_period=10000 sample_duration=10 collection_interval=1
Test: manual: adb shell cmd perfprofd startProfiling main_loop_iterations=2 compress=1 stack_profile=0 sampling_period=10000 sample_duration=10 collection_interval=1 bla
Merged-In: I7c437b43634aab70ea9463161fff6de303e427c8
Change-Id: I7c437b43634aab70ea9463161fff6de303e427c8

6 years agoSnap for 4693621 from 8c2705f568fffc69a6b22707d49771dac627f75c to pi-release
android-build-team Robot [Sun, 1 Apr 2018 07:24:42 +0000 (07:24 +0000)]
Snap for 4693621 from 8c2705f568fffc69a6b22707d49771dac627f75c to pi-release

Change-Id: Ibcf3790c83f8c4330912a71e98d0ef679ef9ae74

6 years agoMerge "Support Speck encryption." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 20:54:43 +0000 (20:54 +0000)]
Merge "Support Speck encryption." into pi-dev

6 years agoSupport Speck encryption.
Paul Crowley [Fri, 30 Mar 2018 16:42:04 +0000 (09:42 -0700)]
Support Speck encryption.

Test: Modified Pixel to support and use Speck encryption, booted.
Bug: 77227248
Change-Id: I1efc54b60e074265914fde764ab4b85798128d67
Merged-In: I1efc54b60e074265914fde764ab4b85798128d67

6 years agoFix Darwin build (by not building).
Elliott Hughes [Fri, 30 Mar 2018 05:18:47 +0000 (22:18 -0700)]
Fix Darwin build (by not building).

(cherry picked from commit 15873826ab2ffc0638e143583645ff597d3bd534)

Bug: 73175642
Test: doesn't break Linux
Merged-In: Ieae89a24ef448559a9e840ec79291ee27f1eb992
Change-Id: Ieae89a24ef448559a9e840ec79291ee27f1eb992

6 years agoPerfprofd: Move dropbox functionality into core
Andreas Gampe [Thu, 29 Mar 2018 17:08:19 +0000 (10:08 -0700)]
Perfprofd: Move dropbox functionality into core

Move functionality into core, let cmdline version react to
dropbox configuration.

(cherry picked from commit 7f85bff629e68efd3f5127fc43edddcadfecb007)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I3415d7c15cf527afe70d93e4b4992a121d52164c
Change-Id: I3415d7c15cf527afe70d93e4b4992a121d52164c

6 years agoPerfprofd: Move proto to its own static library
Andreas Gampe [Thu, 29 Mar 2018 17:03:13 +0000 (10:03 -0700)]
Perfprofd: Move proto to its own static library

In order to break dependency cycles, move the record proto to its
own library.

(cherry picked from commit a145b35d4780b4f81a8355bb3fe58a79af8a06f0)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: I0931a59c82d92e2c9c2e702dbc89f76cd9804919
Change-Id: I0931a59c82d92e2c9c2e702dbc89f76cd9804919

6 years agoPerfprofd: Factor out the command-line-based loop
Andreas Gampe [Wed, 28 Mar 2018 21:28:18 +0000 (14:28 -0700)]
Perfprofd: Factor out the command-line-based loop

Move cmdline-related code out of the core.

(cherry picked from commit 04672dd13fd46a5f07f553ad7623f21277ef8bf2)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: Iae2a74f82ed103891149a8f21f8db509c8f53b65
Change-Id: Iae2a74f82ed103891149a8f21f8db509c8f53b65

6 years agoPerfprofd: Move dropbox code to its own static library
Andreas Gampe [Wed, 28 Mar 2018 19:43:07 +0000 (12:43 -0700)]
Perfprofd: Move dropbox code to its own static library

Preparation to move this to generic code.

(cherry picked from commit db1628647e81dc2d9a62471d4f3b78c84069040e)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I2cad55f201ff8af9acfe8e8e34c6bafea8ef1285
Change-Id: I2cad55f201ff8af9acfe8e8e34c6bafea8ef1285

6 years agoMerge "Remove verify_boot_signature." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:51:09 +0000 (23:51 +0000)]
Merge "Remove verify_boot_signature." into pi-dev

6 years agoMerge "Allow recovery-dtbo in recovery.img to be signed" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:51:09 +0000 (23:51 +0000)]
Merge "Allow recovery-dtbo in recovery.img to be signed" into pi-dev

6 years agoMerge changes from topic "move_boottime_script" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:50:36 +0000 (23:50 +0000)]
Merge changes from topic "move_boottime_script" into pi-dev

* changes:
  io_analysis/check_file_read.py: fix typo
  Move boottime I/O tools to system/extra

6 years agoio_analysis/check_file_read.py: fix typo
Wei Wang [Thu, 29 Mar 2018 21:58:12 +0000 (14:58 -0700)]
io_analysis/check_file_read.py: fix typo

Bug: 65481007
Test: Build
Change-Id: I082bf20e181a19f6f9b7158bb6088af60c123440

6 years agoMove boottime I/O tools to system/extra
Wei Wang [Thu, 29 Mar 2018 21:54:18 +0000 (14:54 -0700)]
Move boottime I/O tools to system/extra

Bug: 65481007
Test: Build
Change-Id: I6415b210b4acae87f5e97c980a0f032cdc75161e

6 years agoRemove verify_boot_signature.
David Benjamin [Tue, 20 Mar 2018 17:28:30 +0000 (13:28 -0400)]
Remove verify_boot_signature.

The immediate motivation is to trim away uses of the <openssl/asn1t.h>
header. Per email with samitolvanen@, this verified boot scheme has been
deprecated for a while, and this target isn't actually used anywhere. It
is only a rough example for OEMs. Accordingly, remove it.

Test: mma
Bug: 74763691
Change-Id: Ie3b6d2c3fb0a6873b81a1a048945ef8258521f16
(cherry picked from commit e1f150b1d7002e042a8de150988147bb1a6958f1)

6 years agoMerge "Perfprofd: Add compression to config proto" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 18:26:21 +0000 (18:26 +0000)]
Merge "Perfprofd: Add compression to config proto" into pi-dev

6 years agoAllow recovery-dtbo in recovery.img to be signed
Hridya Valsaraju [Fri, 23 Mar 2018 23:01:03 +0000 (16:01 -0700)]
Allow recovery-dtbo in recovery.img to be signed

Non-A/B devices need to include the DTBO image
within the recovery partition to be self-sufficient
and prevent OTA failures. The CL includes the size
of recovery DTBO in the size of the boot image to be
signed to prevent image truncation.

Test: Verified that recovery.img was not getting truncated.

Bug: 74763691
Change-Id: Id56928129dfea167e2451aa5f4609fef77e00ff4
Merged-In: Id56928129dfea167e2451aa5f4609fef77e00ff4
(cherry picked from commit 9bb9f8f857170c5865944bdc9e4700a73a6e7434)

6 years agoPerfprofd: Add compression to config proto
Andreas Gampe [Wed, 28 Mar 2018 22:51:33 +0000 (15:51 -0700)]
Perfprofd: Add compression to config proto

(cherry picked from commit 28a379f08c7e683689b1b96f1fe1a8e65611abec)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a
Change-Id: If2c164ca2d99ee4d85d67e7b0eed28811c415e8a

6 years agosimpleperf: build simpleperf instead of simpleperf32 on gce_x86.
Yabin Cui [Wed, 28 Mar 2018 19:50:15 +0000 (12:50 -0700)]
simpleperf: build simpleperf instead of simpleperf32 on gce_x86.

Bug: http://b/77219275
Test: build manually.
Change-Id: I9082fee3b31b7eb8e90096262c11d1875cbf4e64
(cherry picked from commit 170cb4963a73aa70e31667d94d8efcaabd89ba25)

6 years agoSnap for 4683893 from 2a7b571d3216c83d025e47d6553be25a9159dd27 to pi-release
android-build-team Robot [Wed, 28 Mar 2018 07:25:39 +0000 (07:25 +0000)]
Snap for 4683893 from 2a7b571d3216c83d025e47d6553be25a9159dd27 to pi-release

Change-Id: I80aed2e486593261e5c414a387bb301537fefc31

6 years agoPerfprofd: Implement symbolization over quipper data
Andreas Gampe [Wed, 21 Mar 2018 23:05:26 +0000 (16:05 -0700)]
Perfprofd: Implement symbolization over quipper data

Reimplement the symbolization post-process step to walk quipper
protobufs, looking for mapped files without build ID data.

(cherry picked from commit cbc02bc7a2e84f90f11b3b066ec0aeb66c3d38eb)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I7c27b09b6a7f9c743472837962021845b2f4db7f
Change-Id: I7c27b09b6a7f9c743472837962021845b2f4db7f

6 years agoSnap for 4680594 from 6f1352906220b6a9cdc94f3d3edf55ddc812262e to pi-release
android-build-team Robot [Tue, 27 Mar 2018 07:25:14 +0000 (07:25 +0000)]
Snap for 4680594 from 6f1352906220b6a9cdc94f3d3edf55ddc812262e to pi-release

Change-Id: I9d7897246edaae46339ad1d80c047a96da2e93c6

6 years agoPerfprofd: Add debug version of libperfprofdcore
Andreas Gampe [Fri, 23 Mar 2018 03:25:33 +0000 (20:25 -0700)]
Perfprofd: Add debug version of libperfprofdcore

Add libperfprofdcored for the tests.

(cherry picked from commit b5c370917ae02262fa3c119c596537b57a8ff6ac)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_tests
Merged-In: I5e7047d80495f6ce832892d3d488104da318fe02
Change-Id: I5e7047d80495f6ce832892d3d488104da318fe02

6 years agoSnap for 4677756 from 0bdadad9e5572ef6483f70b51a52b70b9a908fba to pi-release
android-build-team Robot [Sun, 25 Mar 2018 07:27:16 +0000 (07:27 +0000)]
Snap for 4677756 from 0bdadad9e5572ef6483f70b51a52b70b9a908fba to pi-release

Change-Id: If0eb417d480d5ca9c45d2e4d0e44cdcb8228b98f

6 years agoPerfprofd: Add GZIP compression
Andreas Gampe [Fri, 23 Mar 2018 02:48:48 +0000 (19:48 -0700)]
Perfprofd: Add GZIP compression

Add support for output compression with libz.

(cherry picked from commit 894b3f9b0d3ed1a082d8c533ac812341c047561c)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I4e38040fa197fd67c4e844199e980520887e6258
Change-Id: I4e38040fa197fd67c4e844199e980520887e6258

6 years agoPerfprofd: Use a stream to serialize
Andreas Gampe [Fri, 23 Mar 2018 02:42:30 +0000 (19:42 -0700)]
Perfprofd: Use a stream to serialize

Move from a memory buffer to streaming to file.

(cherry picked from commit c9a2ab417f54eb43bffd14cf9f542808cdd1d040)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: Ibb37b8942e7dbf3c5ff9bf69c00473c57f7d2a7c
Change-Id: Ibb37b8942e7dbf3c5ff9bf69c00473c57f7d2a7c

6 years agoPerfprofd: Refactor protobuf I/O
Andreas Gampe [Thu, 22 Mar 2018 15:20:08 +0000 (08:20 -0700)]
Perfprofd: Refactor protobuf I/O

Move to its own compilation unit.

(cherry picked from commit d0aac2583c77d76f4b78a500d626b5a2a03c3e05)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: Iad9ddfe5ea84df9fa1fe27a367ec19aa37162c00
Change-Id: Iad9ddfe5ea84df9fa1fe27a367ec19aa37162c00

6 years agoPerfprofd: Factor out quipper iterator helpers
Andreas Gampe [Wed, 21 Mar 2018 23:02:02 +0000 (16:02 -0700)]
Perfprofd: Factor out quipper iterator helpers

(cherry picked from commit 77ca78a8a22b0f485a013a78edfcff579aa58599)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: Id3a9ce457917b5453e1bebff274601320e3ca40d
Change-Id: Id3a9ce457917b5453e1bebff274601320e3ca40d

6 years agoPerfprofd: Add explicit build dependency to simpleperf
Andreas Gampe [Wed, 21 Mar 2018 23:04:15 +0000 (16:04 -0700)]
Perfprofd: Add explicit build dependency to simpleperf

It doesn't really make sense to deploy perfprofd without simpleperf.

(cherry picked from commit 5091d8588951046f8012800fad16f99cc2223cf6)

Bug: 73175642
Test: mmma system/extras/perfprofd
Merged-In: I4eddd1a3c3f6613ba2c6216103dcbfe62fcda2b3
Change-Id: I4eddd1a3c3f6613ba2c6216103dcbfe62fcda2b3

6 years agoPerfprofd: Use temporary file for large dropbox drops
Andreas Gampe [Mon, 19 Mar 2018 23:24:14 +0000 (16:24 -0700)]
Perfprofd: Use temporary file for large dropbox drops

A large buffer may not be sent over a binder transaction directly.

(cherry picked from commit 28e31387033fa732b060e9d4325846a7de5d3ae4)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_tests
Test: manual
Merged-In: I821ee2a0b3015c765c64be13b2d0101bec05a96b
Change-Id: I821ee2a0b3015c765c64be13b2d0101bec05a96b

6 years agoPerfprofd: Disable darwin build
Andreas Gampe [Sat, 17 Mar 2018 23:38:54 +0000 (16:38 -0700)]
Perfprofd: Disable darwin build

Do not attempt to build for host on darwin.

(cherry picked from commit b7fa6225bdaaba7cb10b93d42dff3b5f6f920133)

Bug: 73175642
Test: none
Merged-In: I35d2f4a30499382a84c9298972d0c039a7a0e51a
Change-Id: I35d2f4a30499382a84c9298972d0c039a7a0e51a

6 years agoPerfprofd: Support host tests
Andreas Gampe [Wed, 14 Mar 2018 03:55:56 +0000 (20:55 -0700)]
Perfprofd: Support host tests

Support host gtests where it makes sense.

(cherry picked from commit 51389ceb22c1833a0c6f3b488fff47d4c7287380)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test (host, target)
Merged-In: If56a3eb6addc81b0287ce984d4e2284f28bc675b
Change-Id: If56a3eb6addc81b0287ce984d4e2284f28bc675b

6 years agoPerfprofd: Use external quipper
Andreas Gampe [Tue, 13 Mar 2018 23:04:01 +0000 (16:04 -0700)]
Perfprofd: Use external quipper

Switch to using external/perf_data_converter. This removes
on-device symbolization for the moment.

(cherry picked from commit 0c09e0ec9942acc56454720ccc6d26a61e4b2085)

Bug: 73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Merged-In: I01dc7c54299c295b29475632d5b6cf7ce68c236c
Change-Id: I01dc7c54299c295b29475632d5b6cf7ce68c236c

6 years agomkuserimg_mke2fs: Support passing reserved block percent
Patrick Tjin [Fri, 23 Mar 2018 20:38:05 +0000 (13:38 -0700)]
mkuserimg_mke2fs: Support passing reserved block percent

Add support for passing reserved block percent when making
filesystem (-M)

Bug: 75975085
Test: build taimen, check that -M option takes effect
Change-Id: Ie70159b2cce01e0611299726378e3bcf46fde389

6 years agoMerge "Move boottime tools to system folder" into pi-dev
Wei Wang [Fri, 23 Mar 2018 20:29:56 +0000 (20:29 +0000)]
Merge "Move boottime tools to system folder" into pi-dev

6 years agoMove boottime tools to system folder
Wei Wang [Fri, 23 Mar 2018 18:28:59 +0000 (11:28 -0700)]
Move boottime tools to system folder

Bug: 65481007
Test: Build
Change-Id: I66b280ff4fe06b47084ce4279705582e3d4d0330

6 years agoSimpleperf: Add host version of libsimpleperf_elf_read
Andreas Gampe [Thu, 8 Mar 2018 21:49:27 +0000 (13:49 -0800)]
Simpleperf: Add host version of libsimpleperf_elf_read

(cherry picked from commit 98d04ade6ab62ed33b9b71da81c3a3b2788a549b)

Bug: 73175642
Test: mmma system/extras/simpleperf
Merged-In: Ie72000d73e914df32bd481f29d42b0f1198bfc78
Change-Id: Ie72000d73e914df32bd481f29d42b0f1198bfc78

6 years agoSnap for 4667902 from 56f68caff62f404cff5491b3e84e3d031781db32 to pi-release
android-build-team Robot [Wed, 21 Mar 2018 07:27:49 +0000 (07:27 +0000)]
Snap for 4667902 from 56f68caff62f404cff5491b3e84e3d031781db32 to pi-release

Change-Id: I1ca58c9de3c720c2c020a24980ea4b51d4ce330c

6 years agoTimetest: Clean up
Andreas Gampe [Tue, 20 Mar 2018 16:40:12 +0000 (09:40 -0700)]
Timetest: Clean up

Clean up the code a little.

The removed TEMP_FAILURE_RETRY is actually wrong. The others are either
superfluous or needed.

Be more direct with error returns.

For EBUSY, loop at most ten times, with sleep.

Use unique_fd for descriptor tracking/close.

(cherry picked from commit e4944b10a24c39d9aaba7e1093d91438ddf90d09)

Bug: 76008092
Test: atest time-unit-tests
Merged-In: Id7176e0237a416a4bb19d72c47b8e1a2f6b57ca5
Change-Id: Id7176e0237a416a4bb19d72c47b8e1a2f6b57ca5

6 years agoSnap for 4623514 from d811b027242d89b8688a851ed33286cbe1853539 to pi-release
android-build-team Robot [Tue, 27 Feb 2018 08:28:25 +0000 (08:28 +0000)]
Snap for 4623514 from d811b027242d89b8688a851ed33286cbe1853539 to pi-release

Change-Id: I5380054d709b69b4ff70662106a8fd326a77d471

6 years agoMerge "simpleperf: flush output before quick_exit." am: 8e57dc74b0 am: fd2f327219
Yabin Cui [Mon, 26 Feb 2018 22:00:56 +0000 (22:00 +0000)]
Merge "simpleperf: flush output before quick_exit." am: 8e57dc74b0 am: fd2f327219
am: 508badeb8a

Change-Id: I660c171503972ce85331e42d447ca4822677ce2e

6 years agoMerge "simpleperf: flush output before quick_exit." am: 8e57dc74b0
Yabin Cui [Mon, 26 Feb 2018 21:52:54 +0000 (21:52 +0000)]
Merge "simpleperf: flush output before quick_exit." am: 8e57dc74b0
am: fd2f327219

Change-Id: I0650f008511d44f45a45d822e434ffeba8fa8658

6 years agoMerge "simpleperf: flush output before quick_exit."
Yabin Cui [Mon, 26 Feb 2018 21:45:49 +0000 (21:45 +0000)]
Merge "simpleperf: flush output before quick_exit."
am: 8e57dc74b0

Change-Id: Ib4d9514131ed23989d5ce35424548a1d17be54c3

6 years agoMerge "simpleperf: flush output before quick_exit."
Yabin Cui [Mon, 26 Feb 2018 21:32:55 +0000 (21:32 +0000)]
Merge "simpleperf: flush output before quick_exit."

6 years agosimpleperf: flush output before quick_exit.
Yabin Cui [Mon, 26 Feb 2018 20:12:44 +0000 (12:12 -0800)]
simpleperf: flush output before quick_exit.

Bug: http://b/73875722
Test: run simpleperf manually.
Change-Id: I010c8612b18cd4034199440cb178d9d9cc8f0ff4

6 years agoSnap for 4620899 from 455bdd3ae707763d3b13a4fc1e6d91d781bc5ce1 to pi-release
android-build-team Robot [Sun, 25 Feb 2018 08:23:52 +0000 (08:23 +0000)]
Snap for 4620899 from 455bdd3ae707763d3b13a4fc1e6d91d781bc5ce1 to pi-release

Change-Id: I6b5e8752b3a9e413a863c2a73e73ecbf698a1544

6 years agoMerge "simpleperf: use quick_exit." am: aa6d306692 am: 888a6f522e
Yabin Cui [Sat, 24 Feb 2018 00:00:54 +0000 (00:00 +0000)]
Merge "simpleperf: use quick_exit." am: aa6d306692 am: 888a6f522e
am: 0e995e4fb4

Change-Id: I5910ee1d1c2ce870432bbe2a9a6f6ab78759c45e

6 years agoMerge "simpleperf: use quick_exit." am: aa6d306692
Yabin Cui [Fri, 23 Feb 2018 23:55:20 +0000 (23:55 +0000)]
Merge "simpleperf: use quick_exit." am: aa6d306692
am: 888a6f522e

Change-Id: I5aba8b7c060b8267e701ed90d2d3ce1f59baa0e6

6 years agoMerge "simpleperf: use quick_exit."
Yabin Cui [Fri, 23 Feb 2018 23:48:39 +0000 (23:48 +0000)]
Merge "simpleperf: use quick_exit."
am: aa6d306692

Change-Id: I4160fc99fc9b492c93c960b27ea6c5663eceb2d2

6 years agoMerge "simpleperf: use quick_exit."
Yabin Cui [Fri, 23 Feb 2018 23:36:30 +0000 (23:36 +0000)]
Merge "simpleperf: use quick_exit."

6 years agoMerge "Create maps for libunwind only if they changed." am: e92a2d8a43 am: ddd9efdc77
David Srbecky [Fri, 23 Feb 2018 19:59:15 +0000 (19:59 +0000)]
Merge "Create maps for libunwind only if they changed." am: e92a2d8a43 am: ddd9efdc77
am: 649577cdb0

Change-Id: I69d8df1380e8793aeaa24456518d897e59c30cae