diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-07-17 21:44:32 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-07-17 21:44:32 +0200 |
commit | 00397e74e37a1285baee8678085297a330a6e2ce (patch) | |
tree | 70db3d1148da96c7e7e66663b0e70e30f6dd4eb2 /tools | |
parent | Merge tag 'trace-v5.14-5' of git://git.kernel.org/pub/scm/linux/kernel/git/ro... (diff) | |
parent | selftests: memory-hotplug: avoid spamming logs with dump_page(), ratio limit ... (diff) | |
download | linux-00397e74e37a1285baee8678085297a330a6e2ce.tar.xz linux-00397e74e37a1285baee8678085297a330a6e2ce.zip |
Merge tag 'linux-kselftest-fixes-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fix from Shuah Khan:
"A fix to memory-hotplug hot-remove test to stop spamming logs with
dump_page() entries and slowing the system down to a crawl"
* tag 'linux-kselftest-fixes-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
selftests: memory-hotplug: avoid spamming logs with dump_page(), ratio limit hot-remove error test
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/memory-hotplug/mem-on-off-test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh b/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh index b37585e6aa38..46a97f318f58 100755 --- a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh +++ b/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh @@ -282,7 +282,9 @@ done # echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error for memory in `hotpluggable_online_memory`; do - offline_memory_expect_fail $memory + if [ $((RANDOM % 100)) -lt $ratio ]; then + offline_memory_expect_fail $memory + fi done echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error |