OSDN Git Service

android-x86/system-extras.git
9 years agoMerge "bionic libc tests: clean up setting for hello_world.cpp"
Elliott Hughes [Wed, 29 Oct 2014 18:08:41 +0000 (18:08 +0000)]
Merge "bionic libc tests: clean up setting for hello_world.cpp"

9 years agobionic libc tests: clean up setting for hello_world.cpp
Yongqin Liu [Wed, 29 Oct 2014 10:09:53 +0000 (18:09 +0800)]
bionic libc tests: clean up setting for hello_world.cpp

clean up the remaining settings for hello_world.cpp
in file tests/bionic/libc/Android.mk

Change-Id: I6108a0d7e33c677dd2dba6dde3155f088d3fe14e
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc tests: clean up test for static_init"
Elliott Hughes [Tue, 28 Oct 2014 16:41:27 +0000 (16:41 +0000)]
Merge "bionic libc tests: clean up test for static_init"

9 years agoMerge "bionic test libc: clean up test for pthread_once"
Elliott Hughes [Tue, 28 Oct 2014 15:43:03 +0000 (15:43 +0000)]
Merge "bionic test libc: clean up test for pthread_once"

9 years agobionic libc tests: clean up test for static_init
Yongqin Liu [Tue, 28 Oct 2014 14:39:26 +0000 (22:39 +0800)]
bionic libc tests: clean up test for static_init

This change is to delete the static init test related files and settings.
Since they do not contain useful test, they only test the member behivor
in CPP constructor which are tested in bionic/tests/dlcfn_test.cpp file

Change-Id: I06a882e16f9f917e79d82c2b78978a6f1e7c2bb6
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agobionic test libc: clean up test for pthread_once
Yongqin Liu [Tue, 28 Oct 2014 03:31:58 +0000 (11:31 +0800)]
bionic test libc: clean up test for pthread_once

the test implemented in file
    tests/bionic/libc/common/test_pthread_once.c
has been re-implemented in file
    bionic/test/pthread_once_smoke
by the tests pthread.pthread_once_smoke and pthread.pthread_once_1934122,
so here remove the related file and settings

Change-Id: I2c8d6f8a07419d4840512736cf264a86482f7eaf
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc test: clean up tests for getgrouplist"
Elliott Hughes [Sat, 25 Oct 2014 02:16:47 +0000 (02:16 +0000)]
Merge "bionic libc test: clean up tests for getgrouplist"

9 years agobionic libc test: clean up tests for getgrouplist
Yongqin Liu [Fri, 24 Oct 2014 11:46:54 +0000 (19:46 +0800)]
bionic libc test: clean up tests for getgrouplist

Since the tests for getgrouplist will be implemented in bionic/tests
directory, the test files and setting will be deleted from here.

Change-Id: Ib5ece65ef2475ae8acc9ce5bfd2a255b734aa906
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc test: clean up pthread mutex type test"
Elliott Hughes [Sat, 25 Oct 2014 00:34:30 +0000 (00:34 +0000)]
Merge "bionic libc test: clean up pthread mutex type test"

9 years agoMerge "bionic libs test: clean up for gethostname test"
Elliott Hughes [Fri, 24 Oct 2014 23:30:58 +0000 (23:30 +0000)]
Merge "bionic libs test: clean up for gethostname test"

9 years agoMerge "bionic libc tests: clean up test_netinet_icmp.c file"
Elliott Hughes [Fri, 24 Oct 2014 23:02:18 +0000 (23:02 +0000)]
Merge "bionic libc tests: clean up test_netinet_icmp.c file"

9 years agobionic libs test: clean up for gethostname test
Yongqin Liu [Fri, 24 Oct 2014 12:26:24 +0000 (20:26 +0800)]
bionic libs test: clean up for gethostname test

since the tests for gethostname will be migrated into
bionic/tests/unistd_test.cpp as unistd.gethostname test
in the gtest format, the related files and settings will
be cleaned up here.

Change-Id: Ibe2bc9d3304ec9ac08a24a318276f07b84a1afea
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agobionic libc tests: clean up test_netinet_icmp.c file
Yongqin Liu [Fri, 24 Oct 2014 11:50:27 +0000 (19:50 +0800)]
bionic libc tests: clean up test_netinet_icmp.c file

since no meaningful tests implemented in this file.

Change-Id: I5846b65cd31eb70232c207394d622551eb72a4a0
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agobionic libc test: clean up pthread mutex type test
Yongqin Liu [Fri, 24 Oct 2014 07:03:06 +0000 (15:03 +0800)]
bionic libc test: clean up pthread mutex type test

clean up the pthread mutex types related tests implemented in
  tests/bionic/libc/bionic/test_mutex.c
and related settings, since the tests will be migrated into file
  bionic/tests/pthread_test.cpp

Change-Id: Icbbac40c42de7df49ff19bae54d71b455cafb987
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc test: clean up test_static_cpp_mutex test"
Elliott Hughes [Fri, 24 Oct 2014 04:05:42 +0000 (04:05 +0000)]
Merge "bionic libc test: clean up test_static_cpp_mutex test"

9 years agobionic libc test: clean up test_static_cpp_mutex test
Yongqin Liu [Fri, 24 Oct 2014 03:53:44 +0000 (11:53 +0800)]
bionic libc test: clean up test_static_cpp_mutex test

delete related file and setting for test test_static_cpp_mutex,
since it is migrated into bionic/tests/pthread_test.cpp in gtest format

Change-Id: Ia9d165b18410c40a6f07a3b0b23d53bf8e355d05
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc test: clean up sysconf test"
Elliott Hughes [Thu, 23 Oct 2014 15:54:35 +0000 (15:54 +0000)]
Merge "bionic libc test: clean up sysconf test"

9 years agobionic libc test: clean up sysconf test
Yongqin Liu [Thu, 23 Oct 2014 15:38:36 +0000 (23:38 +0800)]
bionic libc test: clean up sysconf test

After migrated the sysconf tests in file
    tests/bionic/libc/other/test_sysconf.c
to file bionic/tests/unistd_test.cpp,

clean up the test implementation files and settings here.

Change-Id: I1a29047e462d8e423c4125d6cb50634049b296ef
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc tests: clean up tests for destructor in executable"
Elliott Hughes [Thu, 23 Oct 2014 05:29:28 +0000 (05:29 +0000)]
Merge "bionic libc tests: clean up tests for destructor in executable"

9 years agobionic libc tests: clean up tests for destructor in executable
Yongqin Liu [Thu, 23 Oct 2014 05:00:53 +0000 (13:00 +0800)]
bionic libc tests: clean up tests for destructor in executable

The tests for constructor/destructor in an executable file have
been re-implemented by tests:
  dlfcn.ctor_function_call in bionic/tests/dlfcn_test.cpp
  atexit.exit in bionic/tests/atexit_test.cpp

So it's no meaning keep the tests for destructor in executable here
any more, and this change is to clean those files and settings up.

One thing list here is that in this system/extras directory,
tests for destructor in executable are tested both in statically linked
format and dynamically linked format. But in the bionic/tests, it is only
tested in dynamically linked format.
But this should not the reason to keep the test files and settings here.

Change-Id: I0ceb0450ca53b43bcf8473d54f08103519486992
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc test: remove gethostbyname test"
Christopher Ferris [Thu, 23 Oct 2014 02:01:48 +0000 (02:01 +0000)]
Merge "bionic libc test: remove gethostbyname test"

9 years agobionic libc test: remove gethostbyname test
Yongqin Liu [Tue, 21 Oct 2014 04:33:35 +0000 (12:33 +0800)]
bionic libc test: remove gethostbyname test

The change is to remove the implementation for gethostbyname bionic test
here, since the new test implementation will be done under bionic/test/netdb_test.cpp

Change-Id: Idd52e3bd6d623a59d64b4f5fc84eb66856970941
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "bionic libc test: remove getaddrinfo test"
Elliott Hughes [Wed, 22 Oct 2014 21:32:45 +0000 (21:32 +0000)]
Merge "bionic libc test: remove getaddrinfo test"

9 years agoMerge "bionic libc test: remove relocation related bionic test"
Elliott Hughes [Wed, 22 Oct 2014 21:23:49 +0000 (21:23 +0000)]
Merge "bionic libc test: remove relocation related bionic test"

9 years agoMerge "bionic libc test: clean up dlclose related test in system/extras"
Elliott Hughes [Wed, 22 Oct 2014 16:18:14 +0000 (16:18 +0000)]
Merge "bionic libc test: clean up dlclose related test in system/extras"

9 years agoMerge "bionic libc test: clean up test for dlopen_null"
Elliott Hughes [Wed, 22 Oct 2014 16:16:23 +0000 (16:16 +0000)]
Merge "bionic libc test: clean up test for dlopen_null"

9 years agobionic libc test: clean up test for dlopen_null
Yongqin Liu [Wed, 22 Oct 2014 13:55:07 +0000 (21:55 +0800)]
bionic libc test: clean up test for dlopen_null

The test for dlopen function with null specified have been
re-implemented by dlfcn.dladdr test in bionic/tests/dlfcn_test.cpp.
so here deleted it for cleaning up

Change-Id: I99c3d1d2252b41c7484310fa20a1298d80ad565c
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agobionic libc test: clean up dlclose related test in system/extras
Yongqin Liu [Wed, 22 Oct 2014 13:39:54 +0000 (21:39 +0800)]
bionic libc test: clean up dlclose related test in system/extras

The dlclose related tests are re-implemented in bionic/tests/atexit_test.cpp
These files are no need to be here.

Change-Id: I8da70ed2ac12d639f737d83476d1614f8d560410
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agobionic libc test: remove relocation related bionic test
Yongqin Liu [Wed, 22 Oct 2014 06:52:26 +0000 (14:52 +0800)]
bionic libc test: remove relocation related bionic test

The change is to remove the implementation for relocation
related bionic test, since the new test implementation will be done
in bionic/tests/dlfcn_test.cpp

Change-Id: Idd7cf264bef67ec515f3f68746008a481fb89343
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agobionic libc test: remove getaddrinfo test
Yongqin Liu [Tue, 21 Oct 2014 14:38:00 +0000 (22:38 +0800)]
bionic libc test: remove getaddrinfo test

The change is to remove the implementation for getaddrinfo bionic test here,
since the new test implementation will be done under bionic/test/netdb_test.cpp

Change-Id: I0a23a6b823530be30fca13e87ac067f8ce70f495
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
9 years agoMerge "Don't manually link stlport."
Dan Albert [Fri, 26 Sep 2014 19:39:49 +0000 (19:39 +0000)]
Merge "Don't manually link stlport."

9 years agoDon't manually link stlport.
Dan Albert [Fri, 26 Sep 2014 17:39:02 +0000 (10:39 -0700)]
Don't manually link stlport.

Change-Id: I98f688e01ac65ac83941926ff8b370fba341d735

9 years agoMerge "Remove another obsolete test."
Elliott Hughes [Mon, 22 Sep 2014 23:17:38 +0000 (23:17 +0000)]
Merge "Remove another obsolete test."

9 years agoRemove another obsolete test.
Elliott Hughes [Mon, 22 Sep 2014 23:11:25 +0000 (16:11 -0700)]
Remove another obsolete test.

Change-Id: Ic4629a5e2cba6431d4bd138c260bb8889df0ad78

9 years agoMerge "Remove a useless pthread_join test."
Elliott Hughes [Fri, 19 Sep 2014 01:26:09 +0000 (01:26 +0000)]
Merge "Remove a useless pthread_join test."

9 years agoMerge "Remove obsolete semaphore tests."
Elliott Hughes [Thu, 18 Sep 2014 23:42:49 +0000 (23:42 +0000)]
Merge "Remove obsolete semaphore tests."

9 years agoRemove a useless pthread_join test.
Elliott Hughes [Thu, 18 Sep 2014 23:35:46 +0000 (16:35 -0700)]
Remove a useless pthread_join test.

Change-Id: Ie37deaf62338e541434115d6b7ae748cc38b85a3

9 years agoRemove obsolete semaphore tests.
Elliott Hughes [Thu, 18 Sep 2014 23:34:05 +0000 (16:34 -0700)]
Remove obsolete semaphore tests.

Change-Id: I96d0dbbb8d3482a19ce33e389971451fa630c84a

9 years agoMerge "Remove some obviously useless tests (and fix the others so they build)."
Elliott Hughes [Thu, 18 Sep 2014 15:41:19 +0000 (15:41 +0000)]
Merge "Remove some obviously useless tests (and fix the others so they build)."

9 years agoRemove some obviously useless tests (and fix the others so they build).
Elliott Hughes [Thu, 18 Sep 2014 03:36:46 +0000 (20:36 -0700)]
Remove some obviously useless tests (and fix the others so they build).

Some of these tests are stupid (hello_world.cpp), others are already replaced
by more complete tests in bionic (test_cpu_set.cpp).

Change-Id: Ie6d2723b049b4e9bb1b98ae0166be2c19551fdd0

9 years agoMerge "Remove a glibc test."
Elliott Hughes [Thu, 18 Sep 2014 03:25:54 +0000 (03:25 +0000)]
Merge "Remove a glibc test."

9 years agoMerge "Remove old libstdc++ tests."
Elliott Hughes [Thu, 18 Sep 2014 03:24:45 +0000 (03:24 +0000)]
Merge "Remove old libstdc++ tests."

9 years agoRemove old libstdc++ tests.
Elliott Hughes [Thu, 18 Sep 2014 03:10:10 +0000 (20:10 -0700)]
Remove old libstdc++ tests.

We have the libc++ tests now.

Change-Id: I68dba2286e67142e5dd4fd69feaeedd16da882c4

9 years agoRemove a glibc test.
Elliott Hughes [Thu, 18 Sep 2014 03:06:10 +0000 (20:06 -0700)]
Remove a glibc test.

Change-Id: I58b6fbc70086a286e41a2b166e6ed8afe6237185

9 years agoMerge "Remove makefile cruft."
Dan Albert [Fri, 12 Sep 2014 18:07:32 +0000 (18:07 +0000)]
Merge "Remove makefile cruft."

9 years agoRemove makefile cruft.
Dan Albert [Fri, 12 Sep 2014 17:46:30 +0000 (10:46 -0700)]
Remove makefile cruft.

Don't manually include stlport, and don't use private bionic headers.

Change-Id: I0762ada6a759bcbb9b1d40f8bfd2255949da860d

9 years agoMerge "Fix wifiLoadScanAssoc _GNU_SOURCE build failure."
Elliott Hughes [Tue, 19 Aug 2014 01:39:58 +0000 (01:39 +0000)]
Merge "Fix wifiLoadScanAssoc _GNU_SOURCE build failure."

9 years agoFix wifiLoadScanAssoc _GNU_SOURCE build failure.
Elliott Hughes [Tue, 19 Aug 2014 01:38:30 +0000 (18:38 -0700)]
Fix wifiLoadScanAssoc _GNU_SOURCE build failure.

Change-Id: Ibdce3df36e4f5015fa559fb5d5afbf86fe23c123

9 years agoMerge "Rename micro bench 32 bit"
Eric Rowe [Fri, 25 Jul 2014 01:44:05 +0000 (01:44 +0000)]
Merge "Rename micro bench 32 bit"

9 years agoRename micro bench 32 bit
Eric Rowe [Thu, 24 Jul 2014 19:48:38 +0000 (12:48 -0700)]
Rename micro bench 32 bit

Rename micro_bench32 to micro_bench for backwards compatibility.

Change-Id: I130f281967cffc3e337d27e84c4caa66d39d1385

10 years agoMerge "f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)"
JP Abgrall [Wed, 25 Jun 2014 14:57:30 +0000 (14:57 +0000)]
Merge "f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)"

