OSDN Git Service

Add cpuset switching to scheduler policy mechanism.
authorCorey Tabaka <eieio@google.com>
Wed, 16 Aug 2017 21:52:01 +0000 (14:52 -0700)
committerCorey Tabaka <eieio@google.com>
Wed, 16 Aug 2017 23:41:08 +0000 (16:41 -0700)
commit92f1377ef1abfd1dfda7e2ec7493f6f779d7d533
treec7c002288670eb723fcfd538f495e7c4a539bf53
parent1e35190fc711256b867ca2bb17b2ff69eb9f072c
Add cpuset switching to scheduler policy mechanism.

Add the ability to add a cpuset to the supported scheduler policies.
This enables services that use the scheduler policy API to run in
the correct cpuset without explicitly requesting a cpuset via the
deprecated API.

Add tests to confirm the correct operation and fix flaky test due
to racing with thread.join().

Also fix log messages on performanced startup related to failure to
access /proc/<pid> directories for certain tasks: this failure is
expected due to sepolicy settings and the log spam is unnecessary.

Bug: 64337476
Test: performance_service_tests passes.
Change-Id: I8a82852e63e39fe72fa3b731e03237f3652cddc7
services/vr/performanced/performance_service.cpp
services/vr/performanced/performance_service.h
services/vr/performanced/performance_service_tests.cpp
services/vr/performanced/task.cpp