android_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
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
Android.bp
OWNERS
cgroup_map.cpp Revive ACgroupController_getFlags LLNDK function to detect missing cgroups 2020-01-29 17:24:06 +00:00
cgroup_map.h
processgroup.cpp libprocessgroup: Prevent SetProcessProfiles from using cached fd 2020-02-14 01:42:11 +00:00
sched_policy.cpp
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