From patchwork Tue Nov 1 22:03:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13027524 Return-Path: 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 76FBFC4332F for ; Tue, 1 Nov 2022 22:03:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE3A78E0008; Tue, 1 Nov 2022 18:03:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A27E88E0009; Tue, 1 Nov 2022 18:03:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7ABA68E0008; Tue, 1 Nov 2022 18:03:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 6A4A68E0005 for ; Tue, 1 Nov 2022 18:03:40 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 411701C689A for ; Tue, 1 Nov 2022 22:03:40 +0000 (UTC) X-FDA: 80086251000.14.7AE4709 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf27.hostedemail.com (Postfix) with ESMTP id A8F8040007 for ; Tue, 1 Nov 2022 22:03:39 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3980CB8117E; Tue, 1 Nov 2022 22:03:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7192BC433B5; Tue, 1 Nov 2022 22:03:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667340216; bh=vHgDcIM2X6HC9Xa44Y3Kmnj3zbAk0A48a3qye0uZNww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BB9iuPFmaCYxUJ2icGWtplwAv9fDjQQP8tssoMnF+QYSch4jkG2Gs9jcRHdDg0eLl UN8aSiWrnsriBYDwmlGxbAstIhanC5uEyC9Jlpqz+62z/zkh9J/rPvtRkVkQri7HTz vkQAMOPJG2EgQrODDLra5lazx51qMuIpWcddNcp2JSkKyg7YxGFaX6ZC+fU5aX61rP h6OeWNswACf+ieCA59Ivg5Jl6tF9P/qMwigIaQUxIlmwgrN5LNFsHwmCU8PibAHpaI lDTn7q6EgOXaDMN+LyyE4By4/ykc4vfJZ1mMCKzxY5Pf/etnSIXTU2t3JeollfAF/d JkLl+MMlB1/Mg== From: SeongJae Park To: Andrew Morton Cc: Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 6/8] tools/selftets/damon/sysfs: test tried_regions directory existence Date: Tue, 1 Nov 2022 22:03:26 +0000 Message-Id: <20221101220328.95765-7-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221101220328.95765-1-sj@kernel.org> References: <20221101220328.95765-1-sj@kernel.org> MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1667340219; a=rsa-sha256; cv=none; b=kkUY+FewqLgARko7CxVKXTRKOmxt5uijT3xOA7+BvyCGk8FPmsP3ngZf1T8/Y23aXqLonK 6bRNAWnDTtcJTAPa9mP60ReKO3ZwMQ/wYgJTefkSkmYuxpa2b6TRmvObkzRTurqTzdYDRt qS75y/EavHooseHxoza4Z8HaUtSDtCM= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=BB9iuPFm; spf=pass (imf27.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 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=1667340219; 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=0mnNHQHnS5UMONrCQ+JY25XGOE4490loOGbbhlBwmLA=; b=lDse1Vg6HvPhcHZjPsBGW/zbPFYJFIqMeBB29AkG368FSWfP5sW8HBx6dPddQn4Su2Y/Ta DkKCCfg+autvTj4KsfunGYgTxlnw+H5FLlaxE/KZcXecuYZYCg0QPQ6PbbwHI7hGa4NDIZ RW4gLtew0ZxciI0Zb+d+RJ00Pewww/0= X-Stat-Signature: szz7tnttq95sfe9y466wzyhf45h6tjo1 X-Rspamd-Server: rspam09 X-Rspam-User: X-Rspamd-Queue-Id: A8F8040007 Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=BB9iuPFm; spf=pass (imf27.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1667340219-393760 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: Add a simple test case for ensuring tried_regions directory existence. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/sysfs.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh index 89592c64462f..db4942383a50 100644 --- a/tools/testing/selftests/damon/sysfs.sh +++ b/tools/testing/selftests/damon/sysfs.sh @@ -80,6 +80,12 @@ test_range() ensure_file "$range_dir/max" "exist" 600 } +test_tried_regions() +{ + tried_regions_dir=$1 + ensure_dir "$tried_regions_dir" "exist" +} + test_stats() { stats_dir=$1 @@ -138,6 +144,7 @@ test_scheme() test_quotas "$scheme_dir/quotas" test_watermarks "$scheme_dir/watermarks" test_stats "$scheme_dir/stats" + test_tried_regions "$scheme_dir/tried_regions" } test_schemes()