summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEADThe Android Open Source Project2013-11-2214-2718/+108
|\ | | | | | | Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5
| * am 45ddf184: am 9b8a929d: Merge "libcutils doesn\'t need to be looking at ↵Elliott Hughes2013-10-101-5/+0
| |\ | | | | | | | | | | | | | | | | | | bionic\'s privates." * commit '45ddf184960225862c6e178588034cce676683e3': libcutils doesn't need to be looking at bionic's privates.
| * \ am 5baecee3: am be18538d: Merge "Cleanup x86 flags and memset versions"Elliott Hughes2013-10-103-21/+2
| |\ \ | | | | | | | | | | | | | | | | * commit '5baecee3c6bf348b77b8785bcd8e35362a3507fb': Cleanup x86 flags and memset versions
| * \ \ am 1690a5a6: am aa62be65: Merge "Use SSE2 enhanced memset for capable x86 ↵Ying Wang2013-09-261-11/+15
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processors" * commit '1690a5a6943d4e4b65d5e4dcd077702c2c8f40a0': Use SSE2 enhanced memset for capable x86 processors
| * \ \ \ am 0ee7d8c6: Fix Mac builds, for realz.Jeff Sharkey2013-09-202-2/+10
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '0ee7d8c68b57c02d02f707d6f71c731234d56eec': Fix Mac builds, for realz.
| | * | | | Fix Mac builds, for realz.Jeff Sharkey2013-09-202-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I63e21b90e5b8a8f016dd04ceca4354793faa5e37
| * | | | | am 4481c325: Fix Mac builds.Jeff Sharkey2013-09-201-6/+2
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '4481c325b16d4a42fd0ebf4c8a2bb5bcc09daf5e': Fix Mac builds.
| | * | | | Fix Mac builds.Jeff Sharkey2013-09-201-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0eb029395a3afd2f93a7632d7d3d20d28c2ab189
| * | | | | am 44d6342c: Remove mkdir() side effect, add .nomedia, utils.Jeff Sharkey2013-09-201-0/+90
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '44d6342caa0db1f613809e9ba1ea8d9af0183b74': Remove mkdir() side effect, add .nomedia, utils.
| | * | | | Remove mkdir() side effect, add .nomedia, utils.Jeff Sharkey2013-09-201-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, FUSE lookup() would have the side effect of creating the directory on behalf of apps. This resulted in most directories being created just by Settings trying to measure disk space. Instead, we're switching to have vold do directory creation when an app doesn't have enough permissions. Create fs_mkdirs() utility to create all parent directories in a path as needed. Allow traversal (+x) into /storage directories. Fix FUSE derived permissions to be case insensitive. Mark well-known directories as .nomedia when created. Bug: 10577808, 10330221 Change-Id: I53114f2e63ffbe6de4ba6a72d94a232523231cad
| * | | | | am c9ff3714: am 596e9c63: Merge "fix valgrind ioctl warning."Colin Cross2013-09-051-1/+1
| |\ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | * commit 'c9ff37144a7943ee1bc247cef3620c8cce22049d': fix valgrind ioctl warning.
| * | | | | Move liblog headers to system/core/include/logColin Cross2013-07-242-80/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the liblog headers to log/ instead of cutils/ to complete the separation of libcutils and liblog. cutils/log.h still exists and includes log/log.h in order to support the many existing modules that use cutils/log.h. Change-Id: I2758c9f4aedcb809ca7ba8383d0f55041dd44345
| * | | | | libcutils: reimplement property_list() using __system_property_foreach()Greg Hackmann2013-06-181-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I273fbf7151908ee57b9b951e7d8c5f4925bbc109 Signed-off-by: Greg Hackmann <ghackmann@google.com>
| * | | | | HACK: cutils: restore record_stream temporarilyDima Zavin2013-06-042-0/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore the record_stream code in cutils that was removed in e00a12bf8a99eb6c4f278efa503488aa21dd8d4d as part of cutils cleanup. Unfortunately, there are some prebuilt vendor libs that rely on this functionality that we cannot currently rebuild. Remove at the earliest possible convenience once the vendor libs have been fixed. Bug: 9189218 Change-Id: I5d44126756f1e3ed194d1b5873d64d9154183199 Signed-off-by: Dima Zavin <dima@android.com>
| * | | | | libcutils: Don't build host property supportNick Kralevich2013-05-232-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only build property support for the device, not for the host. Host side property support is being removed, as it was only really used for the simulator. process_name.c: When building this for the host, don't reference properties. Change-Id: Idcea5ad52a85e47eef17a381cb0601657efbdf13
| * | | | | cutils: first pass at cleaning up legacy/obsolete code in cutilsDima Zavin2013-05-0710-2819/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed unused code and moved libraries with single clients near their respective users. Change-Id: I65f90f8659f27bd0f44ca5ddf33da2bce14674c1 Signed-off-by: Dima Zavin <dima@android.com>
| * | | | | Merge "Make init handle reboots"Nick Kralevich2013-04-241-5/+2
| |\ \ \ \ \
| | * | | | | Make init handle rebootsNick Kralevich2013-04-231-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the responsibility for rebooting the system from the reboot command to init. Init is in a better position to take actions to bring the system down cleanly, including making sure filesystems are mounted read-only. The only UIDs which can perform an init triggered reboot are root, system, and shell. Modify the reboot command so that it calls into init to perform the reboot. The reboot command no longer requires CAP_SYS_BOOT. Remove the -n reboot option and code which supports it. Anyone needing to do an unclean shutdown can just do a 'echo c > /proc/sysrq-trigger'. Modify adb so that it calls into init to perform a shutdown. Bug: 8646621 Change-Id: I84c0513acb549720cb0e8c9fcbda0050f5c396f5
| * | | | | | klog: error handling fixupsTodd Poynor2013-04-221-0/+3
| |/ / / / / | | | | | | | | | | | | | | | | | | Change-Id: I9014e62010c589ec30d5e99eef420353e35418b5
* | | | | | Replace __reboot call with syscallPavel Chupin2013-11-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __reboot is hidden for 64-bits and should be hidden on others Change-Id: Ib6435269aac7fa726e49cc02f8f76d2be2875bc6 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* | | | | | Fix a bunch of small system/core bugs.Elliott Hughes2013-10-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missing frees in: adb/file_sync_client.c fastboot/fastboot.c libsparse/output_file.c Missing closedirs in: adb/file_sync_service.c cpio/mkbootfs.c libcutils/dir_hash.c Potential buffer overrun in: gpttool/gpttool.c Incorrect NULL check in: libsparse/backed_block.c Bug: https://code.google.com/p/android/issues/detail?id=61564 Change-Id: If97838a9e73a77aef7f416c31c237ce1fca4ce21
* | | | | | Eliminate text relocations in x86 optimized memset versionsPavel Chupin2013-10-242-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ieb72af8cf7f93210a68a87b1e2538deb5642f4d5 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* | | | | | Use %zd for size_t.Elliott Hughes2013-10-181-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Change-Id: I0139243c309e85236eb00bb471736bdd99eeec84
* | | | | libcutils doesn't need to be looking at bionic's privates.Elliott Hughes2013-10-101-5/+0
| |_|_|/ |/| | | | | | | | | | | Change-Id: Ib11a0c1bdc4b85c58274b21a07aa92f958d23713
* | | | Cleanup x86 flags and memset versionsPavel Chupin2013-10-103-21/+2
| |_|/ |/| | | | | | | | | | | | | | | | | ARCH_X86_HAVE_SSE2 is always true Change-Id: I680493d14280aafad5448aec727e8d9a84a6db00 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* | | Use SSE2 enhanced memset for capable x86 processorsDaniel Leung2013-09-241-11/+15
| |/ |/| | | | | | | | | | | | | | | | | | | | | Originally, if TARGET_ARCH_VARIANT is x86-atom, the SSE2 enhanced memset is used. This patch extends this to all x86 processors which support SSE2 (i.e. ARCH_X86_HAVE_SSE2 is true). Indentation added to the ifeq cases to make this easier to read. Change-Id: I05f49e237a95359d3f2e3216b037e3fc1a0fbcb0 Signed-off-by: Daniel Leung <daniel.leung@intel.com> Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* | fix valgrind ioctl warning.Jin Wei2013-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Initialize local variable to avoid syscall ioctl warning. Change-Id: Ibad5b86cd799f147c71f182d654e61318e2ac15e Origin-Change-Id: Iedf5b128ae1743f633d2821ac3e402942ad6642b Signed-off-by: Jin Wei <wei.a.jin@intel.com> Signed-off-by: Jian Luo <jian.luo@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 62797
* | am e755dfd4: Merge changes I1db3137b,I0f66144eColin Cross2013-06-191-10/+19
|\ \ | |/ |/| | | | | | | * commit 'e755dfd43812ebd9a0d0d6a2106316f343ffb5a2': toolbox: reimplement watchprops using __system_property_foreach() libcutils: reimplement property_list() using __system_property_foreach()
| * libcutils: reimplement property_list() using __system_property_foreach()Greg Hackmann2013-06-181-10/+19
| | | | | | | | | | | | | | | | Signed-off-by: Greg Hackmann <ghackmann@google.com> (cherry picked from commit e7bb159d16f9e60850a3c79cc388587959015a65) Change-Id: I0f66144eb8a4a48e04e4fcd125ad37f19ad94b8e
* | am 25538257: Merge "cutils: add a way to disable tracing for a process" into ↵Jamie Gennis2013-04-161-11/+29
|\ \ | | | | | | | | | | | | | | | | | | jb-mr2-dev * commit '2553825797c40b14981b1b24e44475e07b02267f': cutils: add a way to disable tracing for a process
| * \ Merge "cutils: add a way to disable tracing for a process" into jb-mr2-devJamie Gennis2013-04-161-11/+29
| |\ \
| | * | cutils: add a way to disable tracing for a processJamie Gennis2013-04-151-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds the atrace_set_tracing_enabled call to libcutils. The call can be used to disable all tracing (of the atrace variety) for the current process. This is to be used to disable tracing in the Zygote process, as there is no way for Zygote to be notified of changes to the enabled trace tags. Change-Id: I0b691cc0dcfc65b16e3d17e1db2866a4deb253a7
* | | | am 774814d1: Merge "klog: Have klog_write() call klog_init() if needed" into ↵Ken Sumrall2013-04-151-1/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | jb-mr2-dev * commit '774814d1940a87175fc7dc692fef5c626d893968': klog: Have klog_write() call klog_init() if needed
| * | | klog: Have klog_write() call klog_init() if neededKen Sumrall2013-04-111-1/+4
| |/ / | | | | | | | | | | | | | | | Also change klog_init() to do nothing if already initialized. Change-Id: Ia2dfe914c9d9fd119fb8939508d57b15c9884663
* | | am c796ed97: We need libcutils to include liblogYing Wang2013-04-111-1/+3
|\ \ \ | |/ / | | | | | | | | | * commit 'c796ed97466510dd5239008554decbe72825e19c': We need libcutils to include liblog
| * | We need libcutils to include liblogYing Wang2013-04-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some prebuilts were built against libcutils with liblog in it. Unfortunately that means in the future if someone checks in prebuilts that are built against libcutils and they don't explicitly link against liblog, they will again prevent us from removing liblog from libcutils. Bug: 8587800 Bug: 8580410 Change-Id: I2a5ed6233df7e7d542d1e4167bec405750c0e671
* | | am 9b32f87a: Merge "Add Mips memset speedup"Keun-young Park2013-03-292-0/+35
|\ \ \ | |/ / |/| / | |/ | | * commit '9b32f87a8c489a15baea535800b7c309014bd0ee': Add Mips memset speedup
| * Merge "Add Mips memset speedup"Keun-young Park2013-03-292-0/+35
| |\
| | * Add Mips memset speedupDuane Sand2012-08-292-0/+35
| | | | | | | | | | | | Change-Id: I157aa8b500e271c213bf615dd4ceb25b3aedd7c2
* | | libcutils: add support for app tracingJamie Gennis2013-03-281-5/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds support for tracing using the ATRACE_TAG_APP tag. This tag is enabled only for processes in which the /proc/<pid>/cmdline value appears in the comma-separated list of such values in the debug.atrace.app_cmdlines system property. It is also only enabled if either the ro.debuggable system property is set to 1 or the application has declared itself debuggable in its manifest, which gets reported to libcutils by the framework. Change-Id: Ic94ba55f4e70a9cf994056acbf151e523428b65d
* | | am 4b9bdd33: am 90dd1402: am 241194ca: Merge "[MIPS] Benchmark test for MIPS ↵Jeffrey Brown2013-02-068-0/+766
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | memset16/memset32" # By Duane Sand # Via Android Git Automerger (2) and others * commit '4b9bdd333362c1f58260c37306f1902fb215f7bf': [MIPS] Benchmark test for MIPS memset16/memset32
| * | Merge "[MIPS] Benchmark test for MIPS memset16/memset32"Jeffrey Brown2013-02-078-0/+766
| |\ \
| | * | [MIPS] Benchmark test for MIPS memset16/memset32Duane Sand2012-12-278-0/+766
| | | | | | | | | | | | | | | | | | | | | | | | Author: Chris Dearman <chris@mips.com> AuthorDate: 2011-07-26 19:24:40 Change-Id: I0a7b3360aaf45de8ee47744f7031b84f15f37611
| * | | The localtime_tz and mktime_tz extensions are now in bionic.Elliott Hughes2013-01-155-3344/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry-pick of d03072ffde3279fbb60591a0d07c820d8e792762. This change was originally committed to AOSP, is in internal master, but was somehow lost from AOSP.) Bug: 7012465 Conflicts: libcutils/Android.mk Change-Id: I08ee8eb9b8ce5d3f9d8f2e67437d653e08697bc1
* | | cutils: remove dead code.Nick Kralevich2013-01-291-38/+0
| | | | | | | | | | | | | | | | | | | | | | | | The last caller of this code was removed in dalvik commit eb1703442f3fc0577b3395b7eb4d55300b4125db (https://android-review.googlesource.com/50689) Change-Id: I3f4865c02092752a13369a3b2c3289fc9a4f6a62
* | | am 7f692fe6: am 523e21d3: Merge "Fail-proof the inline directives for SMP ↵Ben Cheng2012-12-071-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | atomic operations." * commit '7f692fe6448049dca2795d7d648615a2dc7a500c': Fail-proof the inline directives for SMP atomic operations.
| * | Fail-proof the inline directives for SMP atomic operations.Ben Cheng2012-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The various atomic operations are declared as inline in the header files to cut the function call overhead. However, the plain inline keyword is just a suggestion to the compiler which makes its own decision on whether to inline them or not. Worst, if they are not inlined, the -fvisibility-inlines-hidden compiler flag will render them as hidden symbols in the object file. If they are picked up by the linker over the ones supplied in libcutils.so the following warning will be reported: warning: hidden symbol 'android_atomic_inc' in foo.o is referenced by DSO bar.so One way is to add __attribute__((visibility("default"))) to those inline functions to suppress the linker warnings. A better way is to force inlining as with this patch. Change-Id: Ie4fcfdfaaf06f42d351619a0d89671a9df15ca2f
* | | cutils: trace: add atrace_update_tags()Alex Ray2012-11-281-0/+13
| | | | | | | | | | | | | | | | | | | | | Adds a function to read the current trace system property value, and sets the trace tags to it, do be used as a sysprop change callback. Change-Id: Ia6336652173aa5b07188898736c2c795a69fe79a
* | | cutils: Add tracing supportAlex Ray2012-11-282-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | Basic tracing functionality to cutils, which can be turned on at start, or dynamically controlled by the frameworks. The goal is for hardware modules to add tracing that will be controlled by their respective services. Change-Id: I84eeb7d6be0038f734e719074fa4a2fae4ffe9c0
* | | The localtime_tz and mktime_tz extensions are now in bionic.Elliott Hughes2012-10-185-3344/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 7012465 (cherry-pick of d03072ffde3279fbb60591a0d07c820d8e792762.) Conflicts: libcutils/Android.mk Change-Id: I5e34edd4c8f59cc0a4d5dcc4740707ae063608a0