10 years agof2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)
JP Abgrall [Wed, 25 Jun 2014 14:56:32 +0000 (07:56 -0700)]
f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)

Change-Id: I8f911f2d084aee08f3f53da984d5c3d2a252cb05
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoMerge "f2fs utils: set correct dependency on dynamic libf2fs"
JP Abgrall [Wed, 25 Jun 2014 14:52:40 +0000 (14:52 +0000)]
Merge "f2fs utils: set correct dependency on dynamic libf2fs"

10 years agof2fs utils: set correct dependency on dynamic libf2fs
JP Abgrall [Wed, 18 Jun 2014 18:55:28 +0000 (11:55 -0700)]
f2fs utils: set correct dependency on dynamic libf2fs

Don't link against it anymore.
Just let dlopen() deal with it correctly.
The "config" struct will come from the f2fs_ioutils
and libf2fs_fmt_host expects to have it global, so let
link with -rdynamic and let dlopen() resolve it.

Be more aggressive with linux-only builds.

Bug: 15717498
Change-Id: I03ebebed1fc652170b44f809df42c1f8595216eb
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agof2fs utils: Add mkf2fsuserimg.sh and make_f2fs
JP Abgrall [Mon, 16 Jun 2014 18:08:45 +0000 (11:08 -0700)]
f2fs utils: Add mkf2fsuserimg.sh and make_f2fs

This is used to generate empty userdata.img files.
Normally, "fastboot format userdata" should be used.

Caveats:
 - It only builds an empty sparse image.
 - windows/mac unsupported

Change-Id: I5fbd9724fdd3f4513e7c91f123fc5fffcb475012
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agof2fs_utils: support new f2fs-tools f2fs_finalize_device API.
JP Abgrall [Fri, 13 Jun 2014 23:10:51 +0000 (16:10 -0700)]
f2fs_utils: support new f2fs-tools f2fs_finalize_device API.

Change-Id: Id5a6a7edc7871a6c0eb452ad7136732b9a730e6a
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agof2fs_utils: provide sparse io and dynamic load.
JP Abgrall [Thu, 12 Jun 2014 06:46:42 +0000 (23:46 -0700)]
f2fs_utils: provide sparse io and dynamic load.

This uses
  external/f2fs-tools LGPL v2.1

It provides low-level IO functions that f2fs-tools/mkfs expects
for writing to the media. In this case we use the sparse lib.

Change-Id: I8d141a0d4d14df9fe84d3b131484e9696fcd8870
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoMerge topic 'f2fs'
JP Abgrall [Wed, 25 Jun 2014 14:52:38 +0000 (14:52 +0000)]
Merge topic 'f2fs'

* changes:
  f2fs utils: Add mkf2fsuserimg.sh and make_f2fs
  f2fs_utils: support new f2fs-tools f2fs_finalize_device API.
  f2fs_utils: provide sparse io and dynamic load.

10 years agoMerge "Create 32 bit and 64 bit versions of exes."
Christopher Ferris [Tue, 24 Jun 2014 21:29:20 +0000 (21:29 +0000)]
Merge "Create 32 bit and 64 bit versions of exes."

10 years agoCreate 32 bit and 64 bit versions of exes.
Christopher Ferris [Tue, 24 Jun 2014 21:27:16 +0000 (14:27 -0700)]
Create 32 bit and 64 bit versions of exes.

Change-Id: Ifc639b7ed97c75faf0ce52475e7c3ec0dc2dd9b9

10 years agoMerge "Remove a useless so-called test for arc4random."
Elliott Hughes [Sat, 21 Jun 2014 07:24:56 +0000 (07:24 +0000)]
Merge "Remove a useless so-called test for arc4random."

10 years agoRemove a useless so-called test for arc4random.
Elliott Hughes [Sat, 21 Jun 2014 05:34:23 +0000 (22:34 -0700)]
Remove a useless so-called test for arc4random.

Bug: 14499627
Change-Id: I01308d022da007f814f3fd8927341dfb3bf7e4cd

