Go to file
Suren Baghdasaryan 1e81ee1363 libprocessgroup: optimize SetAttributeAction::ExecuteForProcess performance
Current implementation of SetAttributeAction::ExecuteForProcess reuses
SetAttributeAction::ExecuteForTask while not utilizing available uid/pid
information. This results in a call to GetPathForTask() which is an
expensive function due to it reading and parsing /proc/$pid/cgroups.
This can be avoided if we utilize available uid/pid info and the fact
that cgroup v2 attributes share the cgroup v2 hierarchy as process
groups, which use a known path template.

Bug: 292636609
Change-Id: I02e3046bd85d0dfebc68ab444f1796bb54cc69c7
Merged-In: I02e3046bd85d0dfebc68ab444f1796bb54cc69c7
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(cherry picked from commit 961c01ce23)
2023-07-31 22:33:27 +00:00
bootstat
cli-test
code_coverage
debuggerd Check get_gwp_asan_callbacks before calling. 2023-05-26 12:06:41 -07:00
diagnose_usb
fastboot Added test for parsing bad input 2023-04-20 14:11:06 -07:00
fs_mgr Merge "ueventd: Fix a race condition in handling device-mapper events." into udc-dev 2023-06-08 15:29:50 +00:00
gatekeeperd
healthd BatteryMonitor: support battery health INCONSISTENT from health status 2023-05-29 18:30:58 +08:00
include
init Revert "Listen on property_service_for_system socket" 2023-07-11 14:01:01 -07:00
janitors
libappfuse
libasyncio
libbinderwrapper
libcrypto_utils
libcutils Merge "Merge "Merge "libcutils_test: static libjsoncpp" into android12-tests-dev am: 9825551dbf" into android12L-tests-dev am: 50cac03f37" into android13-tests-dev am: 2520bfb0d9 am: 1400b2dcaa am: 2d9d60a93d 2023-06-08 00:29:32 +00:00
libdiskconfig
libgrallocusage
libkeyutils
libmodprobe Use android::base::Basename instead of basename 2023-04-13 21:59:58 -07:00
libnetutils
libpackagelistparser
libprocessgroup libprocessgroup: optimize SetAttributeAction::ExecuteForProcess performance 2023-07-31 22:33:27 +00:00
libsparse
libstats
libsuspend
libsync
libsystem
libsysutils
libusbhost
libutils
libvndksupport
llkd
mini_keyctl
mkbootfs
property_service
reboot
rootdir Increasing length of the datagram for Unix Domain Socket 2023-06-02 00:27:05 +00:00
run-as
sdcard
shell_and_utilities
storaged
toolbox toolbox/modprobe: Fix fallback path when mod_dirs is empty 2023-05-26 13:40:12 -07:00
trusty
usbd
watchdogd
.clang-format
.clang-format-2
.clang-format-4
.gitignore
CleanSpec.mk
METADATA
MODULE_LICENSE_APACHE2
OWNERS
PREUPLOAD.cfg
rustfmt.toml