OSDN Git Service

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

Change-Id: I05700266f1c7584ff51557b3e559654045379e87

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

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

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

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

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

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

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

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

And fix one build_id bug introduced by previous patch.

Bug: 26962895

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

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

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

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

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

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

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

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

Bug: 26962895

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

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

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

Bug: 26962895

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

8 years agoAdd support for filtering based on app name to pagecache.
Tim Murray [Wed, 2 Mar 2016 22:02:51 +0000 (14:02 -0800)]
Add support for filtering based on app name to pagecache.

Change-Id: I571d254d69a255dd1b9fd7f33d98e7daa4b5ad5f

8 years agoFix pagemap_test#maps.
Elliott Hughes [Tue, 1 Mar 2016 16:02:37 +0000 (08:02 -0800)]
Fix pagemap_test#maps.

We don't necessarily have a brk-based heap.

Bug: http://b/27425642

(cherry picked from commit b2084a55a9e499b8c26b751956078282e12b0609)

Change-Id: Ia5c96fb26a8011c62037f3a3c4cbf44e3b936507

8 years agoDon't define incremental ext4 for windows
Mohamad Ayyash [Wed, 24 Feb 2016 04:13:02 +0000 (20:13 -0800)]
Don't define incremental ext4 for windows

Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
Change-Id: I1eba14f7f4db2174de8feaa9d8e5e41524ac1d32

8 years agoRedesign make_ext4fs to incrementally generate ext4 images
Mohamad Ayyash [Sat, 20 Feb 2016 03:46:00 +0000 (03:46 +0000)]
Redesign make_ext4fs to incrementally generate ext4 images

Allows passing a base fs mapping file through -d which preserves the
location of those mapping in existing files

Internal Design Doc: go/incremental-ext4
BUG: 26839493
Change-Id: I05e296693429d39466d257d1d0a3daf00510dc26
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agoRevert "Redesign make_ext4fs to incrementally generate ext4 images"
Mohamad Ayyash [Fri, 19 Feb 2016 21:16:34 +0000 (21:16 +0000)]
Revert "Redesign make_ext4fs to incrementally generate ext4 images"

This reverts commit 3d960843a2260a98c8df5cc39ca0dbf3d675f1a2.

Change-Id: I0fb7d65f094feb4013924685270fc847693b6889

8 years agoRedesign make_ext4fs to incrementally generate ext4 images
Mohamad Ayyash [Sat, 13 Feb 2016 05:40:52 +0000 (21:40 -0800)]
Redesign make_ext4fs to incrementally generate ext4 images

Allows passing a blk mapping file through -Z which preserves the
location of those mapping in existing files

Internal Design Doc: go/incremental-ext4
BUG: 26839493
Change-Id: I447873bf65ae66dab9923e5a11c497f0722750df
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
8 years agortc_time: test agent timeouts
Mark Salyzyn [Thu, 11 Feb 2016 23:04:35 +0000 (15:04 -0800)]
rtc_time: test agent timeouts

(cherry pick from commit 9258225ece5d6816ddf9a45e45fb694142c32761)

Break the test up into four, keeping each well below the 60 second
timeout for the test agents. Overhead for the splitting up is an
additional 10 seconds in order to complete all four of the tests
instead of one. typical single test completion is 22.5 seconds.

Change-Id: If8e9a6c7dfd505a9fbc73e9248be4eb2b61521e5

8 years agoChanges for mtp8996
Todd Kjos [Thu, 11 Feb 2016 00:52:36 +0000 (16:52 -0800)]
Changes for mtp8996

Change-Id: I5fe5c365226087af47aaf7c5a576b7f2622f804d

8 years agoTrack update to bouncycastle 1.54
Kenny Root [Wed, 10 Feb 2016 23:30:56 +0000 (15:30 -0800)]
Track update to bouncycastle 1.54

(cherry-picked from ab9a0c802d88ff47f3467fd66415a27f8f141b19)

Change-Id: I87252e179e191c6210d26e4055bee03fb43d8ba7

8 years agoMerge "Add kernel config tests" into nyc-dev
Mark Salyzyn [Wed, 10 Feb 2016 23:29:52 +0000 (23:29 +0000)]
Merge "Add kernel config tests" into nyc-dev

8 years agoAdd kernel config tests
Mark Salyzyn [Wed, 10 Feb 2016 22:00:14 +0000 (14:00 -0800)]
Add kernel config tests

