From patchwork Tue Oct 19 15:07:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12570301 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 0ABDDC433F5 for ; Tue, 19 Oct 2021 15:08:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B29AC61052 for ; Tue, 19 Oct 2021 15:08:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B29AC61052 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 ADB546B008A; Tue, 19 Oct 2021 11:08:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A89226B008C; Tue, 19 Oct 2021 11:08:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9519F6B0092; Tue, 19 Oct 2021 11:08:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0003.hostedemail.com [216.40.44.3]) by kanga.kvack.org (Postfix) with ESMTP id 84E586B008A for ; Tue, 19 Oct 2021 11:08:13 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 403FE1803EF2B for ; Tue, 19 Oct 2021 15:08:13 +0000 (UTC) X-FDA: 78713517666.01.4721DAF Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf07.hostedemail.com (Postfix) with ESMTP id 39FC510000AA for ; Tue, 19 Oct 2021 15:08:16 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id C228D6137D; Tue, 19 Oct 2021 15:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634656092; bh=6Ey2yQL8vp45TglKXfKMfCMTfAI/Z6m/vrgKMF/aoKQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T+72k1Ul51sB0eB7OvCjH62yRwI7JwQOcFn7OOmzX5ZWoB2MopwQs/sX9NGzFP89y 8ScpcD5g+OrE65AoETrkyNxxBHiyKEfNUy1YcoyqueDauFvifpX7WcseNUUEn1n8XY 9oktHlGLzx36XySWvNB7bOmvQ9ROQc2jpEhxs8ekXwCUFTdVSCOufPuhmZNQOy/umf 4OE04ETjPMj42H9EvKq8XA8wUYAaKqVLFDwO6Xi2jRge/BPeqQlIJXPfmY9U+1TOp1 S5mdPgrKtriiKfuomsRUPlN0GGagVvpWu0GOUGbW80dJ7RQRqp3Sd5R7KSnJR9bGun YBa3Z4PtGIx2A== 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 13/15] selftests/damon: Support watermarks Date: Tue, 19 Oct 2021 15:07:29 +0000 Message-Id: <20211019150731.16699-14-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> Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=T+72k1Ul; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf07.hostedemail.com: domain of sj@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=sj@kernel.org X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 39FC510000AA X-Stat-Signature: 55q6f3uzbg9iso6bgzrjadn3w15jr63o X-HE-Tag: 1634656096-729176 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 for 'schemes' debugfs file to reflect the changes in the format. 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 466dbeb37e31..196b6640bf37 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 0 0 0 1 2 3" \ +test_write_succ "$file" "1 2 3 4 5 6 4 0 0 0 1 2 3 1 100 3 2 1" \ "$orig_content" "valid input" test_write_fail "$file" "1 2 -3 4 5 6 3 0 0 0 1 2 3" "$orig_content" "multi lines" +3 4 5 6 3 0 0 0 1 2 3 1 100 3 2 1" "$orig_content" "multi lines" test_write_succ "$file" "" "$orig_content" "disabling" echo "$orig_content" > "$file"