From patchwork Tue Oct 19 15:07:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12570279 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5942C433FE for ; Tue, 19 Oct 2021 15:08:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9972E6134F for ; Tue, 19 Oct 2021 15:08:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9972E6134F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 020866B007D; Tue, 19 Oct 2021 11:08:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CD47B6B0081; Tue, 19 Oct 2021 11:08:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BA1126B007D; Tue, 19 Oct 2021 11:08:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0252.hostedemail.com [216.40.44.252]) by kanga.kvack.org (Postfix) with ESMTP id AA5556B007D for ; Tue, 19 Oct 2021 11:08:03 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id F09AF3E555 for ; Tue, 19 Oct 2021 15:08:02 +0000 (UTC) X-FDA: 78713517246.21.664D42D Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf12.hostedemail.com (Postfix) with ESMTP id 8F35F10000B5 for ; Tue, 19 Oct 2021 15:08:02 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id D4BF061074; Tue, 19 Oct 2021 15:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634656080; bh=WjEPB0Xf1aXQX6GI9buYFpVKc/LElMg4zZDLF5DMy4w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HPx54krvbO2AzZmu+cRDeV2wJb8/kpKLXEo9NfXk+ThD0v1fAliY4ymLowSLdcjTR EnI7UClzHmE+gHaGBOsyqVtXtIMHqX3gP6ixV+i0B/s0dPVwdRpwvNtTk1PludMG3h MCOPJKaYrFtoxu+nO/2PbK7Y1Sj1+Oj4q8Fmw8Fa9FYjcrXP4WuurDoBiZPQ29s5kD RdVNNIlOWOxJqMuIoBaRY1XJadft7r9JMhoRh4djZ458hN+Q1ZK2sEVkITZL3H7/do sGZZ4tm0+q0UB1FlUojboeSU4l6hLnhFjIc2uafyQ5N0c2BWyU7xwv3TZgBpPblF2J DqtQBmWjOJfDw== From: SeongJae Park To: akpm@linux-foundation.org Cc: SeongJae Park , Jonathan.Cameron@Huawei.com, amit@kernel.org, benh@kernel.crashing.org, corbet@lwn.net, david@redhat.com, dwmw@amazon.com, elver@google.com, foersleo@amazon.de, gthelen@google.com, markubo@amazon.de, rientjes@google.com, shakeelb@google.com, shuah@kernel.org, linux-damon@amazon.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/15] mm/damon/selftests: Support schemes quotas Date: Tue, 19 Oct 2021 15:07:22 +0000 Message-Id: <20211019150731.16699-7-sj@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211019150731.16699-1-sj@kernel.org> References: <20211019150731.16699-1-sj@kernel.org> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 8F35F10000B5 X-Stat-Signature: khs5ctb9xduuzoo5nnkdpatspu5xxccz Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=HPx54krv; spf=pass (imf12.hostedemail.com: domain of sj@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1634656082-649121 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: This commit updates DAMON selftests to support updated schemes debugfs file format for the quotas. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/debugfs_attrs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/damon/debugfs_attrs.sh b/tools/testing/selftests/damon/debugfs_attrs.sh index 639cfb6a1f65..8e33a7b584e7 100755 --- a/tools/testing/selftests/damon/debugfs_attrs.sh +++ b/tools/testing/selftests/damon/debugfs_attrs.sh @@ -63,10 +63,10 @@ echo "$orig_content" > "$file" file="$DBGFS/schemes" orig_content=$(cat "$file") -test_write_succ "$file" "1 2 3 4 5 6 4" \ +test_write_succ "$file" "1 2 3 4 5 6 4 0 0 0" \ "$orig_content" "valid input" test_write_fail "$file" "1 2 -3 4 5 6 3" "$orig_content" "multi lines" +3 4 5 6 3 0 0 0" "$orig_content" "multi lines" test_write_succ "$file" "" "$orig_content" "disabling" echo "$orig_content" > "$file"