(cherry pick from commit 7129c7dcd20bf57cf3a64ec224e4ebac81c8cd88)

A simple start to simple day. Check for evidence of following CONFIGs:

CONFIG_MMC_BLOCK_MAX_SPEED=y
CONFIG_IPV6=y
CONFIG_IP_MULTICAST=y
CONFIG_PSTORE=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_SYSVIPC is not set

ToDo: Evidence for all configs in android/configs/android-base.cfg
      and android/configs/android-recommended.cfg. Most are not
      possible to directly discover, this is performed on a best
      effort basis.

Bug: 19173869
Bug: 26559308
Change-Id: I0447334fab7781579fab10610d2f7ac1d34e6044

8 years agoEncrypt /data/misc
Paul Lawrence [Tue, 9 Feb 2016 22:23:52 +0000 (14:23 -0800)]
Encrypt /data/misc

Now we have a workaround for 26989796 (we don't touch /data/misc/vold
thanks to:
    https://googleplex-android-review.git.corp.google.com/#/c/862867
) we can check this in and remove the need for a data wipe when we land
the proper kernel fix for this issue (stop caching negative file lookups
through a key change)

Bug: 26989796
Change-Id: I83e6b8395b2c6a607b692dc9cf71183b13680071

8 years agoMerge "Add __s32 define." am: 9d63018815
Christopher Ferris [Sat, 6 Feb 2016 01:02:29 +0000 (01:02 +0000)]
Merge "Add __s32 define." am: 9d63018815
am: 7991c03404

* commit '7991c034048ee5b376a16fb71f9f4b0a3354623d':
  Add __s32 define.

8 years agoMerge "Add __s32 define."
Christopher Ferris [Sat, 6 Feb 2016 01:00:24 +0000 (01:00 +0000)]
Merge "Add __s32 define."
am: 9d63018815

* commit '9d630188159868589992116dd5d67cecf17bf257':
  Add __s32 define.

8 years agoMerge "Add __s32 define."
Christopher Ferris [Sat, 6 Feb 2016 00:55:51 +0000 (00:55 +0000)]
Merge "Add __s32 define."

8 years agoAdd __s32 define.
Christopher Ferris [Sat, 6 Feb 2016 00:53:13 +0000 (16:53 -0800)]
Add __s32 define.

This is needed for the new v4.4.1 kernel headers.

Bug: 23789423
Change-Id: I3053cdf895793c38ff1af41ebb560c13fda23215

8 years agoAdd methods to get and ensure encryption policy.
Jeff Sharkey [Wed, 3 Feb 2016 22:30:33 +0000 (15:30 -0700)]
Add methods to get and ensure encryption policy.

The ensure call will either assign an encryption policy, or verify
that an existing policy matches the expected value.  Uses the new
logging library so that customers can pivot logs into whatever
location they want: vold into logcat and init into dmesg.

Also add new directories that will have user-specific encryption
policy set on them so we avoid setting the default policy.

Bug: 25796509
Change-Id: Ia535630092822c80cde0939d8e46e6b47d9be2d8

8 years agoRemove unencrypted properties
Paul Lawrence [Thu, 4 Feb 2016 18:37:13 +0000 (10:37 -0800)]
Remove unencrypted properties

Change-Id: I59596be7c7df9151f4966a5051f06bcb087345dd

8 years agoMerge "Support profiling of shared libs embedded in APKs." am: 4a5dafcc30
Than McIntosh [Wed, 3 Feb 2016 13:22:33 +0000 (13:22 +0000)]
Merge "Support profiling of shared libs embedded in APKs." am: 4a5dafcc30
am: 615711f7ca

* commit '615711f7ca31518f72392d79d8a8aff3efb4ae34':
  Support profiling of shared libs embedded in APKs.

8 years agoMerge "Support profiling of shared libs embedded in APKs."
Than McIntosh [Wed, 3 Feb 2016 12:39:22 +0000 (12:39 +0000)]
Merge "Support profiling of shared libs embedded in APKs."
am: 4a5dafcc30

* commit '4a5dafcc3093d55fc9d135b9a18c73bd96bcf3b1':
  Support profiling of shared libs embedded in APKs.

8 years agoMerge "Support profiling of shared libs embedded in APKs."
Than McIntosh [Wed, 3 Feb 2016 12:00:41 +0000 (12:00 +0000)]
Merge "Support profiling of shared libs embedded in APKs."

