summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
* Fix access checkJohn Reck2016-08-261-3/+10
| | | | | | | | | | | | | Fixes a bug where USE_CPUSET used access(F_OK) as a sign that it should try writing to the cpuset path. It needs to instead use access(W_OK) to ensure that it has write access as that's what it would try to open() with. And stop trying to repeatedly open a file that doesn't exist. Change-Id: Ib391ee6f08345051c48a986a732eda30143cb614
* Merge "libcutils: Add ashmem_valid() function"Mark Salyzyn2016-08-241-15/+22
|\ | | | | | | | | | | am: d00c7470ea Change-Id: Ib09d3ee7bb131c30f59ea273f357c045394206fb
| * libcutils: Add ashmem_valid() functionMark Salyzyn2016-08-231-15/+22
| | | | | | | | | | Bug: 30310689 Change-Id: I14c52c5d52745a725799652b87c86281ac214899
* | Merge "Remove process_name.c"Dmitriy Filchenko2016-08-192-98/+0
|\| | | | | | | | | | | am: e5b7ad1c39 Change-Id: I8f98f5fe9ff526ed8780971eddef128ed46de271
| * Remove process_name.cDmitriy Filchenko2016-08-182-98/+0
| | | | | | | | | | | | BUG: 29824203 Change-Id: I88d67cafb8ec0c4eea3db047bac0671de698ba02
* | Merge "libcutils: add sched_policy test"Greg Hackmann2016-08-042-0/+99
|\| | | | | | | | | | | am: 5f851752d3 Change-Id: If3f9f573303b0485582d7090afb6ecbbdca73a4f
| * Merge "libcutils: add sched_policy test"Treehugger Robot2016-08-042-0/+99
| |\
| | * libcutils: add sched_policy testGreg Hackmann2016-08-032-0/+99
| | | | | | | | | | | | | | | | | | | | | Bug: 30597190 Change-Id: I51950e82235fa19bc92b3f7e8d190766d71af7df Signed-off-by: Greg Hackmann <ghackmann@google.com>
* | | Merge "Remove the prctl PR_SET_TIMERSLACK_PID call."Elliott Hughes2016-08-041-10/+2
|\| | | | | | | | | | | | | | | | | am: b3654fa086 Change-Id: I5f833a1497fcbb8b7c3f1efcd707b6186a6409e6
| * | Remove the prctl PR_SET_TIMERSLACK_PID call.Elliott Hughes2016-08-031-10/+2
| |/ | | | | | | | | | | | | | | | | This is broken on all devices other than N9, and has no real path to fixing it because there are so many different values already in use (41, 43, 47, 127), with no way to tell which you should use on any given device. Bug: http://b/30597190 Change-Id: I07eeaaf6f5dc03c5532ffbfbb85ef2ad750206a0
* | Merge \"sched_policy: Add support for /proc/<tid>/timerslack_ns over ↵John Stultz2016-07-301-5/+25
|\| | | | | | | | | | | | | | | PR_SET_TIMERSLACK_PID\" am: 817d53493a Change-Id: Iea895b632b3bfa7daae0be34c2cc69563a18a6d5
| * sched_policy: Add support for /proc/<tid>/timerslack_ns over ↵John Stultz2016-07-291-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR_SET_TIMERSLACK_PID The PR_SET_TIMERSLACK_PID number has collided with upstream changes a number of times, and thus the number is not consistent between AOSP common kernel versions. In 4.6+, the upstream kernel added equivalent functionaity via the /proc/<tid>/timerslack_ns entry. This patch changes the sched_policy logic to support /proc/<tid>/timerslack_ns if its available, falling back to the older PR_SET_TIMERSLACK_PID method if not. NOTE: Eventually PR_SET_TIMERSLACK_PID usage will need to be removed as it is likely to conflict with valid future upstream PR_* entries. Also add missing O_CLOEXEC to other open calls in this file. Change-Id: Iec0b8a62de0dc8bdd57b60df82bd4d31c5d64709 Signed-off-by: John Stultz <john.stultz@linaro.org>
* | Merge \"Fix early init logging.\"Elliott Hughes2016-07-271-9/+1
|\| | | | | | | | | | | am: 6d232ab4de Change-Id: I437dd3b5243ca7854439c438093e94733579279e
| * Fix early init logging.Elliott Hughes2016-07-261-9/+1
| | | | | | | | | | | | | | | | | | | | | | Remove the /dev/__kmsg__ workarounds (which can then be removed from sepolicy), and fix confusion in the translation between android-base logging and kernel logging priorities (in particular, where 'notice' comes in the hierarchy). Bug: http://b/30317429 Change-Id: I6eaf9919904b6b55bc402c20bf1a4ae269014bc7 Test: adb shell dmesg | grep init
* | Merge \"Add ioprio values directly.\"Christopher Ferris2016-07-201-1/+2
|\| | | | | | | | | | | am: feabb0fdc1 Change-Id: Ic8f7f714c30ef70172ebce8b6de7af8d09572eba
| * Merge "Add ioprio values directly."Christopher Ferris2016-07-201-1/+2
| |\
| | * Add ioprio values directly.Christopher Ferris2016-07-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The ioprio.h header is not a uapi header, so remove it's use and add the two values that this code needs to use. Bug: 30072483 Change-Id: I5c8b6f40bd60a43f50ac26792f96d2fa3f6db020
* | | Merge \"Remove no-op klog_init.\"Elliott Hughes2016-07-191-3/+0
|\| | | | | | | | | | | | | | | | | am: 5558cd362b Change-Id: I3f2112bead6740f1df48bc5b028f62c91d40425b
| * | Remove no-op klog_init.Elliott Hughes2016-07-191-3/+0
| |/ | | | | | | Change-Id: I467edad1d004ac16647f4aa1f0eead04e808efa0
* | Merge \"libcutils: Switch to Android.bp\"Dan Willemsen2016-07-134-234/+227
|\| | | | | | | | | | | am: bc6c52f905 Change-Id: Ie2beefe7f9992740ada57d6ab989abb74d257c5b
| * libcutils: Switch to Android.bpDan Willemsen2016-07-124-234/+227
| | | | | | | | Change-Id: If36cb30e8e4432f1a5c7f9a6d30a75c012a4c67c
* | Merge \"Make klog_fd thread-safe and make klog_init a no-op.\"Elliott Hughes2016-07-082-14/+15
|\| | | | | | | | | | | am: 588b770063 Change-Id: I884276a8f8b8209f6e956c5fb410e8265184e1b5
| * Merge "Make klog_fd thread-safe and make klog_init a no-op."Elliott Hughes2016-07-082-14/+15
| |\
| | * Make klog_fd thread-safe and make klog_init a no-op.Elliott Hughes2016-06-292-14/+15
| | | | | | | | | | | | | | | | | | | | | I'll come back and remove klog_init when I've removed other calls to it. Change-Id: Iad7fd26d853b4ddc54e9abd44516b6f138cbbfcb Test: booted N9, looked at "adb shell dmesg" output.
* | | Merge \"libcutils: canned_fs_config.c drop tabs\"Mark Salyzyn2016-07-061-75/+81
|\| | | | | | | | | | | | | | | | | am: 4ee9ed5366 Change-Id: Ie72d7562be3316d2ebe732dd1d1fbd4a04b6557b
| * | libcutils: canned_fs_config.c drop tabsMark Salyzyn2016-07-061-75/+81
| |/ | | | | | | | | | | | | - replace tabs with spaces, get indent right - Sort header order as per Android coding standard Change-Id: I634f6f716a368ce5565ccc880c51406042f312bf
* | Merge \"Remove unnecessary ARRAY_SIZE macros.\"Elliott Hughes2016-06-291-9/+10
|\| | | | | | | | | | | am: c37d8ea22a Change-Id: Id3443d7247e893ee549ae5b799a8f0bf42088d35
| * Remove unnecessary ARRAY_SIZE macros.Elliott Hughes2016-06-281-9/+10
| | | | | | | | | | | | Use the canonical one instead. Change-Id: Id80f19455f37fd2a29d9ec4191c1a0af80c5c0e7
* | Merge changes from topic \'debuggerd_client\'Josh Gao2016-06-201-1/+4
|\| | | | | | | | | | | am: abf88685e3 Change-Id: I2a61e4e8b5ec5a4ab6566ab4f8eb31653255fbc5
| * debuggerd: add libdebuggerd_client.Josh Gao2016-06-171-1/+4
| | | | | | | | | | Bug: http://b/24414818 Change-Id: I079c534d2c952b6975bf0428eb86cc7a55525737
* | Merge "Add utility to prepare files in a similar way to directories" into ↵Calin Juravle2016-06-021-9/+24
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nyc-dev am: 6a29fe931d * commit '6a29fe931d9fd3bf7f2aad3713dc70c080970763': Add utility to prepare files in a similar way to directories Change-Id: I288024d55e8cead1c902950938b03bfa8dcc3df3
| * \ Merge "Add utility to prepare files in a similar way to directories" into ↵Calin Juravle2016-06-021-9/+24
| |\ \ | | | | | | | | | | | | nyc-dev
| | * | Add utility to prepare files in a similar way to directoriesCalin Juravle2016-05-241-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 28785119 Bug: 28625993 Change-Id: I505eb4deca0a89f64fe4505dd6729fe6a48bc1aa
* | | | Merge "Add /vendor/xbin to the list of directories of executables" into nyc-devErik Kline2016-05-301-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 088f0e7c40 * commit '088f0e7c40a1cc66505f2bd73c54f3bab9908986': Add /vendor/xbin to the list of directories of executables Change-Id: Ib1172d5a5f0f0f1a82ce5ca260ef4539761ef679
| * | | Add /vendor/xbin to the list of directories of executablesErik Kline2016-05-271-0/+2
| |/ / | | | | | | | | | | | | Bug: 28850734 Change-Id: Iaa14a463294d1f8a9c69328a273ce7f12a558bab
* | | resolve merge conflicts of e845c04 to nyc-dev-plus-aospChih-Hung Hsieh2016-05-271-1/+1
|\ \ \ | | |/ | |/| | | | Change-Id: I423f722dcc3821b9be52613d68640b49cbac70a6
| * | Fix misc-macro-parentheses warnings in init and other core modules.Chih-Hung Hsieh2016-05-181-1/+1
| | | | | | | | | | | | | | | Bug: 28705665 Change-Id: Ice67cebb8c42538f8fb9cf1756678f41a9d68a31
* | | Merge "Don\'t expose ashmem constants on the host." am: 54fed512b9Elliott Hughes2016-05-161-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | am: ed95190b69 * commit 'ed95190b690adf3a452001fc527881af913c5ccd': Don't expose ashmem constants on the host. Change-Id: I930dd0b72e88647b1e94694e5fb183431c7d75c6
| * | Don't expose ashmem constants on the host.Elliott Hughes2016-05-131-2/+2
| | | | | | | | | | | | Change-Id: I86bf58841645114e382300228be7be69a555e76b
| * | Move canned_fs_config into libcutilsMohamad Ayyash2016-05-122-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's no longer specific to make_ext4fs, will be used for mksquashfs as well. BUG: 27467028 Change-Id: I41b8c2b168ada45c8378dee522391edfb8f6b9a6 Signed-off-by: Mohamad Ayyash <mkayyash@google.com> BUG: 28704419
* | | Merge "<cutils/atomic.h> has been inlined for two years now." am: c5016de66bElliott Hughes2016-05-102-27/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | am: 23e1312720 * commit '23e1312720c45944646f68379c1f15fcd8434da8': <cutils/atomic.h> has been inlined for two years now. Change-Id: Ia4205030c07494149b8392abf74ec29ebd463724
| * | <cutils/atomic.h> has been inlined for two years now.Elliott Hughes2016-05-092-27/+0
| | | | | | | | | | | | Change-Id: If4f817acc054d7336df09a5b8dde34693e0e96a5
* | | Merge "atrace: read package names from multiple sysprops" into nyc-devsergeyv2016-04-301-14/+7
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | am: d7dfadbd4c * commit 'd7dfadbd4c66a8b6f1f8e0be805c211b83e88c16': atrace: read package names from multiple sysprops Change-Id: I518cf650728c0d15a618ec8e40b26b2fe0385972
| * | atrace: read package names from multiple syspropssergeyv2016-04-291-14/+7
| | | | | | | | | | | | | | | bug: 28200530 Change-Id: I4597a84f4fb16098b0e57684cde5e57c1f41eed5
* | | Merge "More secure and compiler warning fix for sprintf into snprintf" am: ↵Elliott Hughes2016-04-191-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | 4f21555 am: e05688a * commit 'e05688a176c27025d59c0a512501a411b56f1bb1': More secure and compiler warning fix for sprintf into snprintf Change-Id: I93d4ff6d1c2674113d481ff06170d19f31951346
| * | More secure and compiler warning fix for sprintf into snprintfRaja M2016-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | To fix GCC WARNINGS while building. or To support error free -D_FORTIFY_SOURCE=2 strict mode compilation. Change-Id: I999bd83785456a77247e5e1d708e2bdde2eb057b
* | | Merge "Update get_sched_policy to return TOP_APP correctly." into nyc-devMartijn Coenen2016-04-111-7/+24
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | am: 15fea7a * commit '15fea7ae1a4a179bb2c2e4066bfbfb312eec56e0': Update get_sched_policy to return TOP_APP correctly. Change-Id: I7406fcf2fdcb2a34ee3a81bf9f74dceddc22d316
| * | Merge "Update get_sched_policy to return TOP_APP correctly." into nyc-devMartijn Coenen2016-04-111-7/+24
| |\ \
| | * | Update get_sched_policy to return TOP_APP correctly.Martijn Coenen2016-04-041-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently get_sched_policy() would only return foreground or background, but not TOP_APP, since it's not looking at CPUsets at all. Fixing this makes testing easier, and it also corrects the output of "ps -P" to show "ta" for current top app. Bug: 27857142 Change-Id: I589cacc107f355de15750f01b06f404b59a0f99b
* | | | Merge "Move canned_fs_config into libcutils" into nyc-devMohamad Ayyash2016-04-082-0/+118
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3f28318 * commit '3f2831876107ad18422bd67a459e2070c66a3827': Move canned_fs_config into libcutils Change-Id: I88019bfa08603b1df2f2cbe4c79e45f126d83a1b