From: Sudarsan Mahendran <sudarsanm@google.com>
To: David Hildenbrand <david@redhat.com>
Cc: linux-kselftest@vger.kernel.org, Shuah Khan <shuah@kernel.org>,
Axel Rasmussen <axelrasmussen@google.com>,
linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: Re: [PATCH v3] selftests/mm: pass filename as input param to VM_PFNMAP tests
Date: Tue, 5 Aug 2025 09:49:39 -0700 [thread overview]
Message-ID: <CAA9mObAqO04H9Hui6jcgv5rPBYVmnLeVQFuPeZBRF3DEvCxxsw@mail.gmail.com> (raw)
In-Reply-To: <24bbd9df-efa7-4090-a696-1eb40904ad85@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]
Thanks David for your insightful review comments.
On Tue, Aug 5, 2025 at 1:47 AM David Hildenbrand <david@redhat.com> wrote:
> On 05.08.25 03:36, Sudarsan Mahendran wrote:
> > Enable these tests to be run on other pfnmap'ed memory like
> > NVIDIA's EGM.
> >
> > Add '--' as a separator to pass in file path. This allows
> > passing of cmd line arguments to kselftest_harness.
> > Use '/dev/mem' as default filename.
> >
> > Existing test passes:
> > pfnmap
> > TAP version 13
> > 1..6
> > # Starting 6 tests from 1 test cases.
> > # PASSED: 6 / 6 tests passed.
> > # Totals: pass:6 fail:0 xfail:0 xpass:0 skip:0 error:0
> >
> > Pass params to kselftest_harness:
> > pfnmap -r pfnmap:mremap_fixed
> > TAP version 13
> > 1..1
> > # Starting 1 tests from 1 test cases.
> > # RUN pfnmap.mremap_fixed ...
> > # OK pfnmap.mremap_fixed
> > ok 1 pfnmap.mremap_fixed
> > # PASSED: 1 / 1 tests passed.
> > # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0
> >
> > Pass non-existent file name as input:
> > pfnmap -- /dev/blah
> > TAP version 13
> > 1..6
> > # Starting 6 tests from 1 test cases.
> > # RUN pfnmap.madvise_disallowed ...
> > # SKIP Cannot open '/dev/blah'
> >
> > Pass non pfnmap'ed file as input:
> > pfnmap -r pfnmap.madvise_disallowed -- randfile.txt
> > TAP version 13
> > 1..1
> > # Starting 1 tests from 1 test cases.
> > # RUN pfnmap.madvise_disallowed ...
> > # SKIP Invalid file: 'randfile.txt'. Not pfnmap'ed
> >
> > Signed-off-by: Sudarsan Mahendran <sudarsanm@google.com>
> > ---
>
> Thanks!
>
> Acked-by: David Hildenbrand <david@redhat.com>
>
> --
> Cheers,
>
> David / dhildenb
>
>
[-- Attachment #2: Type: text/html, Size: 2764 bytes --]
next prev parent reply other threads:[~2025-08-05 16:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 1:36 Sudarsan Mahendran
2025-08-05 8:47 ` David Hildenbrand
2025-08-05 16:49 ` Sudarsan Mahendran [this message]
2025-08-05 16:51 ` Sudarsan Mahendran
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=CAA9mObAqO04H9Hui6jcgv5rPBYVmnLeVQFuPeZBRF3DEvCxxsw@mail.gmail.com \
--to=sudarsanm@google.com \
--cc=akpm@linux-foundation.org \
--cc=axelrasmussen@google.com \
--cc=david@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shuah@kernel.org \
--cc=trivial@kernel.org \
/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