diff options
author | 2022-11-18 15:43:30 +0530 | |
---|---|---|
committer | 2022-11-22 10:25:37 -1000 | |
commit | 1e85591db11b7ac097a1b34887c682e6353798c4 (patch) | |
tree | 9a944273d0847c0eccac7305f01e077aa430abf7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cgroup/cpuset: Optimize cpuset_attach() on v2 (diff) | |
download | wireguard-linux-1e85591db11b7ac097a1b34887c682e6353798c4.tar.xz wireguard-linux-1e85591db11b7ac097a1b34887c682e6353798c4.zip |
kselftest/cgroup: Add cleanup() to test_cpuset_prs.sh
Install a cleanup function using the trap command for signals EXIT,
SIGINT, SIGQUIT and SIGABRT. The cleanup function will perform:
1. Online the CPUs that were made offline during the test.
2. Removing the cgroups created.
3. Restoring the original /sys/kernel/debug/sched/verbose value,
currently it's left turned on, irrespective of the original
configuration value.
the test performs steps 1 and 2, on the successful runs, but not during
all of the failed runs. With the cleanup(), the system will perform all
three steps during failed/passed test runs.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions