summaryrefslogtreecommitdiff
path: root/libutils/Unicode_test.cpp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2021-09-02 19:47:12 -0700
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-01-21 01:28:33 +0000
commit48e692cecd21059c9e94b9a399b96056f3b66289 (patch)
tree24420582f9d9380dda7bc8538f34bbb1eaeb776c /libutils/Unicode_test.cpp
parent125e23a2a2b3aa2a017e97c5cb54357a0ccdcf0b (diff)
libprocessgroup: Prevent error spam when tests disable all cpus in a cpuset
UserLifecycleTests test disables all Little cores in the course of the test, which causes attempts to add a process into /dev/cpuset/restricted cpuset cgroup to fail with ENOSPC error code, indicating that a process is joining a cpuset cgroup with no online cpus. Current libprocessgroup implementation will log an error on each such occurrence, which spams the logs and makes it hard to analyze test results. Because this situation does not happen in production environment (we do not offline cpus), we can prevent flooding the logs by identifying this case, logging an appropriate error one time and ignore all later similar errors. Bug: 158766131 Test: adb shell "echo 0 > /sys/devices/system/cpu/cpu[0-3]/online" Test: start some apps, observe libprocessgroup errors in the logcat Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: Ia91d8839d86787569c255481bde077be51c43d93 Merged-In: Ia91d8839d86787569c255481bde077be51c43d93 (cherry picked from commit ae42d601d09fa32b5c33758432cbd306b60f58ee) Merged-In:Ia91d8839d86787569c255481bde077be51c43d93
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions