platform_system_core/libprocessgroup
Suren Baghdasaryan 911109c414 libprocessgroup: Prevent SetProcessProfiles from using cached fd
Because we cache file descriptors associated with cgroup "tasks" file it
should not be used with SetProcessProfiles API which operates on entire
processes rather than tasks. Change SetProcessProfiles API to prevent
cache fd usage, modify ExecuteForProcess to not attempt to use cached
fd. Also fix unconditional calls to EnableResourceCaching from
ExecuteForTask which should be called only when SetTaskProfiles is used
with use_fd_cache set to true.

Bug: 149524788
Change-Id: I880efaf8217a4dd7ccfbb4fb167b2295cefc057a
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-02-14 01:42:11 +00:00
..
cgrouprc Revive ACgroupController_getFlags LLNDK function to detect missing cgroups 2020-01-29 17:24:06 +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 libprocessgroup: Prevent SetProcessProfiles from using cached fd 2020-02-14 01:42:11 +00:00
profiles task_profiles.json: Fix uclamp attribute 2020-02-04 13:10:31 +00: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 Revive ACgroupController_getFlags LLNDK function to detect missing cgroups 2020-01-29 17:24:06 +00:00
cgroup_map.h Fix IsUsable to check for each controller separately 2019-06-26 11:35:11 -07:00
OWNERS Add surenb@ to libprocessgroup OWNERS 2019-09-17 08:50:04 -07:00
processgroup.cpp libprocessgroup: Prevent SetProcessProfiles from using cached fd 2020-02-14 01:42:11 +00:00
sched_policy.cpp libprocessgroup: ensure schedboost_enabled is true with uclamp 2020-01-27 11:04:03 +00:00
task_profiles.cpp libprocessgroup: Prevent SetProcessProfiles from using cached fd 2020-02-14 01:42:11 +00:00
task_profiles.h libprocessgroup: Prevent SetProcessProfiles from using cached fd 2020-02-14 01:42:11 +00:00