|author||Shuah Khan <firstname.lastname@example.org>||2014-07-02 09:51:38 -0600|
|committer||Greg Kroah-Hartman <email@example.com>||2014-07-11 18:13:06 -0700|
|parent||tools: fix kcmp_test compile warnings (diff)|
tools: selftests - create a separate hotplug target for full range test
On some systems, hot-plug tests could hang forever waiting for cpu and memory to be ready to be offlined. A special hot-plug target is created to run full range of hot-plug tests. In default mode, hot-plug tests run in safe mode with a limited scope. In limited mode, cpu-hotplug test is run on a single cpu as opposed to all hotplug capable cpus, and memory hotplug test is run on 2% of hotplug capable memory instead of 10%. In addition to the above change, cpu-hotplug is chnged to change processor affinity to cpu 0 so it doesn't impact itself while the test runs. Signed-off-by: Shuah Khan <firstname.lastname@example.org> Cc: Kees Cook <email@example.com> Cc: Michael Ellerman <firstname.lastname@example.org> Cc: Benjamin Herrenschmidt <email@example.com> Cc: Frederic Weisbecker <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>
Diffstat (limited to 'tools/testing/selftests/memory-hotplug/Makefile')
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/memory-hotplug/Makefile b/tools/testing/selftests/memory-hotplug/Makefile
index 058c76f5d102..d46b8d489cd2 100644
@@ -1,6 +1,9 @@
+ @/bin/bash ./on-off-test.sh -r 2 || echo "memory-hotplug selftests: [FAIL]"
@/bin/bash ./on-off-test.sh || echo "memory-hotplug selftests: [FAIL]"