From: Guopeng Zhang <[email protected]>

Offline all but one CPU in a root child below an isolated parent. Check
the invalid child state, the effective CPU masks and isolated accounting
for the released offline CPUs.

Signed-off-by: Guopeng Zhang <[email protected]>
---
 tools/testing/selftests/cgroup/test_cpuset_prs.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/testing/selftests/cgroup/test_cpuset_prs.sh 
b/tools/testing/selftests/cgroup/test_cpuset_prs.sh
index 35c19738aaa4..fb11a3ab0f35 100755
--- a/tools/testing/selftests/cgroup/test_cpuset_prs.sh
+++ b/tools/testing/selftests/cgroup/test_cpuset_prs.sh
@@ -330,6 +330,11 @@ TEST_MATRIX=(
                                   .      .     X4      .      .     0 
A1:1-3|A2:1-3|A3:2-3|XA2:|XA3: A1:P2|A2:P-2|A3:P-2 1-3"
        " C0-3:X1-3:P2 C1-3:X2-3:P2 C2-3:X3:P2 \
                                   .      .    C4:X     .      .     0 
A1:1-3|A2:1-3|A3:2-3|XA2:|XA3: A1:P2|A2:P-2|A3:P-2 1-3"
+
+       # Direct invalidation returns child CPUs to the parent or its owner
+       " C1-4:P2  C3-4:P1  .      . T:O1=0:O2=0:O4=0 . .      . \
+                                          0 A1:3|A2:3 A1:P2|A2:P-1 1-4"
+
        # Local partition CPU change tests
        " C0-5:P2  C4-5:P1  .      .      .    C3-5     .      .     0 
A1:0-2|A2:3-5 A1:P2|A2:P1 0-2"
        " C0-5:P2  C4-5:P1  .      .    C1-5     .      .      .     0 
A1:1-3|A2:4-5 A1:P2|A2:P1 1-3"
-- 
2.43.0


Reply via email to