8 years agoMerge "Stop living in the \'80s." am: 1a5e41d3a1
Dan Albert [Wed, 3 Feb 2016 03:59:29 +0000 (03:59 +0000)]
Merge "Stop living in the \'80s." am: 1a5e41d3a1
am: 3778bcf5b3

* commit '3778bcf5b36fe0bd4f48a930fa0a68020e912803':
  Stop living in the '80s.

8 years agoMerge "Stop living in the \'80s."
Dan Albert [Wed, 3 Feb 2016 03:57:34 +0000 (03:57 +0000)]
Merge "Stop living in the \'80s."
am: 1a5e41d3a1

* commit '1a5e41d3a1a7c1289503643d88748516649383ed':
  Stop living in the '80s.

8 years agoMerge "Stop living in the '80s."
Dan Albert [Wed, 3 Feb 2016 03:53:23 +0000 (03:53 +0000)]
Merge "Stop living in the '80s."

8 years agoStop living in the '80s.
Dan Albert [Wed, 3 Feb 2016 03:52:41 +0000 (19:52 -0800)]
Stop living in the '80s.

Build fix for GCC.

Change-Id: I2215913647a95897dc39b862696e395a1ebcf208

8 years agoMerge "Fix warnings in system/extras." am: 4eb09a62f2
Dan Albert [Wed, 3 Feb 2016 02:31:25 +0000 (02:31 +0000)]
Merge "Fix warnings in system/extras." am: 4eb09a62f2
am: 1b0f797a72

* commit '1b0f797a7274737468be7259ed9fde448b54af14':
  Fix warnings in system/extras.

8 years agoMerge "Fix warnings in system/extras."
Dan Albert [Wed, 3 Feb 2016 02:29:09 +0000 (02:29 +0000)]
Merge "Fix warnings in system/extras."
am: 4eb09a62f2

* commit '4eb09a62f2fc5f29747afd199dd1072d949b4892':
  Fix warnings in system/extras.

8 years agoMerge "Fix warnings in system/extras."
Dan Albert [Wed, 3 Feb 2016 02:25:12 +0000 (02:25 +0000)]
Merge "Fix warnings in system/extras."

8 years agoFix warnings in system/extras.
Dan Albert [Tue, 2 Feb 2016 23:35:33 +0000 (15:35 -0800)]
Fix warnings in system/extras.

Bug: http://b/26936282
Change-Id: I1b9c6c9bb06944c32abcb871279d056eea0fb11a

8 years agoSupport profiling of shared libs embedded in APKs.
Than McIntosh [Tue, 2 Feb 2016 00:50:20 +0000 (19:50 -0500)]
Support profiling of shared libs embedded in APKs.

Some APKs contain shared libraries that the linker handles
by mmap'ing directly from their APKs (if the library is
uncompressed and the proper manifest flag is set). With
this patch simpleperf now breaks out samples on a per-li
basis and reports the name of the lib within the APK.
Example output:

  Cmdline: /system/xbin/simpleperf record -a sleep 30
  Samples: 140672 of event 'cpu-cycles'
  Event count: 84111474884

  Overhead  Command          Pid    Tid    Shared Object
  90.22%    b_open_from_apk  19066  19066
  /data/app/com.android.frameworks.coretests.install_jni_lib_open_from_apk-2/base.apk!lib/armeabi-v7a/libgcdstuff.so
  4.85%     b_open_from_apk  19066  19066
  /data/app/com.android.frameworks.coretests.install_jni_lib_open_from_apk-2/base.apk!lib/armeabi-v7a/libframeworks_coretests_jni.so
  1.19%     simpleperf       19085  19085  /system/lib/libc.so
  ...

Bug: 22560619
Change-Id: I1e0f2e155e03b33935eac24e104c3fd7b9a7e33c

8 years agoMerge "Remove e4crypt_non_default_key"
Paul Lawrence [Tue, 2 Feb 2016 23:16:18 +0000 (23:16 +0000)]
Merge "Remove e4crypt_non_default_key"

8 years agoMerge "Fix/suppress potential memory leaks warnings." am: dd681db9a7
Chih-hung Hsieh [Tue, 2 Feb 2016 19:47:07 +0000 (19:47 +0000)]
Merge "Fix/suppress potential memory leaks warnings." am: dd681db9a7
am: 350c15c642

* commit '350c15c6422e80be1fd1da7cb5849c1de2aca51c':
  Fix/suppress potential memory leaks warnings.

