diff options
-rwxr-xr-x | common/scripts/is-cpu-isolated.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 8caca66..f12259d 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -299,6 +299,18 @@ clear_cpusets() { } # tests to run -isolate_cpu -get_isolation_duration -clear_cpusets +if [ $4 ]; then + if [ $4 -eq 1 ]; then + isolate_cpu + elif [ $4 -eq 2 ]; then + get_isolation_duration + elif [ $4 -eq 3 ]; then + clear_cpusets + else + update_non_isol_cpus + fi +else + isolate_cpu + get_isolation_duration + clear_cpusets +fi |