OSDN Git Service

android-x86/system-extras.git
5 years agoiotop: add major/minor fault stats
Minchan Kim [Fri, 7 Sep 2018 03:07:00 +0000 (12:07 +0900)]
iotop: add major/minor fault stats

Provide major/minor fault stats.

It would be helpful to see per-process memory consumption speed.
It is also useful to see read IO caused by major fault, which
is critical for app latency.

Bug: 114325007
Test: iotop -h
Test: iotop -m 10 -s faults
Change-Id: If9670a4efe76bcd67b9caedb3427b69896ebed17
Signed-off-by: Minchan Kim <minchan@google.com>
[Added sorter for major+minor faults]
Signed-off-by: Sandeep Patil <sspatil@google.com>
5 years agoMerge "Add /data/preloads to directories that don't need to be encrypted."
Paul Crowley [Fri, 21 Dec 2018 16:20:05 +0000 (16:20 +0000)]
Merge "Add /data/preloads to directories that don't need to be encrypted."

5 years agoAdd /data/preloads to directories that don't need to be encrypted.
LongPing.WEI [Thu, 20 Dec 2018 09:56:21 +0000 (17:56 +0800)]
Add /data/preloads to directories that don't need to be encrypted.

There is no user data here, just preload data.

Test: make
Change-Id: I2bd65a15ace50c4d1dc4bc4c3f3d4294f77d2c18

