platform_system_core/libprocessgroup
Suren Baghdasaryan 25eb1bfadf 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 11:35:11 -07:00
..
cgrouprc Remove ACgroupController_getFlags to fix API breakage 2019-06-17 16:46:23 +00:00
cgrouprc_format libprocessgroup: add flags to indicate when a controller failed to mount 2019-05-21 10:03:21 -07:00
include/processgroup Allow to drop existing fd cache of cgroup path 2019-06-18 15:53:53 +08: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 libprocessgroup: move native_bridge_support 2019-06-17 12:48:06 -07:00
cgroup_map.cpp Fix IsUsable to check for each controller separately 2019-06-26 11:35:11 -07:00
cgroup_map.h Fix IsUsable to check for each controller separately 2019-06-26 11:35:11 -07:00
OWNERS Add OWNERS for libprocessgroup 2018-09-14 11:13:22 -07:00
processgroup.cpp Allow to drop existing fd cache of cgroup path 2019-06-18 15:53:53 +08: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 Allow to drop existing fd cache of cgroup path 2019-06-18 15:53:53 +08:00
task_profiles.h Allow to drop existing fd cache of cgroup path 2019-06-18 15:53:53 +08:00