summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
* | | fs.c: Fix implicit declaration of function 'mkstemp'Nick Kralevich2012-10-151-0/+1
|/ / | | | | | | | | | | | | system/core/libcutils/fs.c: In function 'fs_write_atomic_int': system/core/libcutils/fs.c:109:5: warning: implicit declaration of function 'mkstemp' [-Wimplicit-function-declaration] Change-Id: I337ecb818f85e20b058f782df45987acf2e9d6c1
* | Allow mkdir() race to succeed.Jeff Sharkey2012-09-251-2/+4
| | | | | | | | | | | | | | | | | | When two zygotes are starting, they both may try creating a mount point after checking lstat(). The second mkdir() will result in EEXIST, which is okay to ignore. Bug: 7165469 Change-Id: If4411e2621f773c74cd05247899982fa5ebdd020
* | Wrap more system calls in TEMP_FAILURE_RETRY.Jeff Sharkey2012-09-131-4/+4
| | | | | | | | | | Bug: 7151474 Change-Id: I9fe19746104cf392f88ea5cf8061e2e21e334671
* | Wrap system calls in TEMP_FAILURE_RETRY.Jeff Sharkey2012-09-131-6/+8
| | | | | | | | | | | | | | | | fs_prepare_dir() is used heavily during Zygote init, and can easily run into EINTR. Bug: 7151474 Change-Id: I7aac43a43483d55db47ca20456fff68ce51bbc46
* | File-system utilities for installd and zygote.Jeff Sharkey2012-08-303-3/+142
| | | | | | | | | | Bug: 7008879 Change-Id: Ia54b8d4ad434e8973f235e2a4728651814bef8a9
* | Revert "Revert "Upgrade to dlmalloc 2.8.5.""Ian Rogers2012-08-283-294/+13
| | | | | | | | This reverts commit 42b83c6df7e4f65461a32a711d5dd4f46b9b85e0.
* | Revert "Upgrade to dlmalloc 2.8.5."Brian Carlstrom2012-08-223-13/+294
| | | | | | | | This reverts commit 2d13791ce7ff61221ca047553891f31a23b2e943.
* | am e05ac541: am 9d779bf1: Merge "Upgrade to dlmalloc 2.8.5."Brian Carlstrom2012-08-203-294/+13
|\ \ | |/ | | | | | | * commit 'e05ac5415e861dee6a3f175c8066ff577736ba1f': Upgrade to dlmalloc 2.8.5.
| * Upgrade to dlmalloc 2.8.5.Ian Rogers2012-08-203-294/+13
| | | | | | | | | | | | | | | | | | | | Remove mspace functionality from cutils. Directly declare mspace from dlmalloc in code flinger's code cache, and manage without using morecore. Depends upon: https://android-review.googlesource.com/41717 Change-Id: If927254febd4414212c690f16509ef2ee1b44b44
* | Omit multiuser.c from Windows builds.Jeff Sharkey2012-08-161-1/+1
| | | | | | | | Change-Id: I0cee35373e33084e4fc65a1d5c0b611c6fa82346
* | Merge "Multi-user external storage support." into jb-mr1-devJeff Sharkey2012-08-162-9/+6
|\ \
| * | Multi-user external storage support.Jeff Sharkey2012-08-152-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remount rootfs as recursively shared, so that mount changes are propagated into child namespaces. Mount external storage for access from adb. Clean multi-user dependencies for use in Dalvik. Also define external storage paths. Bug: 6925012 Change-Id: I375de581a63f4f36667894c56a34a9dd45361e8f
* | | am e8e73b01: am 311a4758: Merge "Remove system/core\'s remnants of SH support."Jean-Baptiste Queru2012-08-132-141/+0
|\ \ \ | |/ / |/| / | |/ | | * commit 'e8e73b01399e8d3c3fc6b94d26ef9cc49b33dda8': Remove system/core's remnants of SH support.
| * Remove system/core's remnants of SH support.Elliott Hughes2012-08-112-141/+0
| | | | | | | | | | | | SH support is long dead. Change-Id: I6be2763ca9f1ad8b3f9b09a8ad2f1d67f1e7f802
* | Include to define uid_t.Jeff Sharkey2012-08-081-3/+3
| | | | | | | | Change-Id: I02d36346fc3c6236bd64309798b434405f8dfef7
* | Native utils for working with user and app IDs.Jeff Sharkey2012-08-072-1/+34
|/ | | | | Bug: 6925012 Change-Id: I56f18826fd324f60b6e446cebd30719258e40990
* Enhance native stack dumps.Jeff Brown2012-06-082-1/+96
| | | | | | | | | | | | | | | | | | | | | | | | | Provides a new mechanism for dumpstate (while running as root) to request that debuggerd dump the stacks of native processes that we care about in bug reports. In this mode, the backtrace is formatted to look similar to a Dalvik backtrace. Moved the tombstone generating code into a separate file to make it easier to maintain. Fixed a bug where sometimes the stack traces would be incomplete because we were not waiting for each thread to stop after issuing PTRACE_ATTACH, only the main thread. So sometimes we were missing traces for some threads. Refactored the logging code to prevent accidentally writing data to logcat when explicitly dumping a tombstone or backtrace from the console. Only root or system server can request to dump backtraces but only root can dump tombstones. Bug: 6615693 Change-Id: Ib3edcc16f9f3a687e414e3f2d250d9500566123b
* cutils: sched_policy: remove audio app/sys groups, merge into fgDima Zavin2012-06-041-31/+4
| | | | | | Bug: 6528015 Change-Id: I6c2658b62442d811b53c6d18476fbd6cd45f9e3f Signed-off-by: Dima Zavin <dima@android.com>
* cutils: sched_policy: make bg group be nested under fgDima Zavin2012-06-041-4/+4
| | | | | | | | | Adds an apps cgroup which will contain fg tasks. Move the bg group nested underneath it. Bug: 6538553 Change-Id: I55279415da625e15a5bb061c2b45fbe7f7a4c047 Signed-off-by: Dima Zavin <dima@android.com>
* Revert "Revert "Use O_CLOEXEC when opening cgroup fds.""Jeff Brown2012-05-081-5/+5
| | | | This reverts commit 4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982.
* Add stubs for host builds.Jeff Brown2012-05-081-17/+30
| | | | | Bug: 4466013 Change-Id: I5633c841e71a48357bb04cd7ccc02550c17bde22
* Revert "Use O_CLOEXEC when opening cgroup fds."Jeff Brown2012-05-081-5/+5
| | | This reverts commit e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7
* Use O_CLOEXEC when opening cgroup fds.Jeff Brown2012-05-081-5/+5
| | | | | Bug: 4466013 Change-Id: I0d2e915fc550a0ecaccad5e452dd4c87fc878b8b
* Support full 32 bits for socket tags.Jeff Sharkey2012-05-021-3/+1
| | | | | Bug: 5321184 Change-Id: Iabd668674e60626caafc9b66b29fdbddc3724f58
* Add more SP_ constantsGlenn Kasten2012-04-231-14/+80
| | | | Change-Id: I52c8ea33b9b915fc08546f2ca0b191391f58506b
* Scheduling group cleanup - add comment, SP_DEFAULTGlenn Kasten2012-04-201-0/+21
| | | | | | | | Also tid == 0 maps to gettid() on platforms that support it. This is needed by mediaserver code that was formerly using the old C++ API. Change-Id: I8baaa3e42315c9b924cec26b6da01e7cb69e0078