8 years agoMerge "Fix/suppress potential memory leaks warnings."
Chih-hung Hsieh [Tue, 2 Feb 2016 19:44:03 +0000 (19:44 +0000)]
Merge "Fix/suppress potential memory leaks warnings."
am: dd681db9a7

* commit 'dd681db9a7978abeb783af206406cfcae0b8514d':
  Fix/suppress potential memory leaks warnings.

8 years agoMerge "Fix/suppress potential memory leaks warnings."
Chih-hung Hsieh [Tue, 2 Feb 2016 19:40:10 +0000 (19:40 +0000)]
Merge "Fix/suppress potential memory leaks warnings."

8 years agoFix/suppress potential memory leaks warnings.
Chih-Hung Hsieh [Tue, 2 Feb 2016 18:49:50 +0000 (10:49 -0800)]
Fix/suppress potential memory leaks warnings.

* One simple problem fixed by calling free.
* Others are suppressed since we don't care memory leaks
  in this soon-to-be-obsolete test program.

BUG: 26910807
Change-Id: I5ac10115db9644b53e9e8b5fd40a5dc87b2019dc

8 years agoRemove e4crypt_non_default_key
Paul Lawrence [Tue, 2 Feb 2016 18:38:38 +0000 (10:38 -0800)]
Remove e4crypt_non_default_key

Change:
        https://googleplex-android-review.git.corp.google.com/#/c/857155

means this is no longer called since it is assumed always to be false

Change-Id: I12755ca26e33b8eeafaab3b5373a2d0f1c7abf46

8 years agoMerge "simpleperf: use RemoveFileIfExists in libbase." am: ab8ec9ca0e
Yabin Cui [Tue, 2 Feb 2016 09:13:42 +0000 (09:13 +0000)]
Merge "simpleperf: use RemoveFileIfExists in libbase." am: ab8ec9ca0e
am: b138c1e1d2

* commit 'b138c1e1d2c47f4a9ea36ec5252083fa17e916b0':
  simpleperf: use RemoveFileIfExists in libbase.

8 years agoMerge "simpleperf: use RemoveFileIfExists in libbase."
Yabin Cui [Tue, 2 Feb 2016 06:26:57 +0000 (06:26 +0000)]
Merge "simpleperf: use RemoveFileIfExists in libbase."
am: ab8ec9ca0e

* commit 'ab8ec9ca0e96425b22867deb311fe9dde3db14ea':
  simpleperf: use RemoveFileIfExists in libbase.

8 years agoMerge "simpleperf: use RemoveFileIfExists in libbase."
Yabin Cui [Tue, 2 Feb 2016 06:23:38 +0000 (06:23 +0000)]
Merge "simpleperf: use RemoveFileIfExists in libbase."

8 years agosimpleperf: use RemoveFileIfExists in libbase.
Yabin Cui [Tue, 2 Feb 2016 02:07:03 +0000 (18:07 -0800)]
simpleperf: use RemoveFileIfExists in libbase.

Change-Id: Ife16103a5ec86cc6ee2aee4838d1a56a91f54516

8 years agoMerge "Give init the means to invoke "cryptfs init_user0""
Paul Crowley [Mon, 1 Feb 2016 20:41:27 +0000 (20:41 +0000)]
Merge "Give init the means to invoke "cryptfs init_user0""

8 years agoGive init the means to invoke "cryptfs init_user0"
Paul Crowley [Mon, 1 Feb 2016 16:33:50 +0000 (16:33 +0000)]
Give init the means to invoke "cryptfs init_user0"

Init needs to initialize user 0 for FBE devices via a vdc command.

Bug: 26704408
Change-Id: Ide6d1fdcb55e87c22820310c6d1cf9640e77d25e

8 years agoAdd support for per-user DE keys.
Paul Crowley [Thu, 28 Jan 2016 17:58:50 +0000 (17:58 +0000)]
Add support for per-user DE keys.

Bug: 26704408
Change-Id: I41b2d0641cce8db9e6b98e6e2f0c635426b1d1e2

8 years agoMerge changes I3b881be8,I80d97bd5,Id115e8b2 am: b764f45fd9
Lorenzo Colitti [Wed, 27 Jan 2016 05:59:32 +0000 (05:59 +0000)]
Merge changes I3b881be8,I80d97bd5,Id115e8b2 am: b764f45fd9
am: 91dcd99d9e

* commit '91dcd99d9ebee7c0a41416fc7ea3fe74aa4a7f34':
  Fix lint warnings.
  Note a 3.18 commit in neighbour_test.py.
  SOCK_DESTROY is no longer optional.

8 years agoMerge changes I3b881be8,I80d97bd5,Id115e8b2
Lorenzo Colitti [Wed, 27 Jan 2016 05:57:32 +0000 (05:57 +0000)]
Merge changes I3b881be8,I80d97bd5,Id115e8b2
am: b764f45fd9

* commit 'b764f45fd9758c8222bc08d7fa4944e8f7da6f40':
  Fix lint warnings.
  Note a 3.18 commit in neighbour_test.py.
  SOCK_DESTROY is no longer optional.

8 years agoMerge changes I3b881be8,I80d97bd5,Id115e8b2
Lorenzo Colitti [Wed, 27 Jan 2016 05:54:24 +0000 (05:54 +0000)]
Merge changes I3b881be8,I80d97bd5,Id115e8b2

* changes:
  Fix lint warnings.
  Note a 3.18 commit in neighbour_test.py.
  SOCK_DESTROY is no longer optional.

8 years agoFix lint warnings.
Lorenzo Colitti [Tue, 26 Jan 2016 14:22:28 +0000 (23:22 +0900)]
Fix lint warnings.

Change-Id: I3b881be8b665ba790e7da79b3560c159d72be1e2

8 years agoMerge "Remove header from LOCAL_SRC_FILES" am: 1287f6e0af
Dan Willemsen [Wed, 27 Jan 2016 00:01:44 +0000 (00:01 +0000)]
Merge "Remove header from LOCAL_SRC_FILES" am: 1287f6e0af
am: 6d88789b92

* commit '6d88789b9268b8d9036bb5dd326a99831980d21e':
  Remove header from LOCAL_SRC_FILES

8 years agoMerge "Remove header from LOCAL_SRC_FILES"
Dan Willemsen [Tue, 26 Jan 2016 23:59:45 +0000 (23:59 +0000)]
Merge "Remove header from LOCAL_SRC_FILES"
am: 1287f6e0af

* commit '1287f6e0afe146657a7d48167710947447e8693f':
  Remove header from LOCAL_SRC_FILES

8 years agoMerge "Remove header from LOCAL_SRC_FILES"
Dan Willemsen [Tue, 26 Jan 2016 23:55:09 +0000 (23:55 +0000)]
Merge "Remove header from LOCAL_SRC_FILES"

8 years agoMerge "rtc_test: EACCES acceptable for write" am: 2caf931ea6
Mark Salyzyn [Tue, 26 Jan 2016 21:55:02 +0000 (21:55 +0000)]
Merge "rtc_test: EACCES acceptable for write" am: 2caf931ea6
am: bf02d577a3

* commit 'bf02d577a3ca850cced4b7e9d35471ddc1067318':
  rtc_test: EACCES acceptable for write

8 years agoMerge "rtc_test: EACCES acceptable for write"
Mark Salyzyn [Tue, 26 Jan 2016 20:48:17 +0000 (20:48 +0000)]
Merge "rtc_test: EACCES acceptable for write"
am: 2caf931ea6

* commit '2caf931ea6662f549e6f331d6a2638e560fb7715':
  rtc_test: EACCES acceptable for write

8 years agoMerge "rtc_test: EACCES acceptable for write"
Mark Salyzyn [Tue, 26 Jan 2016 20:41:12 +0000 (20:41 +0000)]
Merge "rtc_test: EACCES acceptable for write"

8 years agortc_test: EACCES acceptable for write
Mark Salyzyn [Tue, 26 Jan 2016 19:18:48 +0000 (11:18 -0800)]
rtc_test: EACCES acceptable for write

If we can not write to /dev/rtc0, then accept result

Requires /dev/rtc0 to be something like mode 440.

Bug: 26792522
Change-Id: Ief2ac5cd1bac4b0272ef9d9bf096ed4000163244

8 years agoNote a 3.18 commit in neighbour_test.py.
Lorenzo Colitti [Tue, 26 Jan 2016 06:59:47 +0000 (15:59 +0900)]
Note a 3.18 commit in neighbour_test.py.

Change-Id: I80d97bd548c8d6749e48f4e8ff539808a7e1e0ab

8 years agoSOCK_DESTROY is no longer optional.
Lorenzo Colitti [Mon, 25 Jan 2016 08:06:56 +0000 (17:06 +0900)]
SOCK_DESTROY is no longer optional.

Change-Id: Id115e8b2ef100e19ae063047be5ddfde0b60e3b0

