All of lore.kernel.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj@kernel.org>, Shuah Khan <shuah@kernel.org>,
	damon@lists.linux.dev, linux-mm@kvack.org,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 10/13] selftests/damon/sysfs: test damon_target filter
Date: Wed,  2 Aug 2023 21:43:09 +0000	[thread overview]
Message-ID: <20230802214312.110532-11-sj@kernel.org> (raw)
In-Reply-To: <20230802214312.110532-1-sj@kernel.org>

Test existence of files and validity of input keyword for DAMON
monitoring target based DAMOS filter on DAMON sysfs interface.

Signed-off-by: SeongJae Park <sj@kernel.org>
---
 tools/testing/selftests/damon/sysfs.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh
index 5677cfd342fc..60a9a305aef0 100644
--- a/tools/testing/selftests/damon/sysfs.sh
+++ b/tools/testing/selftests/damon/sysfs.sh
@@ -104,11 +104,13 @@ test_filter()
 	ensure_write_succ "$filter_dir/type" "anon" "valid input"
 	ensure_write_succ "$filter_dir/type" "memcg" "valid input"
 	ensure_write_succ "$filter_dir/type" "addr" "valid input"
+	ensure_write_succ "$filter_dir/type" "target" "valid input"
 	ensure_write_fail "$filter_dir/type" "foo" "invalid input"
 	ensure_file "$filter_dir/matching" "exist" "600"
 	ensure_file "$filter_dir/memcg_path" "exist" "600"
 	ensure_file "$filter_dir/addr_start" "exist" "600"
 	ensure_file "$filter_dir/addr_end" "exist" "600"
+	ensure_file "$filter_dir/damon_target_idx" "exist" "600"
 }
 
 test_filters()
-- 
2.25.1


  parent reply	other threads:[~2023-08-02 21:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02 21:42 [PATCH 00/13] Extedn DAMOS filters for address ranges and DAMON monitoring targets SeongJae Park
2023-08-02 21:43 ` [PATCH 01/13] mm/damon/core: introduce address range type damos filter SeongJae Park
2023-08-02 21:43 ` [PATCH 02/13] mm/damon/sysfs-schemes: support address range type DAMOS filter SeongJae Park
2023-08-02 21:43 ` [PATCH 03/13] mm/damon/core-test: add a unit test for __damos_filter_out() SeongJae Park
2023-08-02 21:43 ` [PATCH 04/13] selftests/damon/sysfs: test address range damos filter SeongJae Park
2023-08-02 21:43 ` [PATCH 05/13] Docs/mm/damon/design: update for address range filters SeongJae Park
2023-08-02 21:43 ` [PATCH 06/13] Docs/ABI/damon: update for address range DAMOS filter SeongJae Park
2023-08-02 21:43 ` [PATCH 07/13] Docs/admin-guide/mm/damon/usage: update for address range type " SeongJae Park
2023-08-02 21:43 ` [PATCH 08/13] mm/damon/core: implement target type damos filter SeongJae Park
2023-08-02 21:43 ` [PATCH 09/13] mm/damon/sysfs-schemes: support target " SeongJae Park
2023-08-02 21:43 ` SeongJae Park [this message]
2023-08-02 21:43 ` [PATCH 11/13] Docs/mm/damon/design: update for DAMON monitoring target type DAMOS filter SeongJae Park
2023-08-02 21:43 ` [PATCH 12/13] Docs/ABI/damon: " SeongJae Park
2023-08-02 21:43 ` [PATCH 13/13] Docs/admin-guide/mm/damon/usage: " 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=20230802214312.110532-11-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.