platform_system_core/libprocessgroup
Suren Baghdasaryan fa7a05fe5f libprocessgroup: add flags to indicate when a controller failed to mount
Controllers listed in cgroups.json file might fail to mount if kernel is
not configured to support them. We need a way to indicate whether a
controller was successfully mounted and is usable to avoid logging errors
and warnings when a controller that failed to mount is being used. Add
flags bitmask to cgrouprc controller descriptor and use a bit to indicate
that controller is successfully mounted. Modify cpusets_enabled() and
schedboost_enabled() functions to use this bit and report the actual
availability of the controller.

Bug: 124080437
Test: libcutils_test with cpuset and schedtune controllers disabled
Change-Id: I770cc39fe50465146e3205aacf77dc3c56923c5d
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-05-21 10:03:21 -07:00
..
cgrouprc libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
cgrouprc_format libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
include/processgroup libprocessgroup: limit libprocessgroup's VNDK API surface 2019-04-22 20:13:13 +00:00
profiles libprocessgroup: Add VTS tests for vendor JSON files 2019-03-15 16:28:42 -07:00
setup libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
Android.bp Enable native_bridge_support for libprocessgroup 2019-05-16 14:19:09 +02:00
cgroup_map.cpp libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
cgroup_map.h libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
OWNERS Add OWNERS for libprocessgroup 2018-09-14 11:13:22 -07:00
processgroup.cpp libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
sched_policy.cpp libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
task_profiles.cpp Re-enable file descriptor caching and add option to skip caching 2019-04-20 00:11:21 +00:00
task_profiles.h Re-enable file descriptor caching and add option to skip caching 2019-04-20 00:11:21 +00:00