| 95e5a911 | 30-Sep-2022 |
Zhao Gongyi <[email protected]> |
selftests/memory-hotplug: Adjust log info for maintainability
Redirect misleading error message to /dev/null for offline_memory_expect_success(), And, add an output for online->offline test.
Signed
selftests/memory-hotplug: Adjust log info for maintainability
Redirect misleading error message to /dev/null for offline_memory_expect_success(), And, add an output for online->offline test.
Signed-off-by: Zhao Gongyi <[email protected]> Acked-by: David Hildenbrand <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| ba004a29 | 01-Mar-2018 |
Shuah Khan <[email protected]> |
selftests: memory-hotplug: fix emit_tests regression
Commit 16c513b13477 ("selftests: memory-hotplug: silence test command echo")
introduced regression in emit_tests and results in the following fa
selftests: memory-hotplug: fix emit_tests regression
Commit 16c513b13477 ("selftests: memory-hotplug: silence test command echo")
introduced regression in emit_tests and results in the following failure when selftests are installed and run. Fix it.
Running tests in memory-hotplug ======================================== ./run_kselftest.sh: line 121: @./mem-on-off-test.sh: No such file or directory selftests: memory-hotplug [FAIL]
Fixes: 16c513b13477 (selftests: memory-hotplug: silence test command echo") Reported-by: Naresh Kamboju <[email protected]> Tested-by: Anders Roxell <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| 5ff0c60b | 27-Jun-2017 |
Po-Hsu Lin <[email protected]> |
selftests: fix memory-hotplug test
In the memory offline test, the $ration was used with RANDOM as the possibility to get it offlined, correct it to become the portion of available removable memory
selftests: fix memory-hotplug test
In the memory offline test, the $ration was used with RANDOM as the possibility to get it offlined, correct it to become the portion of available removable memory blocks.
Also ask the tool to try to offline the next available memory block if the attempt is unsuccessful. It will only fail if all removable memory blocks are busy.
A nice example: $ sudo ./test.sh Test scope: 10% hotplug memory online all hot-pluggable memory in offline state: SKIPPED - no hot-pluggable memory in offline state offline 10% hot-pluggable memory in online state trying to offline 3 out of 28 memory block(s): online->offline memory1 online->offline memory10 ./test.sh: line 74: echo: write error: Resource temporarily unavailable offline_memory_expect_success 10: unexpected fail online->offline memory100 online->offline memory101 online all hot-pluggable memory in offline state: offline->online memory1 offline->online memory100 offline->online memory101 skip extra tests: debugfs is not mounted $ echo $? 0
Signed-off-by: Po-Hsu Lin <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| 02d8f075 | 27-Jun-2017 |
Po-Hsu Lin <[email protected]> |
selftests: add missing test name in memory-hotplug test
There is no prompt for testing memory notifier error injection, added with the same echo format of other tests above.
Signed-off-by: Po-Hsu L
selftests: add missing test name in memory-hotplug test
There is no prompt for testing memory notifier error injection, added with the same echo format of other tests above.
Signed-off-by: Po-Hsu Lin <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| 32dcfba6 | 11-Mar-2015 |
Michael Ellerman <[email protected]> |
selftests: Add install target
This adds make install support to selftests. The basic usage is:
$ cd tools/testing/selftests $ make install
That installs into tools/testing/selftests/install, which
selftests: Add install target
This adds make install support to selftests. The basic usage is:
$ cd tools/testing/selftests $ make install
That installs into tools/testing/selftests/install, which can then be copied where ever necessary.
The install destination is also configurable using eg:
$ INSTALL_PATH=/mnt/selftests make install
The implementation uses two targets in the child makefiles. The first "install" is expected to install all files into $(INSTALL_PATH).
The second, "emit_tests", is expected to emit the test instructions (ie. bash script) on stdout. Separating this from install means the child makefiles need no knowledge of the location of the test script.
Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
show more ...
|
| ddddda9b | 02-Jul-2014 |
Shuah Khan <[email protected]> |
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 t
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 <[email protected]> Cc: Kees Cook <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|