linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Miaohe Lin <linmiaohe@huawei.com>
To: Mark Brown <broonie@kernel.org>
Cc: <akpm@linux-foundation.org>, <shuah@kernel.org>,
	<david@kernel.org>, <lorenzo.stoakes@oracle.com>,
	<Liam.Howlett@oracle.com>, <vbabka@suse.cz>, <rppt@kernel.org>,
	<surenb@google.com>, <mhocko@suse.com>, <nao.horiguchi@gmail.com>,
	<linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>,
	<linux-kselftest@vger.kernel.org>
Subject: Re: [PATCH v3 1/3] selftests/mm: add memory failure anonymous page test
Date: Thu, 5 Feb 2026 14:58:50 +0800	[thread overview]
Message-ID: <0a84104a-32e3-8518-ebc0-703814e233d4@huawei.com> (raw)
In-Reply-To: <2028f5e1-e032-4909-8240-15fe0b3c82a5@sirena.org.uk>

On 2026/2/4 19:26, Mark Brown wrote:
> On Wed, Feb 04, 2026 at 03:33:29PM +0800, Miaohe Lin wrote:
> 
>> +TEST_HARNESS_MAIN
>> diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
>> index 29be9038bfb0..afdcfd0d7cef 100755
>> --- a/tools/testing/selftests/mm/run_vmtests.sh
>> +++ b/tools/testing/selftests/mm/run_vmtests.sh
>> @@ -91,6 +91,8 @@ separated by spaces:
>>  	test VMA merge cases behave as expected
>>  - rmap
>>  	test rmap behaves as expected
>> +- memory-failure
>> +	test memory-failure behaves as expected
> 
> In -next I added a hack with wrapper scripts per category to improve the
> integration of the mm selftests with the kselftest framework, could you
> please wire things up into that, see:
> 
>   6ce964c02f1c (selftests/mm: have the harness run each test category separately)

Sorry, I missed that. Do you mean adding something like below to run memory-failure test separately?

diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile
index cd7ed1d6769f..b531fd2f4e4c 100644
--- a/tools/testing/selftests/mm/Makefile
+++ b/tools/testing/selftests/mm/Makefile
@@ -171,6 +171,7 @@ TEST_PROGS += ksft_thp.sh
 TEST_PROGS += ksft_userfaultfd.sh
 TEST_PROGS += ksft_vma_merge.sh
 TEST_PROGS += ksft_vmalloc.sh
+TEST_PROGS += ksft_memory_failure.sh

 TEST_FILES := test_vmalloc.sh
 TEST_FILES += test_hmm.sh
diff --git a/tools/testing/selftests/mm/ksft_memory_failure.sh b/tools/testing/selftests/mm/ksft_memory_failure.sh
new file mode 100644
index 000000000000..ae1614d4d49b
--- /dev/null
+++ b/tools/testing/selftests/mm/ksft_memory_failure.sh
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+# SPDX-License-Identifier: GPL-2.0
+
+./run_vmtests.sh -t memory-failure

Thanks.
.



  reply	other threads:[~2026-02-05  6:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04  7:33 [PATCH v3 0/3] selftests/mm: add memory failure selftests Miaohe Lin
2026-02-04  7:33 ` [PATCH v3 1/3] selftests/mm: add memory failure anonymous page test Miaohe Lin
2026-02-04 11:26   ` Mark Brown
2026-02-05  6:58     ` Miaohe Lin [this message]
2026-02-05 11:28       ` Mark Brown
2026-02-06  2:36         ` Miaohe Lin
2026-02-04  7:33 ` [PATCH v3 2/3] selftests/mm: add memory failure clean pagecache test Miaohe Lin
2026-02-04  7:33 ` [PATCH v3 3/3] selftests/mm: add memory failure dirty " Miaohe Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0a84104a-32e3-8518-ebc0-703814e233d4@huawei.com \
    --to=linmiaohe@huawei.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=broonie@kernel.org \
    --cc=david@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=mhocko@suse.com \
    --cc=nao.horiguchi@gmail.com \
    --cc=rppt@kernel.org \
    --cc=shuah@kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox