From: SeongJae Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj@kernel.org>, Shuah Khan <shuah@kernel.org>,
Brendan Higgins <brendanhiggins@google.com>,
David Gow <davidgow@google.com>,
damon@lists.linux.dev, linux-mm@kvack.org,
kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/9] misc fixups for DAMON {self,kunit} tests
Date: Mon, 26 Aug 2024 20:03:27 -0700 [thread overview]
Message-ID: <20240827030336.7930-1-sj@kernel.org> (raw)
This patchset is for minor fixups of DAMON selftests and kunit tests.
First three patches make DAMON selftests more cleanly maintained
(patches 1 and 2) without unnecessary warnings (patch 3). Following six
patches remove unnecessary test case (patch 4), handle configs
combinations that can make tests fail (patches 5-7), reorganize the test
files following the new guideline (patch 8), and add reference
kunitconfig for DAMON kunit tests (patch 9).
SeongJae Park (9):
selftests/damon: add access_memory_even to .gitignore
selftests/damon: cleanup __pycache__/ with 'make clean'
selftests/damon: add execute permissions to test scripts
mm/damon/core-test: test only vaddr case on ops registration test
mm/damon/core-test: fix damon_test_ops_registration() for DAMON_VADDR
unset case
mm/damon/dbgfs-test: skip dbgfs_set_targets() test if PADDR is not
registered
mm/damon/dbgfs-test: skip dbgfs_set_init_regions() test if PADDR is
not registered
mm/damon: move kunit tests to tests/ subdirectory with _kunit suffix
mm/damon/tests: add .kunitconfig file for DAMON kunit tests
mm/damon/core.c | 2 +-
mm/damon/dbgfs.c | 2 +-
mm/damon/sysfs.c | 2 +-
mm/damon/tests/.kunitconfig | 22 ++++++++++++++++++
mm/damon/{core-test.h => tests/core-kunit.h} | 23 ++++++++++++++-----
.../{dbgfs-test.h => tests/dbgfs-kunit.h} | 10 ++++++++
.../{sysfs-test.h => tests/sysfs-kunit.h} | 0
.../{vaddr-test.h => tests/vaddr-kunit.h} | 0
mm/damon/vaddr.c | 2 +-
tools/testing/selftests/damon/.gitignore | 1 +
tools/testing/selftests/damon/Makefile | 2 ++
.../selftests/damon/damon_nr_regions.py | 0
.../selftests/damon/damos_apply_interval.py | 0
tools/testing/selftests/damon/damos_quota.py | 0
.../selftests/damon/damos_quota_goal.py | 0
.../selftests/damon/damos_tried_regions.py | 0
.../damon/debugfs_target_ids_pid_leak.sh | 0
...s_target_ids_read_before_terminate_race.sh | 0
...sysfs_update_schemes_tried_regions_hang.py | 0
...te_schemes_tried_regions_wss_estimation.py | 0
20 files changed, 56 insertions(+), 10 deletions(-)
create mode 100644 mm/damon/tests/.kunitconfig
rename mm/damon/{core-test.h => tests/core-kunit.h} (96%)
rename mm/damon/{dbgfs-test.h => tests/dbgfs-kunit.h} (94%)
rename mm/damon/{sysfs-test.h => tests/sysfs-kunit.h} (100%)
rename mm/damon/{vaddr-test.h => tests/vaddr-kunit.h} (100%)
mode change 100644 => 100755 tools/testing/selftests/damon/damon_nr_regions.py
mode change 100644 => 100755 tools/testing/selftests/damon/damos_apply_interval.py
mode change 100644 => 100755 tools/testing/selftests/damon/damos_quota.py
mode change 100644 => 100755 tools/testing/selftests/damon/damos_quota_goal.py
mode change 100644 => 100755 tools/testing/selftests/damon/damos_tried_regions.py
mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_target_ids_pid_leak.sh
mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.sh
mode change 100644 => 100755 tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_hang.py
mode change 100644 => 100755 tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py
base-commit: ac23a0bb201e9916faa357d51c387e523813b4ad
--
2.39.2
next reply other threads:[~2024-08-27 3:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 3:03 SeongJae Park [this message]
2024-08-27 3:03 ` [PATCH 1/9] selftests/damon: add access_memory_even to .gitignore SeongJae Park
2024-08-27 3:03 ` [PATCH 2/9] selftests/damon: cleanup __pycache__/ with 'make clean' SeongJae Park
2024-08-27 3:03 ` [PATCH 3/9] selftests/damon: add execute permissions to test scripts SeongJae Park
2024-08-27 3:03 ` [PATCH 4/9] mm/damon/core-test: test only vaddr case on ops registration test SeongJae Park
2024-08-27 3:03 ` [PATCH 5/9] mm/damon/core-test: fix damon_test_ops_registration() for DAMON_VADDR unset case SeongJae Park
2024-08-27 3:03 ` [PATCH 6/9] mm/damon/dbgfs-test: skip dbgfs_set_targets() test if PADDR is not registered SeongJae Park
2024-08-27 3:03 ` [PATCH 7/9] mm/damon/dbgfs-test: skip dbgfs_set_init_regions() " SeongJae Park
2024-08-27 3:03 ` [PATCH 8/9] mm/damon: move kunit tests to tests/ subdirectory with _kunit suffix SeongJae Park
2024-08-27 3:03 ` [PATCH 9/9] mm/damon/tests: add .kunitconfig file for DAMON kunit tests SeongJae Park
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=20240827030336.7930-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=brendanhiggins@google.com \
--cc=damon@lists.linux.dev \
--cc=davidgow@google.com \
--cc=kunit-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shuah@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;
as well as URLs for NNTP newsgroup(s).