platform_system_core/libprocessgroup
Suren Baghdasaryan cb06c2b376 Fix IsUsable to check for each controller separately
CgroupController::IsUsable is using a global static variable to store the
existence of the controller. That means the first controller existence
check would affect all other controllers. Fix this by making this variable
to be a member of CgroupController class so that each controller can check
for its existence independently of other controllers.

Fixes: aa1d54f0cc ("Remove ACgroupController_getFlags to fix API breakage")
Bug: 136020193
Test: adb shell cat /proc/$pid/task/*/cgroup" prints "cpuset:/top-app"
Test: for new launched activity process
Change-Id: I4741a9126ea494122d5b2b1a0c4d7252bff6025c
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-06-26 18:30:07 +00:00
..
cgrouprc Remove ACgroupController_getFlags to fix API breakage 2019-06-17 16:49:36 +00: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 Revert "libprocessgroup users use libcutils" 2019-06-19 05:25:07 +00:00
OWNERS Add OWNERS for libprocessgroup 2018-09-14 11:13:22 -07:00
cgroup_map.cpp Fix IsUsable to check for each controller separately 2019-06-26 18:30:07 +00:00
cgroup_map.h Fix IsUsable to check for each controller separately 2019-06-26 18:30:07 +00: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 race condition in libprocessgroup 2019-06-12 19:27:14 +00:00
task_profiles.h race condition in libprocessgroup 2019-06-12 19:27:14 +00:00