android_system_core/libprocessgroup
Suren Baghdasaryan fd285d2b70 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-17 16:18:29 -07:00
..
cgrouprc libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-17 16:18:29 -07:00
cgrouprc_format libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-17 16:18:29 -07:00
include/processgroup libprocessgroup: limit libprocessgroup's VNDK API surface 2019-04-22 17:09:54 -07: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-17 16:18:29 -07:00
Android.bp Static link libjsoncpp in libprocessgroup 2019-05-08 13:04:11 -07:00
cgroup_map.cpp libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-17 16:18:29 -07:00
cgroup_map.h libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-17 16:18:29 -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-17 16:18:29 -07:00
sched_policy.cpp libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-17 16:18:29 -07:00
task_profiles.cpp Re-enable file descriptor caching and add option to skip caching 2019-04-22 17:09:40 -07:00
task_profiles.h Re-enable file descriptor caching and add option to skip caching 2019-04-22 17:09:40 -07:00