10 years agoMerge changes Ic686b4cb,Ie4b6c7ef
Colin Cross [Tue, 17 Jun 2014 22:58:58 +0000 (22:58 +0000)]
Merge changes Ic686b4cb,Ie4b6c7ef

* changes:
  procrank: support >4GB of memory from 32-bit procrank
  libpagemap: support 64-bit kernel from 32-bit libpagemap

10 years agoprocrank: support >4GB of memory from 32-bit procrank
Colin Cross [Tue, 17 Jun 2014 21:38:34 +0000 (14:38 -0700)]
procrank: support >4GB of memory from 32-bit procrank

Use uint64_t for sizes.

Change-Id: Ic686b4cbf4406aec1e9b01810924488bff63722e

10 years agolibpagemap: support 64-bit kernel from 32-bit libpagemap
Colin Cross [Tue, 17 Jun 2014 21:37:06 +0000 (14:37 -0700)]
libpagemap: support 64-bit kernel from 32-bit libpagemap

Use uint64_t and lseek64 to handle 64-bit virtual addresses
when libpagemap is compiled as a 32-bit library.

Change-Id: Ie4b6c7ef05aac604011f3ee28b059d9dfcd63edb

10 years agoMerge "fix libpagemap for x86_64"
Colin Cross [Tue, 17 Jun 2014 19:37:16 +0000 (19:37 +0000)]
Merge "fix libpagemap for x86_64"

10 years agofix libpagemap for x86_64
Colin Cross [Tue, 17 Jun 2014 01:52:47 +0000 (18:52 -0700)]
fix libpagemap for x86_64

libpagemap was storing a virtual pfn in an int, which works on arm64
with 39 bits of virtual address space but fails on x86_64.  Use an
unsigned long instead.

Fixes errors when running procrank on x86_64:
warning: could not read usage for 1

Change-Id: I171c8ee49faa51accf3c1bb69059d549aee04979

10 years agoMerge "Ignore wipe operation on non-block devices."
David 'Digit' Turner [Mon, 16 Jun 2014 17:49:36 +0000 (17:49 +0000)]
Merge "Ignore wipe operation on non-block devices."

10 years agoIgnore wipe operation on non-block devices.
David 'Digit' Turner [Thu, 12 Jun 2014 18:54:50 +0000 (20:54 +0200)]
Ignore wipe operation on non-block devices.

The implementation of make_ext4fs() calls make_ext4fs_internal() by
forcing the |wipe| parameter to true, which is problematic when the
library is used within the emulator (the wipe operation will always
fail on non-Linux platforms).

This patch does the following:

- Add a 'is_block_device_fd()' function to check that a file descriptor
  points to a real block device.

- Modify the implementation of wipe_block_device() uses it to return
  silently when trying to wipe a non-block-device file.

- Add a WIPE_IS_SUPPORTED flag in wipe.h that indicates whether
  block device wiping is supported on the current platform
  (for now, this is only the case on Linux).

BUG=NONE

Change-Id: I62b62b7c3e99b465c3b876154231e7c2fe541b23

10 years agoMerge "Don't set LOCAL_MODULE_PATH for native test."
Ying Wang [Mon, 9 Jun 2014 22:52:33 +0000 (22:52 +0000)]
Merge "Don't set LOCAL_MODULE_PATH for native test."

10 years agoDon't set LOCAL_MODULE_PATH for native test.
Ying Wang [Mon, 9 Jun 2014 22:22:47 +0000 (15:22 -0700)]
Don't set LOCAL_MODULE_PATH for native test.

The build system will set it up automatically.

Change-Id: I528aa6c296f2ca8ffe8c74beca2cd49117b229e3

10 years agoMerge "The situation len = 0 and absolute = false need to be handled"
Colin Cross [Fri, 16 May 2014 00:07:06 +0000 (00:07 +0000)]
Merge "The situation len = 0 and absolute = false need to be handled"

10 years agoMerge "libpagemap: handle zero length memory regions"
Colin Cross [Thu, 15 May 2014 01:29:02 +0000 (01:29 +0000)]
Merge "libpagemap: handle zero length memory regions"

10 years agolibpagemap: handle zero length memory regions
Colin Cross [Thu, 15 May 2014 01:20:38 +0000 (18:20 -0700)]
libpagemap: handle zero length memory regions

/proc/pid/maps may report a zero-length memory region for a 4kB
PROT_GROWSDOWN region because it subtracts 4kB for the guard page.
Return 0 instead of -1 when this occurs, and set range_out to NULL
and len to 0.  All existing callers of pm_process_pagemap_range
will not dereference range_out if len is 0.

Bug: 14683277
Change-Id: If405651ad034dda780b93fab2dc616e177a0b917

10 years agoMerge "Remove a test for dead code."
Elliott Hughes [Wed, 14 May 2014 01:19:18 +0000 (01:19 +0000)]
Merge "Remove a test for dead code."

10 years agoRemove a test for dead code.
Elliott Hughes [Wed, 14 May 2014 01:17:25 +0000 (18:17 -0700)]
Remove a test for dead code.

Bug: 14903517
Change-Id: I139ae922c6c9468606d3145f0c74361ed789d949

10 years agoMerge "Add {BEGIN,END}_DECLS to header file."
Torne (Richard Coles) [Tue, 6 May 2014 10:35:59 +0000 (10:35 +0000)]
Merge "Add {BEGIN,END}_DECLS to header file."

10 years agoAdd {BEGIN,END}_DECLS to header file.
Torne (Richard Coles) [Tue, 6 May 2014 10:31:42 +0000 (11:31 +0100)]
Add {BEGIN,END}_DECLS to header file.

Enable this header to be cleanly included in C++ code.

Change-Id: Ie4ae60629661237ce07b49b17802f01bf95552d8

10 years agoThe situation len = 0 and absolute = false need to be handled
Benoit Fradin [Wed, 28 Aug 2013 12:44:32 +0000 (14:44 +0200)]
The situation len = 0 and absolute = false need to be handled

Add a return case for len == 0 and absolute == false

Change-Id: Ia36bd67ced6abbe7234eb7e485c1a2d8bd928ffe
Signed-off-by: Benoit Fradin <benoit.fradin@intel.com>
10 years agoMerge "Label lost+found directories with SELinux security contexts."
Nick Kralevich [Sun, 27 Apr 2014 01:05:28 +0000 (01:05 +0000)]
Merge "Label lost+found directories with SELinux security contexts."

10 years agoLabel lost+found directories with SELinux security contexts.
Stephen Smalley [Fri, 25 Apr 2014 18:57:55 +0000 (14:57 -0400)]
Label lost+found directories with SELinux security contexts.

When an asec image is generated, the lost+found directory has no
security.selinux attribute set and thus shows up as unlabeled.
We already handle this correctly when building images from existing
directories with files, so we just need to do it here as well when
generating an otherwise empty initial image.

Change-Id: I6d449dcc67a5cbc2101718e34ea0e184936d7f0e
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
10 years agoMerge "directiotest: 64 bit compile issue"
Mark Salyzyn [Thu, 17 Apr 2014 14:12:48 +0000 (14:12 +0000)]
Merge "directiotest: 64 bit compile issue"

10 years agodirectiotest: 64 bit compile issue
Mark Salyzyn [Wed, 16 Apr 2014 23:13:53 +0000 (16:13 -0700)]
directiotest: 64 bit compile issue

Change-Id: Iaef4f2aebfc1258594fca64615cd52758ac23a75

10 years agoMerge "qtaguid test: 64-bit compile issues"
Mark Salyzyn [Thu, 20 Mar 2014 23:22:29 +0000 (23:22 +0000)]
Merge "qtaguid test: 64-bit compile issues"

10 years agoqtaguid test: 64-bit compile issues
Mark Salyzyn [Thu, 20 Mar 2014 20:24:32 +0000 (13:24 -0700)]
qtaguid test: 64-bit compile issues

