summaryrefslogtreecommitdiffstats
path: root/libutils
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-8/+0
| | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* libutils: FileMap styling adjustmentsMark Salyzyn2014-04-171-35/+26
| | | | Change-Id: I487ebe67a46a7b8f680e722141dd216bbd396f3e
* libutils: FileMap 64 bit compile issuesMark Salyzyn2014-04-171-9/+10
| | | | Change-Id: Ie7a0aeb2a7e2d2a90aa2b97c657ea7ec566bf793
* libutils: BlobCache 64 bit compile issuesMark Salyzyn2014-04-171-13/+14
| | | | Change-Id: I60e9bddfff04f19834b83bdc26a83ca7173363c3
* Merge "HAVE_POSIX_CLOCKS doesn't imply CLOCK_BOOTTIME."Narayan Kamath2014-04-151-2/+4
|\
| * HAVE_POSIX_CLOCKS doesn't imply CLOCK_BOOTTIME.Narayan Kamath2014-04-101-2/+4
| | | | | | | | | | | | | | | | | | | | HAVE_POSIX_CLOCKS imples clock_gettime,settime and CLOCK_REALTIME / CLOCK_MONOTONIC. CLOCK_BOOTTIME appears only on newer versions of glibc and might only be supported on newer kernels. Change-Id: I66e724a3593538c3b80de2c5f81a964d3fa96eaf
* | Cleanup: warning fixit.Sasha Levitskiy2014-04-112-2/+2
|/ | | | | | | bootable/recovery has a dependent commit: I9adb470b04e4301989d128c9c3097b21b4dea431 Change-Id: Icf23e659265d71d5226d527c2b40cfbc132320ee Signed-off-by: Sasha Levitskiy <sanek@google.com>
* Fix stack trace logging in RefBase.Ian McKellar2014-04-011-2/+2
| | | | | | | This was broken about 5 months ago in change I78435ed49aa196a0efb45bf9b2d58b62c41737d3. See: https://goto.google.com/jhtss Change-Id: Icc32993552efed3015bc1b79a7bd872d7510e020
* Fix undefined args access for x86_64.Fengwei Yin2014-02-271-2/+11
| | | | | | | | | | | | | | From libc manual for vsnprintf: The functions vprintf(), vfprintf(), vsprintf(), vsnprintf() are equivalent to the functions printf(), fprintf(), sprintf(), snprintf(), respectively, except that they are called with a va_list instead of a variable number of arguments. These functions do not call the va_end macro. Because they invoke the va_arg macro, the value of ap is undefined after the call. We need to allocate/end new va_list for each vsnprintf. Change-Id: I66ec058033be1cb918e7b2bc84ca546800da226b Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
* Move CallStack to libbacktrace.Christopher Ferris2014-01-094-91/+27
| | | | | | | | | Fix a small bug in the Printer for strings that didn't properly prepend the prefix. (cherry picked from commit 9b0e074c6d38143e01616404a08b0c7aa992f3c3) Change-Id: I78bfa3f76864c34f33fb439bf20dfc85616f1077
* Make libutils Looper independent of frameworks/nativeBrian Carlstrom2013-12-182-99/+99
| | | | Change-Id: I1dacca10a3cd7601abc3451b69ed761bf71c38fe
* SystemClock: use clock_gettime() on devices without /dev/alarmGreg Hackmann2013-12-171-16/+9
| | | | | | | | | | | On devices with an up-to-date kernel, the back-in-time bug affecting clock_gettime() has been fixed and it can safely be used as an alternative to the ANDROID_ALARM_GET_TIME ioctl. To ensure consistent behavior on existing devices, make clock_gettime() a fallback for when the alarm driver isn't available. Change-Id: I384af5e7ec9e73e0bad4b6b0f987a8ea4583cba6 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* fix corruption in Vector<> when malloc faliedShuo Gao2013-10-301-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | 1. When alloc or realloc failed in the function SharedBuffer::editResize, it would return a NULL pointer, then mStorage would update to be 1 by SharedBuffer::data() if no pointer check here, which is an obviously wrong address, and would cause corruption when used it e.g. in capacity(). So add the pointer check here for the return value of SharedBuffer::editResize, if it's NULL do not use it to update mStorage, to avoid the value of mStorage polluted. 2. when alloc or realloc falied in _grow & _shrink function, mStorage keep the original value, so mCount should not be updated here. Otherwise, mStorage might be 0 but mCount>0, so a corruption would happend when it try to delete items from the Vector since mCount>0. Change-Id: I7c3814e843c459834ca5eed392e8d63d1cb7d2d8 Signed-off-by: Shuo Gao <shuo.gao@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: 139626
* utils: Fix broken sdk build on windowsIgor Murashkin2013-10-302-0/+10
| | | | | Bug: 11324229 Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
* utils: Fix broken buildIgor Murashkin2013-10-301-0/+2
| | | | | Bug: 11324229 Change-Id: I7e4f514c5531e4c0c11bb0ba5d67e4dabbcd5792
* utils: Add ProcessCallStack to collect stack traces for all threads in a processIgor Murashkin2013-10-254-27/+446
| | | | | | | - Also add a Printer class (print lines to logcat, fd, or strings) Bug: 11324229 Change-Id: I78435ed49aa196a0efb45bf9b2d58b62c41737d3
* Disable timestamp logging.Ben Cheng2013-09-231-0/+13
| | | | | | | | | The kernel problem has been fixed long time ago and the ad-hoc logging mechanism is not thread safe and can flood the log with spurious messages. BUG: 10899829 Change-Id: I63278db51295e744eed3e47dc8d4cfe621c0d8f7
* move libs/utils to libutilsAlex Ray2013-08-0240-0/+10207
Change-Id: I6cf4268599460791414882f91eeb88a992fbd29d