Message ID | 20230802214312.110532-5-sj@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 252D9C05052 for <linux-mm@archiver.kernel.org>; Wed, 2 Aug 2023 21:43:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 27CEC2801F1; Wed, 2 Aug 2023 17:43:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2054E2801EB; Wed, 2 Aug 2023 17:43:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 007932801F1; Wed, 2 Aug 2023 17:43:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id E1A312801EB for <linux-mm@kvack.org>; Wed, 2 Aug 2023 17:43:21 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id AF4D4A093A for <linux-mm@kvack.org>; Wed, 2 Aug 2023 21:43:21 +0000 (UTC) X-FDA: 81080491002.25.8645CD5 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf03.hostedemail.com (Postfix) with ESMTP id 13DF920012 for <linux-mm@kvack.org>; Wed, 2 Aug 2023 21:43:19 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="ikb6ovw/"; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1691012600; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=RQJieNk/pr3XHQEgPwJ68VYP9y4g7GJ/7AtQ8sbJiBc=; b=1J8+jJoSScv3l+6/rsl139AITH1OGyDYjc0ui+ApEubUVDLNIILnxREw/OUbI5UD6bwg3s qW/+au5n+bjXIvjE+FhjFxthu8WrqaCja2O2uRs03T5bdlsNAmBvN5omdI8ragYOlQSGii 6UIbN1WaNsNK9u0i3JdCPRrWlK0bDzg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691012600; a=rsa-sha256; cv=none; b=nP50iX+DxW4T5ls2kJNkEo1G0wU3h1SNrHTP+osSMw6LfX1xA7E+9m6DUwSo6wUc6rPaoC f3J2mwJN0UBR+QLnWP6IXf1g7NCXejhtTTabXCHqzStGO9dnBnXc6SA0oIWnuFhcY/+GEw Oy61scrNkZ/CbwWYaDWai402pXvBwVs= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="ikb6ovw/"; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 43E1A61B30; Wed, 2 Aug 2023 21:43:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A000C433CC; Wed, 2 Aug 2023 21:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691012598; bh=cjc8ooSUQ83tCK1u+lTmvslo5pngriB995qOBl2lfEU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ikb6ovw/+AobHS2orGwswuXn2tlkNHwauXcRV6Typ+Y049vivhXS52JNo31EJITXY emfTMVPVnHa84OqOMbZVTo5kbKeKGHOpjFsOIeWxAksOBD1KxT8ZuTuTDN9rHg/Wtg F6AsCQyf2TOaPUNj4vCWIaI9DFBrBCpREyoQkRdtVM0UMwWQZ0IvN7lTXtGoZETgG1 Zy9ankfs8/EVYFpEOb4r0JbOi6tvKYPa9H418hI6X4RnEuTQTALWYSvV2UiFkf7cm9 hWtnjYErjiGV3ODf3wRp8IeVQt7UDKHS7oVF7VZO8K+omnCY5RDlEJw9kWy79bTpag AZGMQFafNxOcQ== 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 04/13] selftests/damon/sysfs: test address range damos filter Date: Wed, 2 Aug 2023 21:43:03 +0000 Message-Id: <20230802214312.110532-5-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230802214312.110532-1-sj@kernel.org> References: <20230802214312.110532-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 13DF920012 X-Rspam-User: X-Stat-Signature: m7b5zhjkka95cozunft4zzsqp7rqn6q5 X-Rspamd-Server: rspam03 X-HE-Tag: 1691012599-579327 X-HE-Meta: U2FsdGVkX19XiocGmkp7TIywL5bZ4TNi9hGXwO1ZQhoDjcUCZhz6/JED3RzB7Q6tW77xjcXHBz+pRLdnZ+PPw6kSDu/88Y8/aK3AkRooyiB9EYGV/h5v5Key/TT0a+EzOROqFirRv5DfHdYseEUo5RBIdjL0g6wY72JyFdjZvUXAsd3K8XcWgbslqvTCbQ84o7Uet2WWUEceLyIbohfU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nCYJkHZvghne7izvkXYV+iI9jQ2QFRDBV9oaUwg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Extedn DAMOS filters for address ranges and DAMON monitoring targets
|
expand
|
diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh index 967e27267549..5677cfd342fc 100644 --- a/tools/testing/selftests/damon/sysfs.sh +++ b/tools/testing/selftests/damon/sysfs.sh @@ -103,9 +103,12 @@ test_filter() ensure_file "$filter_dir/type" "exist" "600" 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_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" } test_filters()
Add a selftest for checking existence of addr_{start,end} files under DAMOS filter directory, and 'addr' damos filter type input of DAMON sysfs interface. Signed-off-by: SeongJae Park <sj@kernel.org> --- tools/testing/selftests/damon/sysfs.sh | 3 +++ 1 file changed, 3 insertions(+)