summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2019-05-08 17:59:55 -0700
committerSuren Baghdasaryan <surenb@google.com>2019-05-21 10:03:21 -0700
commitfa7a05fe5f7a166baefb07298b4908ebc9b90075 (patch)
treef2c98c45fa117e7857a3ad85a65ee92488f33f50 /base/errors_unix.cpp
parent7dc7c3a9c66cc5f934e57a57415dae33c4830841 (diff)
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>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions