aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-04Abridge hardware names at '(' charactersHEADlinaro_android_4.4.4masterDaniel Thompson
Change-Id: If02b256451396c4a30c1a013ed60bf08c2e4da8f Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2014-06-05Set executable permissions on ion unit testsBernhard Rosenkraenzer
Change-Id: Iacfaf3c2e7df08d6b66992c9b4864b0232de1674 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2014-06-05libion: add apache license header to ion_test.cColin Cross
Change-Id: Ie4b641cd62b56f713178932cc5c08083c0d2452a (cherry picked from commit dbab598466b93cf9c72e6da423269aa02820b3fe)
2014-06-05libion: initial unit testsColin Cross
Change-Id: I5502b71d0c7c24d7fd59e4880033657f840b341a (cherry picked from commit d65627e81a7369a66371a27fdc9a09ca25e28de8)
2014-06-05libion: update ion_test.hColin Cross
Update ion_test.h to include a padding word to keep the same struct size on 32-bit and 64-bit. Change-Id: I68086ce49ca4cc4ed8e251752eaed331a35fbbd2 (cherry picked from commit bb09192e59819ebcff1b2f5b2cc0ba82d6a68ef0)
2014-06-05libion: update to latest uapi headerColin Cross
Pull the uapi headers from android-3.10 directly into libion. No other modules should be directly calling ion kernel interfaces, so there is no reason to have those interfaces exposed. Change-Id: I2d3fef08f6bb381522ecf7bcffea2b8280d5e737 (cherry picked from commit dfebb0d32d323659744d96343ebd54e99fe304d3)
2014-06-05libion: return -errno from ion_closeColin Cross
Return -errno from ion_close instead of -1 on error. Change-Id: Idb828aa4b4d1a660b79d2dba8be32f306eac959d (cherry picked from commit 1e78c288c89dea367ac1cbfeee788d47bcd0e865)
2014-06-05libion: add include for size_tColin Cross
Add sys/types.h include for size_t Change-Id: Ica764b1f5eca2df21d82c86493fc4e0d70b6628a (cherry picked from commit a6177e1b53cde333509c1f560fd1ea82a3144695)
2014-06-05libion: add NULL checksColin Cross
Check for NULL in any library function that takes a pointer. Change-Id: I9ae8887b5ae0f231583173ee6a9dfd2f8c4611ec (cherry picked from commit 9919436a5f7d01bd3ea090888fb3712c7bf0d5f4)
2014-06-05libion: clean up whitespaceColin Cross
Convert everything to 4 space indents, no tabs. Change-Id: I376fad866864f0579b91ffad406e872fcce566ad (cherry picked from commit 87d78eb7ae49992ece78f59d8ba1e84161b0c00d)
2014-06-05libion: move ion.h into local include directoryColin Cross
Export it to users of libion with LOCAL_C_EXPORT_INCLUDE_DIRS Change-Id: I4d00a9dd2e99953723994d0304ca77e0ad50a3a9 (cherry picked from commit 5be2a214e6b99b57675f640bccbcdfc735fe49a8)
2014-06-05ion: update struct and type definitions to match kernel headerRom Lemarchand
- Replacing struct ion_handle * with ion_user_handle_t - Replacing heap_mask field name with heap_id_mask Change-Id: Iaba1ccc62b9398a7b37c5a734bc21a9ecbbc8277 (cherry picked from commit 13c21686b45d114c963f8b4d58db01d00e9acd7b)
2014-06-05libion: Use %zu for size_tAshok Bhat
Change-Id: If92fc31ab676a569530c21e655a1b5b451f5c5e5 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> (cherry picked from commit c0f3f805fde1ca33e0941fae9327284806943523)
2014-06-05Fix build.Elliott Hughes
Change-Id: I6552bf9f83faa97bd5a844381aceb3ef85f86c76 (cherry picked from commit 2436eccdd6f9d8560df5902b8b37db72df75713d)
2014-06-05healtd: Send messages to Android log, not the kernel logJon Medhurst
If the system doesn't have the expected battery configuration then healthd is quite noisy with it's log messages during boot and every minute thereafter. Rather than have this spamming the kernels serial console, direct this instead to Android's logging system. This also has the effect of working around a serial port bug on vexpress: https://bugs.launchpad.net/linaro-android/+bug/1254738 but reducing mostly spurious serial port noise is a good aim in itself. Change-Id: I0eff5637009cfee47891a9c2363145634cbf0ae1 Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-06-05rootdir: init.rc Revert Linaro changes adding /mnt/sdcardJon Medhurst
The legacy mount point for sdcards conflicts with current AOSP examples and is no longer useful, so remove this and let init.<hardware>.rc be responsible for defining the mount point and creating the /sdcard symlink. Change-Id: I45d9aec68b24f4fd975a35342a22777220e9460e Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-06-05rootdir: init.rc: Make gatord a oneshot serviceJon Medhurst
A common scenario is for developers and testers to build custom kernels for use with Android images and forget or not know to also rebuild then install the gator module. This leads to a kernel version mismatch in the gator module preventing it from loading and causing the user-side gator daemon to fail to start. When this occurs, the gatord service is repeatedly restarted every five seconds and this background activity can affect any profiling and benchmarking activity being undertaken. We can prevent this situation by marking gatord as a 'oneshot' service so there is only one attempt to start it at boot. Change-Id: I824b306f7b6618ce210bc44843dd2e1730ce8304 Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-06-05rootdir: init.rc: Fix for "add_tid_to_cgroup failed to write" warningsJon Medhurst
Logcat is full of warnings like: W/SchedPolicy( 2013): add_tid_to_cgroup failed to write '2371' (Permission denied); policy=1 This is fixed by giving /dev/cpuctl group write permissions, which was surely the original intention of the init.rc setup as this is done for the sub-directories it creates. This fixes bug launchpad bug #1037611 Change-Id: I47ff539ef4dd9922aba0be67dbf8bd4f0a234163 Signed-off-by: Jon Medhurst <tixy@linaro.org>
2014-06-05corkscrew: Fix build with gcc 4.8Bernhard Rosenkraenzer
gcc 4.8 has a new warning for unused parameters - we need to override -Werror on that. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05init: Allow for arbitrary long /proc/cpuinfo outputJon Medhurst
get_hardware_name() uses a fixed size buffer to slurp the contents of /proc/cpuinfo into and with newer multicore systems this is not big enough, leading to the inability to pick up the hardware name. Fix this by using a dynamically allocated, exponentially growing buffer. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05adb: Link to libdl manually to avoid build failure on android-buildBernhard Rosenkraenzer
An outdated build environment results in a host adb build failure because libcrypto needs libdl, but libdl isn't linked explicitly: out/host/linux-x86/obj/STATIC_LIBRARIES/libcrypto_static_intermediates/libcrypto_static.a(dso_dlfcn.o): In function `dlfcn_globallookup': /mnt/jenkins/workspace/linaro-android_galaxynexus-jb-gcc47-aosp-blob/build/external/openssl/crypto/dso/dso_dlfcn.c:474: undefined reference to `dlopen' /mnt/jenkins/workspace/linaro-android_galaxynexus-jb-gcc47-aosp-blob/build/external/openssl/crypto/dso/dso_dlfcn.c:478: undefined reference to `dlsym' /mnt/jenkins/workspace/linaro-android_galaxynexus-jb-gcc47-aosp-blob/build/external/openssl/crypto/dso/dso_dlfcn.c:479: undefined reference to `dlclose' Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05corkscrew-x86: Fix build with some glibc versionsBernhard Rosenkraenzer
Make sure __USE_GNU is actually set before ucontext.h is included (even implicitly). This should fix the build inside android-build (wasn't broken locally in the first place). Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05filesystem_config: Allow executables in /system/libexecBernhard Rosenkraenzer
Files in $PREFIX/libexec, such as gcc's cc1, need to be executable. Don't let make_ext4fs strip executable permissions from them. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05Allow adb shell to run as root in tests variantZygmunt Krynicki
Linaro is starting to use the TARGET_BUILD_VARIANT=tests, slowly transitioning from the traditional TARGET_BUILD_VARIANT=eng builds. Testing has found that LAVA (specifically the lava-android-test project) expects adb shell to offer full root access. This is not the case in 'tests' builds where adb shell drops privileges and runs as the 'shell' user. Since it does not decrease security in any way (tests builds are marked as insecure) would like to have adb root shell access in TARGET_BUILD_VARIANT=tests as well. Change-Id: I20cbe3f32385162f9dc2b6b71c47ad22b9a0924f
2014-06-05sync_test: Use -fno-strict-aliasingBernhard Rosenkraenzer
Use -fno-strict-aliasing here so we don't have to use it globally. Performance on tests isn't important anyway. Change-Id: I92ae7209ced60176cc5608f32b8ff6a911c09f10 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
2014-06-05rootdir: init.rc: Start gatord running at bootJon Medhurst
This is a the daemon that the Streamline tool talks to from ARM Development Studio 5 (DS-5) Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05rootdir: init.rc: Update init.rc for wifiVishal Bhoj
Update init.rc for wifi to create sockets folder wifi Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05rootdir: init.rc: Restore all Linaro changesBernhard Rosenkraenzer
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05core: Increase the size of variable for the init.<hardware>.rc file name.Patrik Ryd
The size of hardware is 32 bytes and the tmp variable should fit 'init.' and '.rc' as well. In some cases like for the ST-Ericsson Snowball the 32 bytes were not enouth. hardware = "st-ericssonsnowballplatform" Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-06-05core: Increase the size of variable for the uevent.<hardware>.rc file name.Patrik Ryd
The size of hardware is 32 bytes and the tmp variable should fit 'uevent.' and '.rc' as well. In some cases like for the ST-Ericsson Snowball the 32 bytes were not enouth. hardware = "st-ericssonsnowballplatform" Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
2014-06-05adb: Don't force -O2Bernhard Rosenkraenzer
Don't force -O2 over -O3 -- the O2 hardcode is there to force optimizations, not to reduce them... Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2014-03-13init.rc: prep tcp_default_init_rwnd, set the default to 60android-4.4w_r1android-4.4.4_r2.0.1android-4.4.4_r2android-4.4.4_r1.0.1android-4.4.4_r1android-4.4.3_r1.1.0.1android-4.4.3_r1.1android-4.4.3_r1.0.1android-4.4.3_r1JP Abgrall
The kernel's default is between 4~20. Prepare for javaland to modify the value at runtime. It can be done via setprop sys.sysctl.tcp_def_init_rwnd <value> Bug: 12020135 Change-Id: Id34194b085206fd02e316401c0fbbb9eb52522d2 (cherry picked from commit 7c862c8b5e59cbe216a5bc092c01f1ecba8e9de4)
2014-03-04don't load property_contexts from /dataNick Kralevich
Bug: 12613118 Change-Id: I5a84b13d2151075d5136e3682431fbcc9307df13 (cherry picked from commit dc3a42bb11dc2aefee37f799b5a1cce87cf35aaf)
2014-03-04Remove obsolete vdc call.Nick Kralevich
Since ca8e66a8b0f843812014a28d49208f9f6f64ecbc, init has been handling reboots and filesystem unmounts. Remove obsolete call to vdc. Bug: 12504045 Change-Id: If8704ca042cb3a68857743b9973e48c52e7eb881 (cherry picked from commit 225459a5da21e9397ca49b0d9af7d5fe3462706b)
2013-12-10am 02d90b92: am 33e7f915: am 54a80bcf: am cd072e94: am ba104fb7: am ↵Nick Kralevich
e975716e: am 03d4eb29: am d63fb078: am e89e09dd: Fix overflow in adb_client * commit '02d90b92ce65ad4e7f49565f0e97373e1d8b0fbf': Fix overflow in adb_client
2013-12-10am 33e7f915: am 54a80bcf: am cd072e94: am ba104fb7: am e975716e: am ↵Nick Kralevich
03d4eb29: am d63fb078: am e89e09dd: Fix overflow in adb_client * commit '33e7f915d6a27880dd4c4c0709dcc921f549eea2': Fix overflow in adb_client
2013-12-10am 54a80bcf: am cd072e94: am ba104fb7: am e975716e: am 03d4eb29: am ↵Nick Kralevich
d63fb078: am e89e09dd: Fix overflow in adb_client * commit '54a80bcf88060b21f527c631c7ec911171bdb13f': Fix overflow in adb_client
2013-12-10am cd072e94: am ba104fb7: am e975716e: am 03d4eb29: am d63fb078: am ↵Nick Kralevich
e89e09dd: Fix overflow in adb_client * commit 'cd072e94cf7e546cd6d333cd65641edcd69402b7': Fix overflow in adb_client
2013-12-10am ba104fb7: am e975716e: am 03d4eb29: am d63fb078: am e89e09dd: Fix ↵Nick Kralevich
overflow in adb_client * commit 'ba104fb7f1f0acad99a0d3a1cf7153aab57ea450': Fix overflow in adb_client
2013-12-10am e975716e: am 03d4eb29: am d63fb078: am e89e09dd: Fix overflow in adb_clientNick Kralevich
* commit 'e975716e36c9ad6aa80be2b54ee2cc63eadbdc44': Fix overflow in adb_client
2013-12-10am 03d4eb29: am d63fb078: am e89e09dd: Fix overflow in adb_clientNick Kralevich
* commit '03d4eb29003a712c28733646588fafc8939fc1fe': Fix overflow in adb_client
2013-12-10am d63fb078: am e89e09dd: Fix overflow in adb_clientNick Kralevich
* commit 'd63fb078aea697c536b19c03d29d4dde4ac087fc': Fix overflow in adb_client
2013-12-10am e89e09dd: Fix overflow in adb_clientNick Kralevich
* commit 'e89e09dd2b9b42184973e3ade291186a2737bced': Fix overflow in adb_client
2013-12-10Fix overflow in adb_clientandroid-cts-4.1_r4Nick Kralevich
Change-Id: I7f8582bd8a69d61ce47d11a9ffd0e901fc371037 Credit: Joshua Drake Bug: 12060953
2013-11-21init.rc: mount pstore fs, set console-ramoops permissionsandroid-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1Todd Poynor
Change-Id: I44cb00f9123c6044a03de926b6a616da753bb549
2013-10-30utils: Fix broken sdk build on windowsandroid-4.4.2_r2.0.1android-4.4.2_r2android-4.4.2_r1.0.1android-4.4.2_r1android-4.4.1_r1.0.1android-4.4.1_r1Igor Murashkin
Bug: 11324229 Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
2013-10-30utils: Fix broken buildIgor Murashkin
Bug: 11324229 Change-Id: I7e4f514c5531e4c0c11bb0ba5d67e4dabbcd5792
2013-10-30Merge "utils: Add ProcessCallStack to collect stack traces for all threads ↵Igor Murashkin
in a process" into klp-dev
2013-10-25utils: Add ProcessCallStack to collect stack traces for all threads in a processIgor Murashkin
- Also add a Printer class (print lines to logcat, fd, or strings) Bug: 11324229 Change-Id: I78435ed49aa196a0efb45bf9b2d58b62c41737d3
2013-10-24Don't return immediately from reboot commands.Nick Kralevich
The reboot commands return too fast, interfering with testing. Add a pause(), which will allow the device time to complete the reboot. Change-Id: Ie9cc6eea67b7ff662ec71ea2329cbb94f8d55404 Bug: 11369303