cgroup/cpuset: Extend test_cpuset_prs.sh to test remote partition
authorWaiman Long <longman@redhat.com>
Tue, 5 Sep 2023 13:32:43 +0000 (09:32 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 18 Sep 2023 20:32:31 +0000 (10:32 -1000)
commit105f3fe9188b37752c25d154870ceca352c9213f
treeeba220bf96fc4795cdcbbc2e86a5a7ddce707b02
parentefdf7532bd3d302a96436beee153364f26a1ddae
cgroup/cpuset: Extend test_cpuset_prs.sh to test remote partition

This patch extends the test_cpuset_prs.sh test script to support testing
the new remote partition type and the new "cpuset.cpus.exclusive" and
"cpuset.cpus.exclusive.effective" control files by adding new tests
for them. In addition, the following changes are also made:

 1) Run the state transition tests directly under root to ease testing
    of remote partition and remove the unneeded test column.
 2) Add a column to for the list of expected isolated CPUs and compare
    it with the actual value by looking at the state of
    /sys/kernel/debug/sched/domains which will be available if the
    verbose flag is set.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/test_cpuset_prs.sh