OSDN Git Service

android-x86/system-extras.git
5 years agoMerge "libfscrypt: Do not encrypt the "gsi" folder." am: de8da60180 am: 63c62374b7
David Anderson [Wed, 27 Feb 2019 20:11:33 +0000 (12:11 -0800)]
Merge "libfscrypt: Do not encrypt the "gsi" folder." am: de8da60180 am: 63c62374b7
am: a256698132

Change-Id: Ic49d3a28f86fe61560b0562baf1690e2248caad0

5 years agoMerge "libfscrypt: Do not encrypt the "gsi" folder." am: de8da60180
David Anderson [Wed, 27 Feb 2019 20:07:12 +0000 (12:07 -0800)]
Merge "libfscrypt: Do not encrypt the "gsi" folder." am: de8da60180
am: 63c62374b7

Change-Id: I268dedba401b9944d97dcdd7fe895da4104e342a

5 years agoMerge "libfscrypt: Do not encrypt the "gsi" folder."
David Anderson [Wed, 27 Feb 2019 19:56:28 +0000 (11:56 -0800)]
Merge "libfscrypt: Do not encrypt the "gsi" folder."
am: de8da60180

Change-Id: Iaf0da57d4d0829b49f87ec57886a156b01d786f1

5 years agoMerge "libfscrypt: Do not encrypt the "gsi" folder."
David Anderson [Wed, 27 Feb 2019 19:48:14 +0000 (19:48 +0000)]
Merge "libfscrypt: Do not encrypt the "gsi" folder."

5 years agoMerge "Fix build error of generating fec data" am: 1efeb1d970 am: 918742ac86
Sami Tolvanen [Tue, 26 Feb 2019 16:35:27 +0000 (08:35 -0800)]
Merge "Fix build error of generating fec data" am: 1efeb1d970 am: 918742ac86
am: 66bd9398c6

Change-Id: Ie48fb0133fbb82892d0346f5b2fd712bb76bc906

5 years agoMerge "Fix build error of generating fec data" am: 1efeb1d970
Sami Tolvanen [Tue, 26 Feb 2019 16:31:12 +0000 (08:31 -0800)]
Merge "Fix build error of generating fec data" am: 1efeb1d970
am: 918742ac86

Change-Id: Id85c5ed4936d1ed7f8463b483e9e942e8ef72e6f

5 years agoMerge "Fix build error of generating fec data"
Sami Tolvanen [Tue, 26 Feb 2019 16:26:58 +0000 (08:26 -0800)]
Merge "Fix build error of generating fec data"
am: 1efeb1d970

Change-Id: I4e1bb2582335cc89785a0a668432b1e498c2f5a8

5 years agoMerge "Fix build error of generating fec data"
Sami Tolvanen [Tue, 26 Feb 2019 16:17:07 +0000 (16:17 +0000)]
Merge "Fix build error of generating fec data"

5 years agoMerge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external...
Martin Stjernholm [Tue, 26 Feb 2019 08:18:48 +0000 (00:18 -0800)]
Merge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external." am: c65e54940b am: 653e8b4615
am: ad08fc2939

Change-Id: I7941cc0cb5cc7483791829a294224ec0c201f7c0

5 years agoMerge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external...
Martin Stjernholm [Tue, 26 Feb 2019 07:29:08 +0000 (23:29 -0800)]
Merge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external." am: c65e54940b
am: 653e8b4615

Change-Id: Ia99308c3494e39b7a4bf05d14c0efa1f9c85133e

5 years agoMerge "cppreopts: remove DAC capabilities" am: f7d22c0919 am: 5cef3f8263
Jeff Vander Stoep [Tue, 26 Feb 2019 07:13:29 +0000 (23:13 -0800)]
Merge "cppreopts: remove DAC capabilities" am: f7d22c0919 am: 5cef3f8263
am: 4adf2fadde

Change-Id: Ib790c1df1aac03a0669aa9105c31b6fe10c4081d

5 years agoMerge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external."
Martin Stjernholm [Tue, 26 Feb 2019 07:09:24 +0000 (23:09 -0800)]
Merge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external."
am: c65e54940b

Change-Id: I2ecef404bfe0277f88278d2b8623d3b58b23a46b

5 years agoMerge "cppreopts: remove DAC capabilities" am: f7d22c0919
Jeff Vander Stoep [Tue, 26 Feb 2019 07:03:07 +0000 (23:03 -0800)]
Merge "cppreopts: remove DAC capabilities" am: f7d22c0919
am: 5cef3f8263

Change-Id: I8bcb4597e2debc9f7fb2ae7092d12ec3f5684d0b

5 years agoMerge "cppreopts: remove DAC capabilities"
Jeff Vander Stoep [Tue, 26 Feb 2019 06:51:41 +0000 (22:51 -0800)]
Merge "cppreopts: remove DAC capabilities"
am: f7d22c0919

