diff options
author | Suren Baghdasaryan <surenb@google.com> | 2019-06-26 11:08:50 -0700 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2019-06-26 18:30:07 +0000 |
commit | cb06c2b3769dc316f54b69ae316bbe2ec205bfce (patch) | |
tree | 36d27f32131ba49081432d6f8e9b1405d7e1cc0e /trusty/coverage/coverage.cpp | |
parent | ba4684c2b2bc952748ebbe176b292a6d263e4dc8 (diff) |
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: aa1d54f0ccbb ("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>
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions