From: SJ Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SJ Park <sj@kernel.org>, Shuah Khan <shuah@kernel.org>,
damon@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH 5/8] selftests/damon/sysfs.sh: test quota goal complement flag file
Date: Tue, 29 Sep 2026 01:01:08 -0700 [thread overview]
Message-ID: <20260929080113.41708-6-sj@kernel.org> (raw)
In-Reply-To: <20260929080113.41708-1-sj@kernel.org>
Test the existence and the valid input acceptance of the newly added
quota goal complement flag sysfs file.
Signed-off-by: SJ Park <sj@kernel.org>
---
tools/testing/selftests/damon/sysfs.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh
index b66593c9ac47..1cc7ab2d7e22 100755
--- a/tools/testing/selftests/damon/sysfs.sh
+++ b/tools/testing/selftests/damon/sysfs.sh
@@ -212,6 +212,9 @@ test_goal()
ensure_write_succ "$fpath" "node_eligible_mem_bp" "valid input"
ensure_write_succ "$fpath" "hugepage_mem_bp" "valid input"
ensure_write_fail "$fpath" "foo" "invalid input"
+ ensure_file "$goal_dir/complement" "exist" "600"
+ ensure_write_succ "$goal_dir/complement" "Y" "valid input"
+ ensure_write_succ "$goal_dir/complement" "N" "valid input"
ensure_file "$goal_dir/nid" "exist" "600"
ensure_file "$goal_dir/path" "exist" "600"
}
--
2.47.3
next prev parent reply other threads:[~2026-09-29 8:01 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 8:01 [PATCH 0/8] mm/damon: introduce damos quota goal target metric complement flag SJ Park
2026-09-29 8:01 ` [PATCH 1/8] mm/damon/core: introduce damos_quota_goal->complement SJ Park
2026-09-29 8:12 ` sashiko-bot
2026-09-29 8:16 ` SJ Park
2026-09-29 10:24 ` Gutierrez Asier
2026-09-29 10:34 ` SJ Park
2026-09-29 8:01 ` [PATCH 2/8] mm/damon/core: add complement argument to damos_new_quota_goal() SJ Park
2026-09-29 8:07 ` sashiko-bot
2026-09-29 10:25 ` Gutierrez Asier
2026-09-29 8:01 ` [PATCH 3/8] mm/damon/sysfs-schemes: support quota goal complement flag SJ Park
2026-09-29 8:06 ` sashiko-bot
2026-09-29 8:01 ` [PATCH 4/8] mm/damon/tests/core-kunit: test quota_goal->complement commit SJ Park
2026-09-29 8:03 ` sashiko-bot
2026-09-29 8:01 ` SJ Park [this message]
2026-09-29 8:07 ` [PATCH 5/8] selftests/damon/sysfs.sh: test quota goal complement flag file sashiko-bot
2026-09-29 8:01 ` [PATCH 6/8] Docs/mm/damon/design: document damos quota goal complement flag SJ Park
2026-09-29 8:06 ` sashiko-bot
2026-09-29 8:01 ` [PATCH 7/8] Docs/admin-guide/mm/damon/usage: update for quota goal complement file SJ Park
2026-09-29 8:02 ` sashiko-bot
2026-09-29 8:01 ` [PATCH 8/8] Docs/ABI/damon: update for quota goal metric complement sysfs file SJ Park
2026-09-29 8:03 ` sashiko-bot
2026-09-29 8:17 ` [PATCH 0/8] mm/damon: introduce damos quota goal target metric complement flag SJ 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=20260929080113.41708-6-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.