diff options
author | Suren Baghdasaryan <surenb@google.com> | 2019-05-08 17:59:55 -0700 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2019-05-17 16:18:29 -0700 |
commit | fd285d2b70537fd3ef239ae3843c30ccf07ac161 (patch) | |
tree | ce5d376bc399fa807f8550c70f6723842ca34ed8 /libutils/ProcessCallStack_fuzz.cpp | |
parent | 982259add1abf8d1dcf4f465eefee74a83e7d571 (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 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions