Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp549865pxb; Tue, 19 Oct 2021 08:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaviiv7Ts/6exivWtRWaEbF2qDiWaxZ1SLT+YZUgu6iDbjqbMa9bxpG4kQytEpyeYLd7fL X-Received: by 2002:adf:f8c2:: with SMTP id f2mr45532207wrq.234.1634656360172; Tue, 19 Oct 2021 08:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634656360; cv=none; d=google.com; s=arc-20160816; b=qCu9BjsnDFZNrCXk95cQLp0LbxRS2EnuTYxy+BDHMu6vBxS0srZVIhOPZ8czNde6B1 OQZaFJ4iPNikXKxCS+OzghTSWl/yRtpxKJIxI+B7GMiCte/lhF688FvqqrTEbbHIC9cp oqo77IyCSXJqtmu6DVFcFfxb4dTkHDHx2kTRsqWlbxhcp34jtnyp0xISub7BUp0jWykV RpCRbLxSEUBfMeD3mAaokzOsaV7VNcDs8bE3k66FSe7+tvsNJkpE/8S6PvWXVs6maHsr lc5vN/MMdTwEJEtV5HlTKFHqA5hmsAWUZgi+NSdQ05HAxcMjSrMSmvzhFsnBoWmj/Ldv X2cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=X2PD2fgyKxJtp8G0E3lGV0fMmf5745zaOimep8RHsak=; b=VaBu8sKZwgfylpyQ3FDhc5NxbRAJi58oxWojnKI4a2B3DjG20V1GEHD6+kh6jAQlBf sUdtX1xl5sBWTQhOyq3kt2Oe8rETV0u7lePW923pZf6sYC0yMiIqSzO7wGHeALzg8ha7 GrM9eqsil8MGPJ6stMFPWfzVBzi/nmIbwNcS1ienA50lozEhgreo7SvxCQoeHyBvJ8T3 e3Wy596xu5KmKcVLy3Rhw2JEqVrmG/Vnmx/c65XkD8FW8fCzz3mxsrbnw6BhppZ+70rd GA5BFXoTlayfuSwN8lEI0qL5+os6RJ4DQ4SY9MkySX2JzTlqHf7L9bho40857MEzlm5n rKBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HPx54krv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm27si23025559edb.129.2021.10.19.08.12.14; Tue, 19 Oct 2021 08:12:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HPx54krv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232548AbhJSPKQ (ORCPT + 99 others); Tue, 19 Oct 2021 11:10:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:57996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233527AbhJSPKN (ORCPT ); Tue, 19 Oct 2021 11:10:13 -0400 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" -- 2.17.1