8 years agoMerge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903 am: 9427861d27
Lorenzo Colitti [Tue, 26 Jan 2016 07:03:01 +0000 (07:03 +0000)]
Merge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903 am: 9427861d27
am: f86cf5eab5

* commit 'f86cf5eab5b2364769a1777df23ef8db1c1b82dc':
  Refactor TCP test code into its own file.
  Move some sock_diag tests around.
  Teach more sock_diag code and tests about mapped sockets.
  Delete the hack that finds mapped sockets.

8 years agoMerge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903
Lorenzo Colitti [Tue, 26 Jan 2016 07:01:17 +0000 (07:01 +0000)]
Merge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903
am: 9427861d27

* commit '9427861d2746735378aa3dc628c917fac2acec83':
  Refactor TCP test code into its own file.
  Move some sock_diag tests around.
  Teach more sock_diag code and tests about mapped sockets.
  Delete the hack that finds mapped sockets.

8 years agoMerge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903
Lorenzo Colitti [Tue, 26 Jan 2016 06:57:48 +0000 (06:57 +0000)]
Merge changes Ib1510f36,I8a2f50da,Ife74d135,Idfb19903

* changes:
  Refactor TCP test code into its own file.
  Move some sock_diag tests around.
  Teach more sock_diag code and tests about mapped sockets.
  Delete the hack that finds mapped sockets.

8 years agoRemove header from LOCAL_SRC_FILES
Dan Willemsen [Tue, 26 Jan 2016 03:55:37 +0000 (19:55 -0800)]
Remove header from LOCAL_SRC_FILES

The build system does not use headers in LOCAL_SRC_FILES. To prevent
typos, it's becoming a warning to add something to LOCAL_SRC_FILES that
is not used.

Change-Id: I0ced87726dae5fcd4209d9ff1f83fa611817ecd3

8 years agoMerge "Add use of libbacktrace_offline." am: 99f24e6a75
Christopher Ferris [Tue, 26 Jan 2016 01:59:12 +0000 (01:59 +0000)]
Merge "Add use of libbacktrace_offline." am: 99f24e6a75
am: 347d5ed57a

* commit '347d5ed57a22018b021ed683b21b56be8b745a19':
  Add use of libbacktrace_offline.

8 years agoMerge "Add use of libbacktrace_offline."
Christopher Ferris [Tue, 26 Jan 2016 01:56:56 +0000 (01:56 +0000)]
Merge "Add use of libbacktrace_offline."
am: 99f24e6a75

* commit '99f24e6a75e07ec309fd9e5643f5167946061837':
  Add use of libbacktrace_offline.

8 years agoMerge "Add use of libbacktrace_offline."
Christopher Ferris [Tue, 26 Jan 2016 01:50:26 +0000 (01:50 +0000)]
Merge "Add use of libbacktrace_offline."

8 years agoAdd use of libbacktrace_offline.
Christopher Ferris [Tue, 26 Jan 2016 00:21:54 +0000 (16:21 -0800)]
Add use of libbacktrace_offline.

Change-Id: Ia8c16b3b82e4a19fcaedd21c05ab6bae5006f561

8 years agoRefactor TCP test code into its own file.
Lorenzo Colitti [Mon, 25 Jan 2016 15:32:06 +0000 (00:32 +0900)]
Refactor TCP test code into its own file.

Change-Id: Ib1510f3679f9d4eb651e21307b71873190e610fc

8 years agoMove some sock_diag tests around.
Lorenzo Colitti [Mon, 25 Jan 2016 14:43:15 +0000 (23:43 +0900)]
Move some sock_diag tests around.

Change-Id: I8a2f50da826bbf2a2c8d42bd3d05d53fc1f05932

8 years agoMerge "Pagecache.py fixes and updates."
Martijn Coenen [Mon, 25 Jan 2016 12:58:45 +0000 (12:58 +0000)]
Merge "Pagecache.py fixes and updates."

8 years agoMerge "Fix up alloc-stress."
Martijn Coenen [Mon, 25 Jan 2016 12:49:33 +0000 (12:49 +0000)]
Merge "Fix up alloc-stress."

8 years agoTeach more sock_diag code and tests about mapped sockets.
Lorenzo Colitti [Thu, 21 Jan 2016 03:02:27 +0000 (12:02 +0900)]
Teach more sock_diag code and tests about mapped sockets.

Change-Id: Ife74d135f4af33ccebe10ce7d42d4b43e37f9523