Change-Id: I20f23abaaddd7e29ae8ddf9a9167928b08ad1938

5 years agoMerge "su: fix the command line syntax." am: ec993d71cf am: 0d827f3e57
Elliott Hughes [Tue, 26 Feb 2019 06:14:31 +0000 (22:14 -0800)]
Merge "su: fix the command line syntax." am: ec993d71cf am: 0d827f3e57
am: fd230bf39b

Change-Id: I4481dd39645276593b815f5481f45bb825b1491a

5 years agoMerge "su: fix the command line syntax." am: ec993d71cf
Elliott Hughes [Tue, 26 Feb 2019 06:02:12 +0000 (22:02 -0800)]
Merge "su: fix the command line syntax." am: ec993d71cf
am: 0d827f3e57

Change-Id: I02fe3f668d9d43b547ad8839b5d793c593f17c25

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-maste...
Xin Li [Tue, 26 Feb 2019 05:28:53 +0000 (21:28 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master am: d792a6af1a -s ours
am: 0143f90169 -s ours
am skip reason: subject contains skip directive

Change-Id: I680fe1e275d0f0054e624fb0d31d2ef84b4a2162

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-maste...
Xin Li [Tue, 26 Feb 2019 04:52:44 +0000 (20:52 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master
am: d792a6af1a -s ours
am skip reason: subject contains skip directive

Change-Id: I5abb890b103a6a5b880698d04c16c861c1551e6c

5 years agolibfscrypt: Do not encrypt the "gsi" folder.
David Anderson [Tue, 26 Feb 2019 00:34:24 +0000 (16:34 -0800)]
libfscrypt: Do not encrypt the "gsi" folder.

On FBE devices without metadata encryption, GSI images must not be
encrypted, since they are written using normal write() calls rather than
going through device-mapper.

Bug: 126249541
Test: GSI works on FBE device without metadata encryption
Change-Id: Ie14be778eb4a7f18dd8ea33a044ba86f909f3cce

5 years agoMerge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external."
Treehugger Robot [Mon, 25 Feb 2019 20:59:13 +0000 (20:59 +0000)]
Merge "Fix libdexfile dependencies to avoid direct dependency on libdexfile_external."

5 years agoMerge "cppreopts: remove DAC capabilities"
Treehugger Robot [Mon, 25 Feb 2019 20:21:52 +0000 (20:21 +0000)]
Merge "cppreopts: remove DAC capabilities"

5 years agocppreopts: remove DAC capabilities
Jeff Vander Stoep [Sat, 23 Feb 2019 14:08:43 +0000 (06:08 -0800)]
cppreopts: remove DAC capabilities

Define service for cppreopts.sh in order to drop DAC capabilities for
for it and its children. Capabilities were already blocked by SELinux
so this does not cause a functional change, but rather shifts the
blocking mechanism to the DAC capability check which fails less
noisily. Otherwise, this change is intended to preserve the previous
behavior and uses "exec_start" to presever the blocking behavior of
"exec".

This prevents an selinux denial which is causing occasional presubmit
failures:
avc: denied { sys_resource } for comm="preopt2cachenam" capability=24
scontext=u:r:preopt2cachename:s0 tcontext=u:r:preopt2cachename:s0
tclass=capability permissive=0

Bug: 79414024
Test: Boot a phone with the cppreopts feature. Verify no logcat errors and all
the files are copied to the location given by preopt2cachename.
Change-Id: If630b53d32c3c0414939b1f8db8d486406003567

5 years ago[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master am...
Xin Li [Mon, 25 Feb 2019 16:25:07 +0000 (08:25 -0800)]
[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master am: 97b9015991 -s ours
am: 987971bf3a -s ours
am skip reason: subject contains skip directive

Change-Id: I3f0457d503c82b054be3288a19d878b9fc088623

5 years ago[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Xin Li [Mon, 25 Feb 2019 15:25:05 +0000 (07:25 -0800)]
[automerger skipped] DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
am: 97b9015991 -s ours
am skip reason: subject contains skip directive

Change-Id: Icef4a9d79b578d4f0fe55715b16190b4f60c6a7e

5 years agoFix libdexfile dependencies to avoid direct dependency on libdexfile_external.
Martin Stjernholm [Wed, 20 Feb 2019 16:58:42 +0000 (16:58 +0000)]
Fix libdexfile dependencies to avoid direct dependency on libdexfile_external.

It should be dlopen'ed lazily by libdexfile_support now.

Test: mmma system/extras/simpleperf
Test: atest simpleperf_unit_test
  (1 failure in cpu_offline test, but that happens even without this CL)
Bug: 124827589
Bug: 123186083
Change-Id: Ibeb37b130f0081965b986622794f60ec75cd2e17

5 years agoFix build error of generating fec data
Jinguang Dong [Sat, 23 Feb 2019 04:14:36 +0000 (12:14 +0800)]
Fix build error of generating fec data

When we make the fec data for spare images, we will check each
chunk the length of spare image but not the total length.
If the libspare sends the data which is not a multiple of 4096,
there is an error.

We have reproduced it using our image.

The data is send by
https://android.googlesource.com/platform/system/core/+/fca4a9c27950a4a4281de0f413280cff9f4da653/libsparse/output_file.cpp#272

, and is checked by
https://android.googlesource.com/platform/system/extras/+/29bf737e56e10c2742f1e14fe9f07184d59bbcc0/verity/fec/image.cpp#179

If the to_write in first link is equal INT_MAX, the assert in second
link will be failed.

Test: use fec to product fec data successfully
      ./fec --encode --roots 2 system.img fecdata

Change-Id: Ib1e310a32bcda8acb3785d3784537d84fd439732

5 years agoMerge "su: fix the command line syntax."
Elliott Hughes [Sat, 23 Feb 2019 05:19:05 +0000 (21:19 -0800)]
Merge "su: fix the command line syntax."
am: ec993d71cf

Change-Id: I560b5f1ef15cd2a0cccdfe30bd8ace1cf83bc2c5

5 years agoMerge "su: fix the command line syntax."
Elliott Hughes [Sat, 23 Feb 2019 05:10:40 +0000 (05:10 +0000)]
Merge "su: fix the command line syntax."

5 years agoAdd dump of long monitor contention
Keun-young Park [Thu, 21 Feb 2019 04:01:32 +0000 (20:01 -0800)]
Add dump of long monitor contention

- Long monitor contention during boot up affects boot up performance.
- Dump long monitor contention over 100ms.

Bug: 124950798
Test: python system/extras/boottime_tools/bootanalyze/bootanalyze.py -c system/extras/boottime_tools/bootanalyze/config.yaml -n 10 -r -t
Change-Id: I22cc7bc3d19f53acb8e213d9155f6f2390292d92

5 years agoMerge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp...
Xin Li [Thu, 21 Feb 2019 07:04:38 +0000 (07:04 +0000)]
Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master

5 years agosu: fix the command line syntax.
Elliott Hughes [Thu, 21 Feb 2019 06:38:23 +0000 (22:38 -0800)]
su: fix the command line syntax.

Test: `su --help`
Change-Id: I08f2e897b6d472f1748574aa162555ac8adfc05e

5 years agoMerge "simpleperf: add api_app_profiler.py." am: 5e64dcd02e am: faf723af39
Yabin Cui [Thu, 21 Feb 2019 01:34:06 +0000 (17:34 -0800)]
Merge "simpleperf: add api_app_profiler.py." am: 5e64dcd02e am: faf723af39
am: d10b469dec

Change-Id: Ib8b918978bc6cac7b23e5117fe1b4fe24b6a2d4b

5 years agoMerge "simpleperf: Add Java/C++ API to control simpleperf in app code." am: d3eccf50e...
Yabin Cui [Thu, 21 Feb 2019 01:33:49 +0000 (17:33 -0800)]
Merge "simpleperf: Add Java/C++ API to control simpleperf in app code." am: d3eccf50e8 am: 9a1e2f07ce
am: a93bf1942f

Change-Id: I9a7cca075df9318305e6a25b803338e5da71ed67

5 years agoMerge "simpleperf: add api_app_profiler.py." am: 5e64dcd02e
Yabin Cui [Thu, 21 Feb 2019 01:15:50 +0000 (17:15 -0800)]
Merge "simpleperf: add api_app_profiler.py." am: 5e64dcd02e
am: faf723af39

Change-Id: I82d7d711129b5d0c33aee4c7eb9c2180f3cd3404

5 years agoMerge "simpleperf: Add Java/C++ API to control simpleperf in app code." am: d3eccf50e8
Yabin Cui [Thu, 21 Feb 2019 01:15:33 +0000 (17:15 -0800)]
Merge "simpleperf: Add Java/C++ API to control simpleperf in app code." am: d3eccf50e8
am: 9a1e2f07ce

Change-Id: I64e508a207bdce9601419a2b65083a2f174b7c7a

5 years agoMerge "simpleperf: add api_app_profiler.py."
Yabin Cui [Thu, 21 Feb 2019 01:02:05 +0000 (17:02 -0800)]
Merge "simpleperf: add api_app_profiler.py."
am: 5e64dcd02e

Change-Id: I7aeb0bc7329a208c651083d88357716f18c346c0

5 years agoMerge "simpleperf: Add Java/C++ API to control simpleperf in app code."
Yabin Cui [Thu, 21 Feb 2019 01:01:53 +0000 (17:01 -0800)]
Merge "simpleperf: Add Java/C++ API to control simpleperf in app code."
am: d3eccf50e8

Change-Id: Ia3de5ebc24db32ef2781bcbaf113f5aad3d38b60

5 years agoMerge "simpleperf: add api_app_profiler.py."
Yabin Cui [Thu, 21 Feb 2019 00:48:17 +0000 (00:48 +0000)]
Merge "simpleperf: add api_app_profiler.py."

5 years agoMerge "simpleperf: Add Java/C++ API to control simpleperf in app code."
Yabin Cui [Thu, 21 Feb 2019 00:48:17 +0000 (00:48 +0000)]
Merge "simpleperf: Add Java/C++ API to control simpleperf in app code."

5 years agoDO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Xin Li [Thu, 21 Feb 2019 00:20:08 +0000 (16:20 -0800)]
DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master

Bug: 120848293
Change-Id: I99cfd48e17ee28ee0d644aed0f11b71fb14277c0

5 years agoMerge changes from topic "libprocessgroup_json" am: 9a406fb9b0 am: 049d6b4b7b
Yifan Hong [Wed, 20 Feb 2019 23:18:50 +0000 (15:18 -0800)]
Merge changes from topic "libprocessgroup_json" am: 9a406fb9b0 am: 049d6b4b7b
am: af6d32c43d

Change-Id: I71df758a2cf7f9310459311b5e41f6a2a382c037

5 years agoMerge changes from topic "libprocessgroup_json" am: 9a406fb9b0
Yifan Hong [Wed, 20 Feb 2019 22:58:21 +0000 (14:58 -0800)]
Merge changes from topic "libprocessgroup_json" am: 9a406fb9b0
am: 049d6b4b7b

Change-Id: Ib29b3ada01b6fdc293ed154ed52f019bee8ad4f7

5 years agoMerge changes from topic "libprocessgroup_json"
Yifan Hong [Wed, 20 Feb 2019 22:05:30 +0000 (14:05 -0800)]
Merge changes from topic "libprocessgroup_json"
am: 9a406fb9b0

Change-Id: I2affe1b197438dfbaff380bd2924e0a3fa3e7d6c

5 years agosimpleperf: add api_app_profiler.py.
Yabin Cui [Fri, 15 Feb 2019 00:56:37 +0000 (16:56 -0800)]
simpleperf: add api_app_profiler.py.

It is used to help the API controlling simpleperf in app code.

Bug: 123717243
Test: run api_app_profiler.py to help profile app CppApi and JavaApi.
Change-Id: I1ada2ad9fbf040816db999632f4300c496c63a58

5 years agosimpleperf: Add Java/C++ API to control simpleperf in app code.
Yabin Cui [Fri, 15 Feb 2019 00:23:05 +0000 (16:23 -0800)]
simpleperf: Add Java/C++ API to control simpleperf in app code.

Also add JavaApi app to test the Java API, and CppApi App to test
the C++ API.
Also expose help msgs for options used in the API.

Bug: 123717243
Test: run apps manually and verify the generated profiling data.
Change-Id: I64c9de82b3f7eb3d76c6aff0703e12ce33233e49

5 years agoMerge "Rename /data/staging to /data/pkg_staging." am: c45961b146 am: 54bb992148
Dario Freni [Wed, 20 Feb 2019 20:38:53 +0000 (12:38 -0800)]
Merge "Rename /data/staging to /data/pkg_staging." am: c45961b146 am: 54bb992148
am: ab35f1a7d7

Change-Id: Idf93456829decc06921cce6231d6867046de3ae6

5 years agoMerge changes from topic "libprocessgroup_json"
Yifan Hong [Wed, 20 Feb 2019 20:35:47 +0000 (20:35 +0000)]
Merge changes from topic "libprocessgroup_json"

* changes:
  Add libjsonpbverify.
  Add libjsonpbparse.

5 years agoMerge "Rename /data/staging to /data/pkg_staging." am: c45961b146
Dario Freni [Wed, 20 Feb 2019 20:06:47 +0000 (12:06 -0800)]
Merge "Rename /data/staging to /data/pkg_staging." am: c45961b146
am: 54bb992148

Change-Id: I5880a70ba17e860fd17a1b9943a537e8b576825f

5 years agoMerge "Rename /data/staging to /data/pkg_staging."
Dario Freni [Wed, 20 Feb 2019 19:30:54 +0000 (11:30 -0800)]
Merge "Rename /data/staging to /data/pkg_staging."
am: c45961b146

Change-Id: I774ac98004a2e10bf5cf0cdc7a831429f121bae4

5 years agoMerge "Rename /data/staging to /data/pkg_staging."
Treehugger Robot [Wed, 20 Feb 2019 16:33:20 +0000 (16:33 +0000)]
Merge "Rename /data/staging to /data/pkg_staging."

5 years agoRename /data/staging to /data/pkg_staging.
Dario Freni [Wed, 20 Feb 2019 14:30:18 +0000 (14:30 +0000)]
Rename /data/staging to /data/pkg_staging.

Bug: 122999313
Test: n/a
Change-Id: I4f9086ac5ded56e1a8ba4e97f449f502b88f7634

5 years agoMerge "simpleperf: Adjust callback for procinfo::ReadProcessMaps" am: c3476378f2...
Sandeep Patil [Fri, 15 Feb 2019 23:26:49 +0000 (15:26 -0800)]
Merge "simpleperf: Adjust callback for procinfo::ReadProcessMaps" am: c3476378f2 am: 328577af1c
am: 855eb262ae

Change-Id: I768793d8233af502b97e7ec4515f1c6ebdfc139b

5 years agoMerge "simpleperf: Adjust callback for procinfo::ReadProcessMaps" am: c3476378f2
Sandeep Patil [Fri, 15 Feb 2019 23:17:03 +0000 (15:17 -0800)]
Merge "simpleperf: Adjust callback for procinfo::ReadProcessMaps" am: c3476378f2
am: 328577af1c

Change-Id: I686616578dfc302fd638d2ac60434c2798c74865

5 years agoMerge "simpleperf: Adjust callback for procinfo::ReadProcessMaps"
Sandeep Patil [Fri, 15 Feb 2019 23:09:58 +0000 (15:09 -0800)]
Merge "simpleperf: Adjust callback for procinfo::ReadProcessMaps"
am: c3476378f2

Change-Id: I31beded89374df80fbcbd6bf37486af707716622

5 years agoMerge "simpleperf: Adjust callback for procinfo::ReadProcessMaps"
Treehugger Robot [Fri, 15 Feb 2019 23:03:00 +0000 (23:03 +0000)]
Merge "simpleperf: Adjust callback for procinfo::ReadProcessMaps"

5 years agoMerge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks." am: ecb8e06a5...
Elliott Hughes [Fri, 15 Feb 2019 06:30:01 +0000 (22:30 -0800)]
Merge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks." am: ecb8e06a53 am: e5b45fed9b
am: 15c98c4459

Change-Id: Ibc396f9c11e0908c7d9d90ad760521514f6ce3e6

5 years agoMerge "simpleperf: prepare for adding user api." am: 235aa04cb8 am: 198020c753
Yabin Cui [Fri, 15 Feb 2019 06:09:07 +0000 (22:09 -0800)]
Merge "simpleperf: prepare for adding user api." am: 235aa04cb8 am: 198020c753
am: c71bdcb9b8

Change-Id: I9831fbfc39ac8b782913fb6bb5f0d96255ae13e6

5 years ago[automerger skipped] Merge "DO NOT MERGE - Skip pi-platform-release (PPRL.190205...
Xin Li [Fri, 15 Feb 2019 05:51:23 +0000 (21:51 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master am: ba1f2c942d -s ours
am: 0d0117da2a -s ours
am skip reason: subject contains skip directive

Change-Id: Ice44073636c572967efe25fad1528f981b4bada0

5 years ago[automerger skipped] DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into...
Xin Li [Fri, 15 Feb 2019 05:13:22 +0000 (21:13 -0800)]
[automerger skipped] DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp-master am: dc7923f4d4 -s ours
am: ccec34ee74 -s ours
am skip reason: subject contains skip directive

Change-Id: I2ddb9f2d5d04d09592d674a6da37971fd434aa95

5 years agoMerge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks." am: ecb8e06a53
Elliott Hughes [Fri, 15 Feb 2019 04:42:33 +0000 (20:42 -0800)]
Merge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks." am: ecb8e06a53
am: e5b45fed9b

Change-Id: Ia0b610537fd828ec64418cfaabf133c046fce505

5 years agoMerge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks."
Elliott Hughes [Fri, 15 Feb 2019 04:17:14 +0000 (20:17 -0800)]
Merge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks."
am: ecb8e06a53

Change-Id: I167d928de133c5dbc607d93337bf17e2c5016771

5 years agoMerge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks."
Treehugger Robot [Fri, 15 Feb 2019 04:05:29 +0000 (04:05 +0000)]
Merge "memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks."

5 years agoAdd libjsonpbverify.
Yifan Hong [Wed, 13 Feb 2019 22:29:33 +0000 (14:29 -0800)]
Add libjsonpbverify.

- libjsonpbverify is a helper library that a gtest can link against
  when checking JSON files against their protobuf schema.

- Add unittests to ensure these validation functions are correct.
  (libjsonpbverify_test)

- Add tests to mitigate discrepancies of behavior between libjsoncpp
  and libprocessgroup. (libjsonpbverify_test)

- Add tests to impose additional restrictions on proto3 files when
  using them as JSON schema.

Test: libjsonpbverify_test

Bug: 123664216
Change-Id: I1e6257c9a25fd8d10fad103f3b74f7e1c6fad8a6

5 years agoAdd libjsonpbparse.
Yifan Hong [Sat, 9 Feb 2019 00:26:22 +0000 (16:26 -0800)]
Add libjsonpbparse.

- libjsonpbparse is intended to be used in client parsing code,
  but due to libprotobuf versions it can't be used yet. Hence,
  libprocessgroup continue to use libjsoncpp.

Test: builds
Bug: 123664216
Change-Id: I01b08a0e6ba1110f2f3398ddde9333622153dc9a

5 years agoMerge "simpleperf: prepare for adding user api." am: 235aa04cb8
Yabin Cui [Thu, 14 Feb 2019 23:24:40 +0000 (15:24 -0800)]
Merge "simpleperf: prepare for adding user api." am: 235aa04cb8
am: 198020c753

Change-Id: Ibe78634e92996f607369c07814e4faa053f5c6bf

5 years ago[automerger skipped] Merge "DO NOT MERGE - Skip pi-platform-release (PPRL.190205...
Xin Li [Thu, 14 Feb 2019 23:19:00 +0000 (15:19 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master
am: ba1f2c942d -s ours
am skip reason: subject contains skip directive

Change-Id: I6bca785f0f3a98ff8f126e1b9b4a4044dc8c803a

5 years agomemcpy-perf: obsoleted by bionic/benchmarks' string benchmarks.
Elliott Hughes [Thu, 14 Feb 2019 23:05:53 +0000 (15:05 -0800)]
memcpy-perf: obsoleted by bionic/benchmarks' string benchmarks.

Test: N/A
Change-Id: If10d22c971f9d86ca2383de6699af55e9bf3b345

5 years ago[automerger skipped] DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into...
Xin Li [Thu, 14 Feb 2019 22:47:09 +0000 (14:47 -0800)]
[automerger skipped] DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp-master
am: dc7923f4d4 -s ours
am skip reason: subject contains skip directive

Change-Id: I67877c499835c26dd61eacbcc9611052f5ce5ffa

5 years agoMerge "simpleperf: prepare for adding user api."
Yabin Cui [Thu, 14 Feb 2019 22:13:12 +0000 (14:13 -0800)]
Merge "simpleperf: prepare for adding user api."
am: 235aa04cb8

Change-Id: I74a372110584740014a8d7ea4fe5896dd38c40e2

5 years agoMerge "DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp...
Xin Li [Thu, 14 Feb 2019 22:11:36 +0000 (22:11 +0000)]
Merge "DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master

5 years agoMerge "simpleperf: prepare for adding user api."
Yabin Cui [Thu, 14 Feb 2019 22:03:29 +0000 (22:03 +0000)]
Merge "simpleperf: prepare for adding user api."

5 years agosimpleperf: prepare for adding user api.
Yabin Cui [Thu, 7 Feb 2019 19:06:16 +0000 (11:06 -0800)]
simpleperf: prepare for adding user api.

In record cmd, add --stdio-controls-profiling option to
pause/resume profiling. It reads cmds from stdin,
and writes replies to stdout.
Add --log-to-android-buffer option to show simpleperf
logs in logcat.

Bug: 123717243
Test: run simpleperf through user api manually.
Test: run simpleperf_unit_test.

Change-Id: I6c32c669d003cbd670a45e6fd31f764656837111

5 years agoMerge changes from topic "wipe" am: ac80c040c1 am: 47532be9df
Jaegeuk Kim [Thu, 14 Feb 2019 17:22:48 +0000 (09:22 -0800)]
Merge changes from topic "wipe" am: ac80c040c1 am: 47532be9df
am: 56ac42e799

Change-Id: I4dcdc5c279b09846a2806fd5a51496441eaa3838

5 years agoMerge changes from topic "wipe" am: ac80c040c1
Jaegeuk Kim [Thu, 14 Feb 2019 17:14:18 +0000 (09:14 -0800)]
Merge changes from topic "wipe" am: ac80c040c1
am: 47532be9df

Change-Id: Ie2687176a9a7c848be9dec950d151b9c36e71e74

5 years agoMerge changes from topic "wipe"
Jaegeuk Kim [Thu, 14 Feb 2019 17:06:23 +0000 (09:06 -0800)]
Merge changes from topic "wipe"
am: ac80c040c1

Change-Id: I3c821057313f2d09fb82d3999eb08e0143b841f6

5 years agoMerge changes from topic "wipe"
Jaegeuk Kim [Thu, 14 Feb 2019 16:54:46 +0000 (16:54 +0000)]
Merge changes from topic "wipe"

* changes:
  wipe: guarantee zeros after wipe out partitions
  ext4_utils: build by C++

5 years agowipe: guarantee zeros after wipe out partitions
Jaegeuk Kim [Wed, 13 Feb 2019 23:24:01 +0000 (15:24 -0800)]
wipe: guarantee zeros after wipe out partitions

Stale data in the partition can bypass formatting by fs_mgr and cause filesystem
unmountable.

Bug: 122989894
Change-Id: Id2aa4baefeb8308ce14eeaa7790a1aab35e522aa
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
5 years agoext4_utils: build by C++
Jaegeuk Kim [Wed, 13 Feb 2019 23:24:01 +0000 (15:24 -0800)]
ext4_utils: build by C++

With this patch, we can use many library functions.

Bug: 122989894
Change-Id: I761a93d3f6460529a99086e33803e96f1a307079
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
5 years agoMerge "simpleperf: fix symbolization in multi-executable-segments libraries." am...
Yabin Cui [Wed, 13 Feb 2019 19:20:04 +0000 (11:20 -0800)]
Merge "simpleperf: fix symbolization in multi-executable-segments libraries." am: 66d0149f5e am: fbf98e1bf1
am: f5600acd65

Change-Id: Idf2d5cf27429634f61b1d8b5b3b589f57e37f37c

5 years agoMerge "simpleperf: fix symbolization in multi-executable-segments libraries." am...
Yabin Cui [Wed, 13 Feb 2019 19:14:53 +0000 (11:14 -0800)]
Merge "simpleperf: fix symbolization in multi-executable-segments libraries." am: 66d0149f5e
am: fbf98e1bf1

Change-Id: Iaeead5f6d7e876ab1518c42fa38fed57128c740c

5 years agoMerge "simpleperf: fix symbolization in multi-executable-segments libraries."
Yabin Cui [Wed, 13 Feb 2019 19:08:50 +0000 (11:08 -0800)]
Merge "simpleperf: fix symbolization in multi-executable-segments libraries."
am: 66d0149f5e

Change-Id: I81f612749d3c1d0e96df0535701429e9ab7ad54f

5 years agoMerge "simpleperf: fix symbolization in multi-executable-segments libraries."
Yabin Cui [Wed, 13 Feb 2019 18:49:37 +0000 (18:49 +0000)]
Merge "simpleperf: fix symbolization in multi-executable-segments libraries."

5 years agoMerge "Add "instant app" boilerplate" am: 82dfcb76fe am: 4183e1cc8a
Mark Salyzyn [Wed, 13 Feb 2019 00:33:44 +0000 (16:33 -0800)]
Merge "Add "instant app" boilerplate" am: 82dfcb76fe am: 4183e1cc8a
am: 8eabe8f1ce

Change-Id: I8c1296f0f994c3677bcd0bbfc2b1eadce3665eed

5 years agoMerge "Add "instant app" boilerplate" am: 82dfcb76fe
Mark Salyzyn [Wed, 13 Feb 2019 00:24:57 +0000 (16:24 -0800)]
Merge "Add "instant app" boilerplate" am: 82dfcb76fe
am: 4183e1cc8a

Change-Id: Ia0dda0b119baad0e1bfa31ddd060cf6099591921

5 years agoMerge "Add "instant app" boilerplate"
Mark Salyzyn [Wed, 13 Feb 2019 00:18:58 +0000 (16:18 -0800)]
Merge "Add "instant app" boilerplate"
am: 82dfcb76fe

Change-Id: I7bef82ce06d427a6a4378467e15956cba4ce3ff0

5 years agoMerge "Add "instant app" boilerplate"
Treehugger Robot [Wed, 13 Feb 2019 00:00:03 +0000 (00:00 +0000)]
Merge "Add "instant app" boilerplate"

5 years agoDO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp-master
Xin Li [Tue, 12 Feb 2019 18:06:38 +0000 (10:06 -0800)]
DO NOT MERGE - Skip pi-platform-release (PPRL.190205.001) into stage-aosp-master

Bug: 124234733
Change-Id: I3e63ccb065f9037360e105a21bd1d0b54f3cb9a2

5 years agosimpleperf: Adjust callback for procinfo::ReadProcessMaps
Sandeep Patil [Thu, 31 Jan 2019 01:41:27 +0000 (17:41 -0800)]
simpleperf: Adjust callback for procinfo::ReadProcessMaps

Bug: 123532375
Test: Builds

Change-Id: Ib1988cba9f2c5707d7f528fe53565a3448150973
Signed-off-by: Sandeep Patil <sspatil@google.com>
5 years agoSnap for 5180536 from 9ec7ba8443caa905c2ebdf6eadd5e6148a348d37 to pi-platform-release
android-build-team Robot [Sat, 9 Feb 2019 02:17:45 +0000 (02:17 +0000)]
Snap for 5180536 from 9ec7ba8443caa905c2ebdf6eadd5e6148a348d37 to pi-platform-release

Change-Id: I671a68c64e83cb3e88bb12586858f7c41e5b18ed

5 years agoMerge "simpleperf: fix time report in report_sample.py." am: 06d7e3a4e2 am: f5187fc0ae
Yabin Cui [Fri, 8 Feb 2019 19:58:56 +0000 (11:58 -0800)]
Merge "simpleperf: fix time report in report_sample.py." am: 06d7e3a4e2 am: f5187fc0ae
am: edfea62392

Change-Id: I187d9ee3d67299da093e2ba48308248444d31263

5 years agoMerge "simpleperf: fix time report in report_sample.py." am: 06d7e3a4e2
Yabin Cui [Fri, 8 Feb 2019 19:48:36 +0000 (11:48 -0800)]
Merge "simpleperf: fix time report in report_sample.py." am: 06d7e3a4e2
am: f5187fc0ae

Change-Id: Ic47db979db0d0d838107c7b2fd44e00202dd0770

5 years agoMerge "simpleperf: fix time report in report_sample.py."
Yabin Cui [Fri, 8 Feb 2019 19:41:51 +0000 (11:41 -0800)]
Merge "simpleperf: fix time report in report_sample.py."
am: 06d7e3a4e2

Change-Id: I37e6d5f2f97389d6e3cf65bb1c8c022c9bf71e82

5 years agoMerge "simpleperf: fix time report in report_sample.py."
Yabin Cui [Fri, 8 Feb 2019 19:23:30 +0000 (19:23 +0000)]
Merge "simpleperf: fix time report in report_sample.py."

5 years agosimpleperf: fix time report in report_sample.py.
Yabin Cui [Fri, 8 Feb 2019 19:21:44 +0000 (11:21 -0800)]
simpleperf: fix time report in report_sample.py.

Bug: none
Test: run report_sample.py.
Change-Id: If7a0913f464e41b9af0dbaa46a88327dde290558

5 years agosimpleperf: fix symbolization in multi-executable-segments libraries.
Yabin Cui [Thu, 7 Feb 2019 23:06:42 +0000 (15:06 -0800)]
simpleperf: fix symbolization in multi-executable-segments libraries.

Apps may run with libraries with multiple executable segments.
Symbolization ip addresses in these libraries need to use map.pgoff.

The old formula converting ip to vaddr_in_file:
  vaddr_in_file = ip - map.start + min_executable_vaddr

The new formula converting ip to vaddr_in_file:
  offset_in_file = ip - map.start + map.pgoff
  vaddr_in_file = offset_in_file - file_offset_of_min_executable_vaddr
  + min_executable_vaddr

Bug: 124056476
Test: run simpleperf_unit_test.
Test: use simpleperf to profile facebook app, ip addresses hitting libc.so
Test: and libart.so are symbolized correctly.
Change-Id: I5fd3ed822a916c4d04a9868d6d209c43ee190c5b

5 years agoFix bootanalyze for car and other timing bug
Keun-young Park [Wed, 6 Feb 2019 17:50:12 +0000 (09:50 -0800)]
Fix bootanalyze for car and other timing bug

- Launcher name covers car launcher
- Fix wrong time delta selection for boot complete:
  Time update right after animation update makes it fail before this fix.

Bug: 123958835,120991898
Test: run python system/extras/boottime_tools/bootanalyze/bootanalyze.py  -c system/extras/boottime_tools/bootanalyze/config.yaml -r
Change-Id: I86c2f6bff288e69eb70516bba206507e1090de4a

5 years agoMerge "Link libart statically to perfprofd to avoid a dynamic dependency on it."...
Martin Stjernholm [Tue, 5 Feb 2019 17:02:54 +0000 (09:02 -0800)]
Merge "Link libart statically to perfprofd to avoid a dynamic dependency on it." am: ed1f035790 am: 6b551f9fff
am: a09a14c6da

Change-Id: I8a61646884fbd462f7067fb4fc7f492136d3a969

5 years agoMerge "Link libart statically to perfprofd to avoid a dynamic dependency on it."...
Martin Stjernholm [Tue, 5 Feb 2019 16:58:34 +0000 (08:58 -0800)]
Merge "Link libart statically to perfprofd to avoid a dynamic dependency on it." am: ed1f035790
am: 6b551f9fff

Change-Id: I5bc7f2045f1deb2a4cd8e999678f9d379c4ef7cc

5 years agoMerge "Link libart statically to perfprofd to avoid a dynamic dependency on it."
Martin Stjernholm [Tue, 5 Feb 2019 16:54:16 +0000 (08:54 -0800)]
Merge "Link libart statically to perfprofd to avoid a dynamic dependency on it."
am: ed1f035790

Change-Id: Id515e92be7d5a00962f433310cb626c9dff62ba1

5 years agoMerge "Link libart statically to perfprofd to avoid a dynamic dependency on it."
Treehugger Robot [Tue, 5 Feb 2019 16:32:16 +0000 (16:32 +0000)]
Merge "Link libart statically to perfprofd to avoid a dynamic dependency on it."