Change-Id: If3d83ccc4a50eae503f15a9de948b8c21641d8de

10 years agoMerge "micro_bench: 64 bit compile issues"
Mark Salyzyn [Thu, 20 Mar 2014 22:27:58 +0000 (22:27 +0000)]
Merge "micro_bench: 64 bit compile issues"

10 years agomicro_bench: 64 bit compile issues
Mark Salyzyn [Thu, 20 Mar 2014 19:46:42 +0000 (12:46 -0700)]
micro_bench: 64 bit compile issues

- use %zu for size_t operands
- suppress unused argument warning messages

Change-Id: Ib39b8763414320d9e3a29408bc1b396ddb376293

10 years agoMerge "librank: 64-bit compile issues"
Mark Salyzyn [Mon, 17 Mar 2014 22:44:24 +0000 (22:44 +0000)]
Merge "librank: 64-bit compile issues"

10 years agolibrank: 64-bit compile issues
Mark Salyzyn [Mon, 17 Mar 2014 15:58:40 +0000 (08:58 -0700)]
librank: 64-bit compile issues

- size_t format and comparisons

Change-Id: I00ad92ecf2566c7aa02b145e1b8679164b2c9f8a

10 years agoMerge "ksmutils: 64 bit compile issues"
Mark Salyzyn [Fri, 14 Mar 2014 20:53:21 +0000 (20:53 +0000)]
Merge "ksmutils: 64 bit compile issues"

10 years agoksmutils: 64 bit compile issues
Mark Salyzyn [Fri, 14 Mar 2014 18:15:07 +0000 (11:15 -0700)]
ksmutils: 64 bit compile issues

Change-Id: I9c4f141b6c436611a3a85e692b4fb47104d4f783

10 years agoMerge "Remove test_thread_max."
Elliott Hughes [Tue, 11 Mar 2014 20:05:34 +0000 (20:05 +0000)]
Merge "Remove test_thread_max."

10 years agoRemove test_thread_max.
Elliott Hughes [Tue, 11 Mar 2014 20:04:27 +0000 (13:04 -0700)]
Remove test_thread_max.

Not actually a useful test, and we already test creating threads, including
error conditions in bionic as part of CTS.

Change-Id: If478b1e389c5cf65a9827da7f57efd696afc6523

10 years agoMerge "Remove test_pthread_getcpuclockid."
Elliott Hughes [Tue, 11 Mar 2014 20:00:54 +0000 (20:00 +0000)]
Merge "Remove test_pthread_getcpuclockid."

10 years agoRemove test_pthread_getcpuclockid.
Elliott Hughes [Tue, 11 Mar 2014 20:00:18 +0000 (13:00 -0700)]
Remove test_pthread_getcpuclockid.

Bionic already has a better test that's part of CTS.

Change-Id: I2e6bfb795d5fe1393432673a082338d85c083444

10 years agoMerge "Remove obsolete system(3) test."
Elliott Hughes [Tue, 11 Mar 2014 19:58:32 +0000 (19:58 +0000)]
Merge "Remove obsolete system(3) test."

10 years agoRemove obsolete system(3) test.
Elliott Hughes [Tue, 11 Mar 2014 19:55:31 +0000 (12:55 -0700)]
Remove obsolete system(3) test.

Change-Id: Ife11d1d526b92062090da231853f65329c0c8962

10 years agoMerge "Remove obsolete benchmarks."
Elliott Hughes [Tue, 11 Mar 2014 19:48:30 +0000 (19:48 +0000)]
Merge "Remove obsolete benchmarks."

10 years agoRemove obsolete benchmarks.
Elliott Hughes [Tue, 11 Mar 2014 18:17:30 +0000 (11:17 -0700)]
Remove obsolete benchmarks.

bionic now has all of these.

Change-Id: I0b65f019b88bc9ac7d33bd424361497320c66b7b

10 years agoMerge "Remove <time.h> tests."
Elliott Hughes [Tue, 11 Mar 2014 01:41:15 +0000 (01:41 +0000)]
Merge "Remove <time.h> tests."