8 years agoMerge "Simpleperf: adjust default mmap_pages used when recording." am: 1554cbcd50
Yabin Cui [Sat, 23 Jan 2016 04:02:51 +0000 (04:02 +0000)]
Merge "Simpleperf: adjust default mmap_pages used when recording." am: 1554cbcd50
am: f3f856e7e4

* commit 'f3f856e7e4952a13875937b3f246ff084bc8d9ec':
  Simpleperf: adjust default mmap_pages used when recording.

8 years agoMerge "Simpleperf: adjust default mmap_pages used when recording."
Yabin Cui [Sat, 23 Jan 2016 04:01:05 +0000 (04:01 +0000)]
Merge "Simpleperf: adjust default mmap_pages used when recording."
am: 1554cbcd50

* commit '1554cbcd50653d5c746eb46110929327256447a4':
  Simpleperf: adjust default mmap_pages used when recording.

8 years agoMerge "Simpleperf: adjust default mmap_pages used when recording."
Yabin Cui [Sat, 23 Jan 2016 03:57:11 +0000 (03:57 +0000)]
Merge "Simpleperf: adjust default mmap_pages used when recording."

8 years agoSimpleperf: adjust default mmap_pages used when recording.
Yabin Cui [Fri, 22 Jan 2016 23:38:46 +0000 (15:38 -0800)]
Simpleperf: adjust default mmap_pages used when recording.

If running as non-root, there is a limitation on how many
mmap pages can be used for profiling per user. So adjust
default mmap_pages value to fit the limit, and add option
to change it.

Change-Id: Ie73f33c473498689234972989fc55b7731366792

8 years agoMerge changes I2e3eb0b3,I2f7bd13e am: cb698c387c
Lorenzo Colitti [Fri, 22 Jan 2016 18:44:10 +0000 (18:44 +0000)]
Merge changes I2e3eb0b3,I2f7bd13e am: cb698c387c
am: b5dfec665a

* commit 'b5dfec665a8bb3d995c4e3285649b2f6a236441d':
  Delete FixupDiagMsg and cite the commit that makes it unnecessary.
  Add a test for a port comparison bytecode validation bug.

8 years agoMerge changes I035cd9b6,I8ca9f205 am: 40fded7e6a
Lorenzo Colitti [Fri, 22 Jan 2016 18:44:06 +0000 (18:44 +0000)]
Merge changes I035cd9b6,I8ca9f205 am: 40fded7e6a
am: abf2c81d1d

* commit 'abf2c81d1dba36cb71eed73d7a3a85bbefebb7ed':
  Make the SOCK_DESTROY tests work again.
  Make CloseSocketFromFd work on mapped sockets too.

8 years agoDelete the hack that finds mapped sockets.
Lorenzo Colitti [Thu, 21 Jan 2016 01:04:54 +0000 (10:04 +0900)]
Delete the hack that finds mapped sockets.

The kernel handles this for us as of net-next commit
fc439d9489479411fbf9bbbec2c768df89e85503

Change-Id: Idfb19903cdeb8b1c0f288e1b290332414e9565cd

8 years agoMerge changes I2e3eb0b3,I2f7bd13e
Lorenzo Colitti [Fri, 22 Jan 2016 03:44:15 +0000 (03:44 +0000)]
Merge changes I2e3eb0b3,I2f7bd13e
am: cb698c387c

* commit 'cb698c387cbb2ea0265bdbd85b89dd25d55afb42':
  Delete FixupDiagMsg and cite the commit that makes it unnecessary.
  Add a test for a port comparison bytecode validation bug.

8 years agoMerge changes I035cd9b6,I8ca9f205
Lorenzo Colitti [Fri, 22 Jan 2016 03:44:12 +0000 (03:44 +0000)]
Merge changes I035cd9b6,I8ca9f205
am: 40fded7e6a

* commit '40fded7e6a300657d5f71f52a43d673a2f3f7446':
  Make the SOCK_DESTROY tests work again.
  Make CloseSocketFromFd work on mapped sockets too.

8 years agoMerge changes I2e3eb0b3,I2f7bd13e
Lorenzo Colitti [Fri, 22 Jan 2016 03:41:14 +0000 (03:41 +0000)]
Merge changes I2e3eb0b3,I2f7bd13e

* changes:
  Delete FixupDiagMsg and cite the commit that makes it unnecessary.
  Add a test for a port comparison bytecode validation bug.