5 years agoMerge "simpleperf: update simpleperf prebuilts to build 5176246."
Yabin Cui [Fri, 14 Dec 2018 22:11:15 +0000 (22:11 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 5176246."

5 years agosimpleperf: update simpleperf prebuilts to build 5176246.
Yabin Cui [Wed, 12 Dec 2018 18:59:18 +0000 (10:59 -0800)]
simpleperf: update simpleperf prebuilts to build 5176246.

Taken from branch aosp-master.

Bug: none
Test: run test.py on linux/windows on Android N/O/P.

Change-Id: I13326a3f9984006442c33ae24d34e3fd9cb46616

5 years agoMerge "Use libdexfile external API in simpleperf."
Martin Stjernholm [Fri, 14 Dec 2018 13:36:30 +0000 (13:36 +0000)]
Merge "Use libdexfile external API in simpleperf."

5 years agoMerge "simpleperf: fix binary_cache_builder.py."
Treehugger Robot [Fri, 14 Dec 2018 00:39:16 +0000 (00:39 +0000)]
Merge "simpleperf: fix binary_cache_builder.py."

5 years agoMerge "simpleperf: update build.gradle in demo apps."
Treehugger Robot [Thu, 13 Dec 2018 22:43:16 +0000 (22:43 +0000)]
Merge "simpleperf: update build.gradle in demo apps."

5 years agoMerge "simpleperf: fix reading symbols from multidex apk."
Treehugger Robot [Thu, 13 Dec 2018 22:39:44 +0000 (22:39 +0000)]
Merge "simpleperf: fix reading symbols from multidex apk."

5 years agosimpleperf: fix binary_cache_builder.py.
Yabin Cui [Thu, 13 Dec 2018 22:24:27 +0000 (14:24 -0800)]
simpleperf: fix binary_cache_builder.py.

Fix two exceptions caused by empty binary name.

Bug: none
Test: run python3 test.py.
Change-Id: If559a9c71a8af217fa8d127e634b85d9f6383ee4

5 years agosimpleperf: update build.gradle in demo apps.
Yabin Cui [Thu, 13 Dec 2018 19:47:25 +0000 (11:47 -0800)]
simpleperf: update build.gradle in demo apps.

Bug: none
Test: build apps.
Change-Id: I8b41e70b17f462f2272ed8eb32c8ca087243cc3e

5 years agosimpleperf: fix reading symbols from multidex apk.
Yabin Cui [Thu, 13 Dec 2018 19:34:17 +0000 (11:34 -0800)]
simpleperf: fix reading symbols from multidex apk.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: I04715ff7abe22819b30881d73706fb59cd5521ea

5 years agoUse libdexfile external API in simpleperf.
Martin Stjernholm [Wed, 28 Nov 2018 00:46:00 +0000 (00:46 +0000)]
Use libdexfile external API in simpleperf.

Test: device boot
Test: atest system/extras/simpleperf/ (lots of failures, but no new ones. 4 of 4 passed in simpleperf_unit_test)
Test: mmma system/extras/simpleperf && adb root && adb shell rm -rf /data/test && adb push out/target/product/taimen/testcases/simpleperf_unit_test /data/test && adb shell /data/test/arm64/simpleperf_unit_test && adb shell /data/test/arm/simpleperf_unit_test
Bug: 119632407
Change-Id: Id070b8a99cb4d3bf4ec90cae186a2e88bcec72a1

5 years agoMerge "lpdump: Automatically read from super when used directly on devices."
David Anderson [Thu, 13 Dec 2018 02:22:22 +0000 (02:22 +0000)]
Merge "lpdump: Automatically read from super when used directly on devices."

5 years agolpdump: Automatically read from super when used directly on devices.
David Anderson [Wed, 12 Dec 2018 21:36:43 +0000 (13:36 -0800)]
lpdump: Automatically read from super when used directly on devices.

It's confusing to figure out how to invoke lpdump, especially on
retrofit devices. It should just do the correct thing automatically
when no arguments are passed.

Bug: N/A
Test: lpdump on retrofit device
Change-Id: I0563c10ff276763710fa0a4fb9918a2515f9d054

5 years agoMerge "libfscrypt: Add Adiantum support"
Greg Kaiser [Wed, 12 Dec 2018 04:59:25 +0000 (04:59 +0000)]
Merge "libfscrypt: Add Adiantum support"

5 years agolibfscrypt: Add Adiantum support
Greg Kaiser [Mon, 3 Dec 2018 20:36:56 +0000 (12:36 -0800)]
libfscrypt: Add Adiantum support

Adiantum is a crypto method Android is supporting for devices
which don't have AES CPU instructions.  See the paper
"Adiantum: length-preserving encryption for entry-level processors"
(https://eprint.iacr.org/2018/720.pdf) for more details.

We add Adiantum to our list of supported encryption modes.

Bug: 112010205
Test: Tested on a device
Change-Id: I405ed454be1a447b7405417a05ddfd92a912bcb7

5 years agoMerge "Fix performance-for-range-copy warnings"
Treehugger Robot [Tue, 11 Dec 2018 21:34:06 +0000 (21:34 +0000)]
Merge "Fix performance-for-range-copy warnings"

5 years agoMerge "Fix cert-dcl16-c clang-tidy warnings."
Treehugger Robot [Tue, 11 Dec 2018 21:10:40 +0000 (21:10 +0000)]
Merge "Fix cert-dcl16-c clang-tidy warnings."

5 years agoFix cert-dcl16-c clang-tidy warnings.
Chih-Hung Hsieh [Tue, 11 Dec 2018 18:59:28 +0000 (10:59 -0800)]
Fix cert-dcl16-c clang-tidy warnings.

Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: Ib341908467f11ed5fccd6eddb8909fe5170fea9e

5 years agoFix performance-for-range-copy warnings
Chih-Hung Hsieh [Tue, 11 Dec 2018 18:45:02 +0000 (10:45 -0800)]
Fix performance-for-range-copy warnings

Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: I94c2456e8ef958abcb0909871fb772dd67060dfc

5 years agoMerge "Introduce a no-perfprofd module."
Doris Ling [Fri, 7 Dec 2018 20:03:57 +0000 (20:03 +0000)]
Merge "Introduce a no-perfprofd module."

5 years agoIntroduce a no-perfprofd module.
Roland Levillain [Fri, 7 Dec 2018 19:33:19 +0000 (19:33 +0000)]
Introduce a no-perfprofd module.

This module creates a dummy binary that can be used to replace
perfprofd on some build products. Its intended (temporary) use is to
regain some space on the system partition of storage-constrained
products such as marlin-eng and sailfish-eng.

Test: lunch marlin-eng && make systemimage
Bug: 113373927
Change-Id: I16ec9029786ce2d136c353fe00a48bdfdd9ad7a0

5 years agoMerge "Merge pie-platform-release (PPRL.181105.017, history only) into master"
Xin Li [Tue, 4 Dec 2018 22:09:27 +0000 (22:09 +0000)]
Merge "Merge pie-platform-release (PPRL.181105.017, history only) into master"

5 years agoMerge "C++17 is the default now."
Treehugger Robot [Tue, 4 Dec 2018 04:39:55 +0000 (04:39 +0000)]
Merge "C++17 is the default now."

5 years agoMerge pie-platform-release (PPRL.181105.017, history only) into master
Xin Li [Mon, 3 Dec 2018 23:34:35 +0000 (15:34 -0800)]
Merge pie-platform-release (PPRL.181105.017, history only) into master

Bug: 118454372
Change-Id: I4b5e4e99649250b4bd65e780925c5fc3001fe710

5 years agoC++17 is the default now.
Elliott Hughes [Mon, 3 Dec 2018 17:06:40 +0000 (09:06 -0800)]
C++17 is the default now.

Test: builds
Change-Id: Icf8522c00e78a7c05a7cb86d052858bb9ebd4afc

5 years agoMerge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release
Bill Yi [Thu, 29 Nov 2018 02:35:04 +0000 (18:35 -0800)]
Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release

Change-Id: I171c9c28f68e3f26e173dca9dc3fe0bb1bd68c95

5 years agoMerge "make_f2fs: use -g android by default"
Jaegeuk Kim [Wed, 28 Nov 2018 00:57:25 +0000 (00:57 +0000)]
Merge "make_f2fs: use -g android by default"

5 years agomake_f2fs: use -g android by default
Jaegeuk Kim [Wed, 21 Nov 2018 19:20:32 +0000 (11:20 -0800)]
make_f2fs: use -g android by default

Bug: 119875846
Change-Id: Iba2c969b46614376a99d882a207489227e7bbfbd
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
5 years agoMerge "Convert blk_alloc_to_base_fs to Android.bp"
Treehugger Robot [Tue, 20 Nov 2018 20:18:01 +0000 (20:18 +0000)]
Merge "Convert blk_alloc_to_base_fs to Android.bp"

5 years agoMerge "Allow empty value in property node"
Wei Wang [Tue, 20 Nov 2018 06:47:31 +0000 (06:47 +0000)]
Merge "Allow empty value in property node"

5 years agoAllow empty value in property node
Wei Wang [Tue, 20 Nov 2018 05:15:00 +0000 (21:15 -0800)]
Allow empty value in property node

Bug: 110166984
Test: libperfmgr_test
Change-Id: I43c03794f525770f090288216d76f7abbd788805

5 years agoConvert blk_alloc_to_base_fs to Android.bp
Dan Willemsen [Tue, 20 Nov 2018 02:32:02 +0000 (18:32 -0800)]
Convert blk_alloc_to_base_fs to Android.bp

See build/soong/README.md for more information.

Also remove a useless HOST_OS check -- HOST_OS will always be either
linux or darwin, we don't support building directly on windows.

Test: m blk_alloc_to_base_fs
Change-Id: I13927de82ff769cf3692b58b9432fb79c856b8d3

5 years agoMerge "lpdump: Show block device and group flags."
David Anderson [Mon, 19 Nov 2018 22:37:33 +0000 (22:37 +0000)]
Merge "lpdump: Show block device and group flags."

5 years agolpdump: Show block device and group flags.
David Anderson [Sat, 17 Nov 2018 05:38:40 +0000 (21:38 -0800)]
lpdump: Show block device and group flags.

Bug: N/A
Test: manual test
Change-Id: I6063fc416eef130e4c29168d9a265cc29f462b38

5 years agoMerge "switch to using android-base/file.h instead of android-base/test_utils.h"
Treehugger Robot [Thu, 15 Nov 2018 20:18:20 +0000 (20:18 +0000)]
Merge "switch to using android-base/file.h instead of android-base/test_utils.h"

5 years agoswitch to using android-base/file.h instead of android-base/test_utils.h
Mark Salyzyn [Mon, 12 Nov 2018 20:58:06 +0000 (12:58 -0800)]
switch to using android-base/file.h instead of android-base/test_utils.h

Test: compile
Bug: 119313545
Change-Id: I664fb32522d01909c603d7b903475c4e9aea9223

5 years agoMerge "Make preloads_copy.sh a module"
Anton Hansson [Wed, 14 Nov 2018 08:59:46 +0000 (08:59 +0000)]
Merge "Make preloads_copy.sh a module"

5 years agoMerge "lpdump: Allow reading local partition images."
Treehugger Robot [Tue, 13 Nov 2018 22:50:47 +0000 (22:50 +0000)]
Merge "lpdump: Allow reading local partition images."

5 years agoMerge "simpleperf: fix a bug setting symfs dir."
Treehugger Robot [Tue, 13 Nov 2018 21:40:25 +0000 (21:40 +0000)]
Merge "simpleperf: fix a bug setting symfs dir."

5 years agolpdump: Allow reading local partition images.
David Anderson [Tue, 13 Nov 2018 19:39:19 +0000 (11:39 -0800)]
lpdump: Allow reading local partition images.

PartitionOpener expects a partition name, but for debugging, lpdump
should be able to open a local file too.

Bug: N/A
Test: manual test
Change-Id: I85f6ce7f3508cf4343d89ea368309a6e960af938

5 years agosimpleperf: fix a bug setting symfs dir.
Yabin Cui [Tue, 13 Nov 2018 19:09:20 +0000 (11:09 -0800)]
simpleperf: fix a bug setting symfs dir.

Bug: 119438870
Test: run simpleperf_unit_test.
Test: run simpleperf manually.

Change-Id: I2f7ca659dc3a9833650f326ff5560fef44e769a5

5 years agoMake preloads_copy.sh a module
Anton Hansson [Tue, 13 Nov 2018 15:04:41 +0000 (15:04 +0000)]
Make preloads_copy.sh a module

Make this new module required by cppreopts.sh. This allows removing
the duplicated PRODUCT_COPY_FILES directive for a bunch of devices
that import both.

Also fix some comments in the script.

Bug: 80508492
Test: lunch aosp_blueline-userdebug; m
Change-Id: I804fc17c43274683716a8c9bb3360ac624a80882

5 years agoMerge "lpmake: Allow writing split super images."
David Anderson [Fri, 9 Nov 2018 01:26:17 +0000 (01:26 +0000)]
Merge "lpmake: Allow writing split super images."

5 years agoMerge "partition_tools: Update for auto-slot-suffixing."
David Anderson [Thu, 8 Nov 2018 22:13:51 +0000 (22:13 +0000)]
Merge "partition_tools: Update for auto-slot-suffixing."

5 years agolpmake: Allow writing split super images.
David Anderson [Thu, 8 Nov 2018 04:24:17 +0000 (20:24 -0800)]
lpmake: Allow writing split super images.

To use this mode, the build must be a retrofit build and --output should
be a folder rather than a file.

This also fixes a bug in lpdump where it refuses to dump full super.img
images on the host.

Bug: 118887112
Test: manual test
Change-Id: I3318684fbea6fe67bfa171001beea3a5c560fbab

5 years agopartition_tools: Update for auto-slot-suffixing.
David Anderson [Thu, 8 Nov 2018 02:27:14 +0000 (18:27 -0800)]
partition_tools: Update for auto-slot-suffixing.

lpmake: Add --auto-slot-suffixing for retrofit builds.
lpdump: Show the slot-suffixed flag when dumping super_empty.

Bug: 116802789
Test: manual test
Change-Id: I65e1d4d6922d117b9dcdbfbf9ced045c97549e59

5 years agoMerge "Fix logging output"
Wei Wang [Mon, 5 Nov 2018 21:57:19 +0000 (21:57 +0000)]
Merge "Fix logging output"

5 years agoFix logging output
Wei Wang [Mon, 5 Nov 2018 18:18:59 +0000 (10:18 -0800)]
Fix logging output

Test: Build
Change-Id: Idcb86b511412137e4ef14cae9c17aa36fd2dbbc8

5 years agoMerge "Mark libverity_tree as recovery_available for update_engine_sideload"
Dan Willemsen [Fri, 2 Nov 2018 00:51:49 +0000 (00:51 +0000)]
Merge "Mark libverity_tree as recovery_available for update_engine_sideload"

5 years agoMerge "simpleperf: fix simpleperf_unit_test on windows."
Yabin Cui [Wed, 31 Oct 2018 18:42:33 +0000 (18:42 +0000)]
Merge "simpleperf: fix simpleperf_unit_test on windows."

5 years agosimpleperf: fix simpleperf_unit_test on windows.
Yabin Cui [Mon, 29 Oct 2018 21:23:48 +0000 (14:23 -0700)]
simpleperf: fix simpleperf_unit_test on windows.

Fix test failures caused by path separator and newline character.

Bug: 117568547
Test: run simpleperf_unit_test on windows.
Change-Id: I0522268368a2288893ecd52f505382c512d1d7c9

5 years agoMerge "partition_tools: Update for multiple block device support."
David Anderson [Mon, 29 Oct 2018 20:57:06 +0000 (20:57 +0000)]
Merge "partition_tools: Update for multiple block device support."

5 years agoMerge changes from topic "e4crypt_to_fscrypt"
Eric Biggers [Mon, 29 Oct 2018 17:19:39 +0000 (17:19 +0000)]
Merge changes from topic "e4crypt_to_fscrypt"

* changes:
  libfscrypt: get the fscrypt kernel API declarations from linux/fs.h
  Refactor "ext4 encryption" code into libfscrypt

5 years agopartition_tools: Update for multiple block device support.
David Anderson [Wed, 24 Oct 2018 00:52:57 +0000 (17:52 -0700)]
partition_tools: Update for multiple block device support.

lpmake: Support multiple block devices in super. This adds a --device
command that can be used to span super across multiple block devices.
Example:

    lpmake --device "system_a:10240000:0:0"
           --device "vendor_a:5120000:0:0"
           --device "product_a:2560000:0:0"
           ...

lpdump: Display the block device for each extent.

Bug: 116802789
Test: manual test of lpmake
Test: lpdump /dev/block/by-name/super
Change-Id: I2e0ec54daf3b4fde04115ea646a7622426f67496

5 years agolibfscrypt: get the fscrypt kernel API declarations from linux/fs.h
Eric Biggers [Tue, 23 Oct 2018 20:39:07 +0000 (13:39 -0700)]
libfscrypt: get the fscrypt kernel API declarations from linux/fs.h

bionic now has linux/fs.h from the 4.14 kernel, which has the fscrypt
kernel API declarations.  Replace the manual declarations in libfscrypt,
except for the mode numbers which are not supported by the upstream
kernel.

Test: built, booted device with f2fs encryption
Change-Id: I6c663813828e3e0639d9be4298bff2bd4ec36c66

5 years agoRefactor "ext4 encryption" code into libfscrypt
Eric Biggers [Tue, 23 Oct 2018 20:39:07 +0000 (13:39 -0700)]
Refactor "ext4 encryption" code into libfscrypt

File-based encryption related code no longer belongs in ext4_utils, as
it is now used on both ext4 and f2fs, since both filesystems share the
same kernel API for encryption.  Refactor it into its own library,
libfscrypt.

Note that the keyring is renamed from "e4crypt" to "fscrypt", which is
technically a user-visible change, but as far as I know nothing depends
on it other than vold which is being updated too.

Test: built, booted device with f2fs encryption
Change-Id: I3c302564262412a5d5e672bd213e7cfada5f49cc

5 years agoMerge "Fix variable unpacking mismatch in bootanalyze.py"
Treehugger Robot [Thu, 25 Oct 2018 23:22:20 +0000 (23:22 +0000)]
Merge "Fix variable unpacking mismatch in bootanalyze.py"

5 years agoFix variable unpacking mismatch in bootanalyze.py
Tom Cherry [Thu, 25 Oct 2018 21:22:15 +0000 (14:22 -0700)]
Fix variable unpacking mismatch in bootanalyze.py

Fix for the below mismatch that I've seen in recent boot time runs

BootAnimEnd time or BootComplete-kernel not captured in both log,
cannot get time diff
    main()
  File "system/extras/boottime_tools/bootanalyze/bootanalyze.py", line 123, in main
    error_time, components_to_monitor)
ValueError: need more than 4 values to unpack

Test: no unpack mismatch in recent runs
Change-Id: I4d39453964b9b4036d6c0aaff6cac1b030865445

5 years agoMerge "partition_tools: Update lpdump for metadata format changes."
David Anderson [Thu, 25 Oct 2018 18:54:55 +0000 (18:54 +0000)]
Merge "partition_tools: Update lpdump for metadata format changes."

5 years agoMerge pie-platform-release to aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 21:48:18 +0000 (14:48 -0700)]
Merge pie-platform-release to aosp-master - DO NOT MERGE

Change-Id: Id7b62baaf4af7826840284c5ff4c7a96046660d0

5 years agoMerge "libpagemap: pm_map: skip pages that are neither present nor swapped."
Treehugger Robot [Wed, 24 Oct 2018 18:19:19 +0000 (18:19 +0000)]
Merge "libpagemap: pm_map: skip pages that are neither present nor swapped."

5 years agoMerge "Add preloads_copy script"
Anton Hansson [Wed, 24 Oct 2018 17:09:11 +0000 (17:09 +0000)]
Merge "Add preloads_copy script"

5 years agoMerge "libperfmgr: update to c++17 and add tidy rule"
Wei Wang [Wed, 24 Oct 2018 15:04:46 +0000 (15:04 +0000)]
Merge "libperfmgr: update to c++17 and add tidy rule"

5 years agoAdd preloads_copy script
Anton Hansson [Tue, 23 Oct 2018 15:26:32 +0000 (16:26 +0100)]
Add preloads_copy script

Copied from device/google/crosshatch, to serve as the canonical
location for this script to be shared between devices.

Bug: 80508492
Test: make
Change-Id: I567c785af0a690fbbba3df0553922735b96f7390

5 years agolibperfmgr: update to c++17 and add tidy rule
Wei Wang [Wed, 24 Oct 2018 05:44:31 +0000 (22:44 -0700)]
libperfmgr: update to c++17 and add tidy rule

Test: libperfmgr_test
Change-Id: If8162ebc1eb9489429e7f9792b3422f3ae46093b

5 years agolibpagemap: pm_map: skip pages that are neither present nor swapped.
Sandeep Patil [Tue, 9 Oct 2018 20:58:01 +0000 (13:58 -0700)]
libpagemap: pm_map: skip pages that are neither present nor swapped.

The pm_map_workingset() code needlessly iterates through all the pages
in the map regardless of whether they are actually present or not. Fix
that by skipping the page if its not swapped AND not present.

Bug: 111694435
Test: procmem -h -w 1

Change-Id: I8f16e8c516a5272ebeaa537c07b08ae9f41b73ca
Signed-off-by: Sandeep Patil <sspatil@google.com>
5 years agoMark libverity_tree as recovery_available for update_engine_sideload
Dan Willemsen [Tue, 23 Oct 2018 21:15:23 +0000 (14:15 -0700)]
Mark libverity_tree as recovery_available for update_engine_sideload

Test: build update_engine_sideload
Change-Id: I9a77e5e45f5acb0e7e3be0b6b080997c2b110691

5 years agoMerge "libperfmgr: clean up log format"
Treehugger Robot [Tue, 23 Oct 2018 00:52:13 +0000 (00:52 +0000)]
Merge "libperfmgr: clean up log format"

5 years agolibperfmgr: clean up log format
Wei Wang [Mon, 22 Oct 2018 22:19:46 +0000 (15:19 -0700)]
libperfmgr: clean up log format

Test: Build and libperfmgr_test passed
Change-Id: Ie0bf6c49f1d3f2660729b4fea9bb8aab30eea154

5 years agopartition_tools: Update lpdump for metadata format changes.
David Anderson [Mon, 22 Oct 2018 19:19:27 +0000 (12:19 -0700)]
partition_tools: Update lpdump for metadata format changes.

Bug: 116802789
Test: lpdump super_empty.img
Change-Id: I62cd28333413897e30a4673b7f97490c984f6611

5 years agoMerge "HintManager: Fix verbose message output"
Treehugger Robot [Mon, 22 Oct 2018 18:38:27 +0000 (18:38 +0000)]
Merge "HintManager: Fix verbose message output"

5 years agoHintManager: Fix verbose message output
Greg Kaiser [Mon, 22 Oct 2018 13:53:09 +0000 (06:53 -0700)]
HintManager: Fix verbose message output

The << bitshift operator has a higher precedence than the
ternary ?: conditional operator.  Thus, we need to use parentheses
to make sure we get "true" or "false" output as desired.

Test: TreeHugger
Change-Id: Iaa6e3e36e4944aa535b10490624332efba8f8a2f

5 years agoMerge "libperfmgr: Add a new type of node to manage property"
Wei Wang [Sun, 21 Oct 2018 03:19:21 +0000 (03:19 +0000)]
Merge "libperfmgr: Add a new type of node to manage property"

5 years agolibperfmgr: Add a new type of node to manage property
Wei Wang [Sat, 20 Oct 2018 04:57:04 +0000 (21:57 -0700)]
libperfmgr: Add a new type of node to manage property

PowerHAL sometimes need set properties, adding a new type of node to
support this usage.

Change-Id: I0c04df831d10f16a37f6ae5ae234a9ef34fc5f54
Merged-In: I18a4a50993e262c59460dc5e6cbace22b2b50047
Fixes: 116731391
Bug: 110166984
Test: Add new unit tests and libperfmgr_test passing

5 years agoMerge "libfec: Drop the extern "C" wrapping."
Tao Bao [Thu, 18 Oct 2018 23:33:15 +0000 (23:33 +0000)]
Merge "libfec: Drop the extern "C" wrapping."

5 years agolibfec: Drop the extern "C" wrapping.
Tao Bao [Thu, 18 Oct 2018 22:14:26 +0000 (15:14 -0700)]
libfec: Drop the extern "C" wrapping.

squashfs_utils.h does it in its header.

Test: `mmma -j system/extra/libfec`
Change-Id: I8cc4b5e281fe5649cbb92021285e05e8a5f28ebf

5 years agoMerge "simpleperf: handle memfds created by memfd_create."
Treehugger Robot [Thu, 18 Oct 2018 03:25:39 +0000 (03:25 +0000)]
Merge "simpleperf: handle memfds created by memfd_create."

5 years agosimpleperf: handle memfds created by memfd_create.
Yabin Cui [Thu, 18 Oct 2018 00:19:56 +0000 (17:19 -0700)]
simpleperf: handle memfds created by memfd_create.

memfds can be created by ART to store jit code. Map records of them
can override map records of jitted methods. So omit them.

Bug: none
Test: run simpleperf_unit_test.
Test: run simpleperf manually.
Change-Id: Ie800ecfea8f0c0d7de8cee452fb1553c30de22e1

5 years agoMerge "partition_tools: Update lpdump to build against liblp changes."
Treehugger Robot [Tue, 16 Oct 2018 23:41:42 +0000 (23:41 +0000)]
Merge "partition_tools: Update lpdump to build against liblp changes."

5 years agoMerge "Revert "simpleperf: enforce clockid support in Android Q.""
Treehugger Robot [Tue, 16 Oct 2018 02:58:57 +0000 (02:58 +0000)]
Merge "Revert "simpleperf: enforce clockid support in Android Q.""

5 years agoRevert "simpleperf: enforce clockid support in Android Q."
Yabin Cui [Mon, 15 Oct 2018 23:36:16 +0000 (23:36 +0000)]
Revert "simpleperf: enforce clockid support in Android Q."

This reverts commit 4bf4bfaafdfb264ded7f4f9aeb6ad874dbe179d5.

Reason for revert: it requires new kernel features in upgrading devices.

Bug: 115760286
Change-Id: I391562560e5f1ad93f2cce7f784eae1108e680a9

5 years agopartition_tools: Update lpdump to build against liblp changes.
David Anderson [Fri, 12 Oct 2018 00:52:24 +0000 (17:52 -0700)]
partition_tools: Update lpdump to build against liblp changes.

Bug: 116802789
Test: mm lpdump
Change-Id: If559c07e403fdeddc3a44e2cad7e5435bdd71ca6

5 years agoMerge PPR2.181005.003 from pi-release-2 into pi-platform-release.
Bill Rassieur [Wed, 10 Oct 2018 17:32:39 +0000 (17:32 +0000)]
Merge PPR2.181005.003 from pi-release-2 into pi-platform-release.

Change-Id: I33214d649d8c198193394f9a1551c17485ce1f68
BUG: 117431430

5 years agoMerge "Perfprofd: Introduce libsimpleperf_dex_read and read vdex files"
Treehugger Robot [Fri, 5 Oct 2018 20:26:26 +0000 (20:26 +0000)]
Merge "Perfprofd: Introduce libsimpleperf_dex_read and read vdex files"

5 years agoMerge "Add noexcept to move constructors and assignment operators."
Treehugger Robot [Fri, 5 Oct 2018 17:52:19 +0000 (17:52 +0000)]
Merge "Add noexcept to move constructors and assignment operators."

5 years agoAdd noexcept to move constructors and assignment operators.
Chih-Hung Hsieh [Tue, 25 Sep 2018 21:30:16 +0000 (14:30 -0700)]
Add noexcept to move constructors and assignment operators.

Bug: 116614593
Test: build with WITH_TIDY=1
Change-Id: I92ae7348e51e0610cef54b80087189bb1fe5b12c

5 years agoMerge "Simpleperf: Use defaults to pass static libs"
Andreas Gampe [Fri, 5 Oct 2018 00:01:44 +0000 (00:01 +0000)]
Merge "Simpleperf: Use defaults to pass static libs"

5 years agoMerge "Add new parameter for creation of MapInfo object."
Christopher Ferris [Thu, 4 Oct 2018 22:38:26 +0000 (22:38 +0000)]
Merge "Add new parameter for creation of MapInfo object."

5 years agoMerge "Simpleperf: Add enh to OWNERS"
Treehugger Robot [Thu, 4 Oct 2018 18:46:14 +0000 (18:46 +0000)]
Merge "Simpleperf: Add enh to OWNERS"

5 years agoMerge "partition_tools: Remove references to partition guid."
David Anderson [Thu, 4 Oct 2018 18:20:47 +0000 (18:20 +0000)]
Merge "partition_tools: Remove references to partition guid."

5 years agoSimpleperf: Add enh to OWNERS
Andreas Gampe [Thu, 4 Oct 2018 17:29:49 +0000 (10:29 -0700)]
Simpleperf: Add enh to OWNERS

Change-Id: I9935bee245c05c09f52bd903b14c6879dd96477d
Exempt-From-Owner-Approval: Adding owner
Test: N/A

5 years agopartition_tools: Remove references to partition guid.
David Anderson [Thu, 4 Oct 2018 15:38:09 +0000 (08:38 -0700)]
partition_tools: Remove references to partition guid.

Bug: 117229984
Test: builds with PRODUCT_USE_LOGICAL_PARTITIONS=true
Change-Id: Ibba49f7a066fd190f8431253302f1437f07ba6dd

5 years agoMerge "Add /data/apex to directories that don't need to be encrypted."
Martijn Coenen [Thu, 4 Oct 2018 07:08:54 +0000 (07:08 +0000)]
Merge "Add /data/apex to directories that don't need to be encrypted."

5 years agoAdd new parameter for creation of MapInfo object.
Christopher Ferris [Wed, 3 Oct 2018 21:14:36 +0000 (14:14 -0700)]
Add new parameter for creation of MapInfo object.

Bug: 109657296

Test: Unit tests pass.
Change-Id: Ifa7ac689467b10728bfbbbfae0c6f78b20b78cda

5 years agoMerge "partition_tools: Add support for partition groups."
Treehugger Robot [Wed, 3 Oct 2018 20:33:45 +0000 (20:33 +0000)]
Merge "partition_tools: Add support for partition groups."

5 years agoAdd /data/apex to directories that don't need to be encrypted.
Martijn Coenen [Wed, 3 Oct 2018 14:56:15 +0000 (16:56 +0200)]
Add /data/apex to directories that don't need to be encrypted.

There's no user data there, just code.

Bug: 112455435
Test: Using an APEX with Direct I/O in /data/apex works again
Change-Id: I5e5557445ea5d638d2dfc4db7d782ee2da207bc1

5 years agopartition_tools: Add support for partition groups.
David Anderson [Wed, 3 Oct 2018 01:50:12 +0000 (18:50 -0700)]
partition_tools: Add support for partition groups.

lpmake: Add a new -g/--groups parameter to add partition groups. The
syntax is name:size. In addition, a fifth argument can be added to
-p/--partition, to specify a group for that partition. Example:

  lpmake --group google:102400000 \
         --partition system:UUID:readonly:4096:google

In addition, lpdump will now display the groups table and group
assignments.

Bug: 116817738
Test: lpmake with --groups
      lpdump new partition table

Change-Id: Ic1eb995f3bcf5abc7be180ac03c8ba4b82a10045

5 years agoMerge "verity: Support partial blocks in Update()."
Sen Jiang [Wed, 3 Oct 2018 00:16:31 +0000 (00:16 +0000)]
Merge "verity: Support partial blocks in Update()."