8 years agoMerge changes I035cd9b6,I8ca9f205
Lorenzo Colitti [Fri, 22 Jan 2016 03:40:06 +0000 (03:40 +0000)]
Merge changes I035cd9b6,I8ca9f205

* changes:
  Make the SOCK_DESTROY tests work again.
  Make CloseSocketFromFd work on mapped sockets too.

8 years agoMerge "Remove no-longer-needed crypto init builtins"
Paul Crowley [Thu, 21 Jan 2016 11:17:37 +0000 (11:17 +0000)]
Merge "Remove no-longer-needed crypto init builtins"

8 years agoMerge "Exclude several more directories in /data from encryption"
Paul Crowley [Thu, 21 Jan 2016 11:16:14 +0000 (11:16 +0000)]
Merge "Exclude several more directories in /data from encryption"

8 years agoRemove no-longer-needed crypto init builtins
Paul Crowley [Wed, 20 Jan 2016 11:23:30 +0000 (11:23 +0000)]
Remove no-longer-needed crypto init builtins

Changes to the way FBE works to support lifecycles mean that these
commands aren't needed any more.

Bug: 22358539
Change-Id: I974f32c83c344403d5117bc02b7d67771123abaa

8 years agoExclude several more directories in /data from encryption
Paul Crowley [Tue, 19 Jan 2016 09:19:02 +0000 (09:19 +0000)]
Exclude several more directories in /data from encryption

Several directories need to be unencrypted so that policy can be set
on their subdirectories, so exclude them all from device-level
encryption.

This also excludes /data/misc, which must be encrypted for security.
However a weird bug with a disappearing /data/misc/vold was blocking
my development, so I included it here in order to make progress. See
b/26673855

Bug: 22358539
Change-Id: Ied67264a42cc8f911c5ecb4acc5e2b650b8d06a7

8 years agoPagecache.py fixes and updates.
Martijn Coenen [Tue, 19 Jan 2016 18:31:24 +0000 (10:31 -0800)]
Pagecache.py fixes and updates.

- Handle old version of stat that will append 'd' to inode
  number.
- Added a '-f' option to parse and dump from trace files
- Fixed issue where we didn't show files that we only
  removed pages from (and never added).

Change-Id: Ie8d48c01b3b6c288081178e7973aad22887795e0

8 years agoMerge "key_control.cpp: Use linux/keyctl.h" am: a17fc6dab2
Nick Kralevich [Tue, 19 Jan 2016 18:28:36 +0000 (18:28 +0000)]
Merge "key_control.cpp: Use linux/keyctl.h" am: a17fc6dab2
am: f95a3aad97

* commit 'f95a3aad974f97330e7284e9d9a613328780fe48':
  key_control.cpp: Use linux/keyctl.h

8 years agoMerge "libfec: fix back-up header validation" am: 759656c095
Sami Tolvanen [Tue, 19 Jan 2016 18:28:32 +0000 (18:28 +0000)]
Merge "libfec: fix back-up header validation" am: 759656c095
am: 1a7960a6c7

* commit '1a7960a6c73dacfece6b9351cf3188d001837607':
  libfec: fix back-up header validation

8 years agoMerge "key_control.cpp: Use linux/keyctl.h"
Nick Kralevich [Tue, 19 Jan 2016 18:26:48 +0000 (18:26 +0000)]
Merge "key_control.cpp: Use linux/keyctl.h"
am: a17fc6dab2

* commit 'a17fc6dab29c28244d7d5515db67822c18b62b58':
  key_control.cpp: Use linux/keyctl.h

8 years agoMerge "key_control.cpp: Use linux/keyctl.h"
Nick Kralevich [Tue, 19 Jan 2016 18:21:56 +0000 (18:21 +0000)]
Merge "key_control.cpp: Use linux/keyctl.h"

8 years agokey_control.cpp: Use linux/keyctl.h
Nick Kralevich [Tue, 19 Jan 2016 18:18:22 +0000 (10:18 -0800)]
key_control.cpp: Use linux/keyctl.h

Use linux/keyctl.h instead of copying the header definitions.

Change-Id: Ic3804d49671e4951d1d8869411f665e9f5eef674

8 years agoMerge "libfec: fix back-up header validation"
Sami Tolvanen [Tue, 19 Jan 2016 13:18:56 +0000 (13:18 +0000)]
Merge "libfec: fix back-up header validation"
am: 759656c095

* commit '759656c09532f1932f3d8be8f56d2eda1c9573d5':
  libfec: fix back-up header validation