From patchwork Tue Jul 20 13:13:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12388287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEBC8C636C9 for ; Tue, 20 Jul 2021 13:14:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9D7E2610D2 for ; Tue, 20 Jul 2021 13:14:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D7E2610D2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5CDEA6B007B; Tue, 20 Jul 2021 09:14:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5A5036B007D; Tue, 20 Jul 2021 09:14:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F8796B007E; Tue, 20 Jul 2021 09:14:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0128.hostedemail.com [216.40.44.128]) by kanga.kvack.org (Postfix) with ESMTP id 1CEB36B007B for ; Tue, 20 Jul 2021 09:14:34 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id A62C58248047 for ; Tue, 20 Jul 2021 13:14:32 +0000 (UTC) X-FDA: 78383010384.15.C987866 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by imf03.hostedemail.com (Postfix) with ESMTP id 5CCE330002CA for ; Tue, 20 Jul 2021 13:14:32 +0000 (UTC) Received: by mail-qk1-f176.google.com with SMTP id bm6so7134060qkb.1 for ; Tue, 20 Jul 2021 06:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=N4OySLzN00OyxAmBozCmrLJ4FDwzHDu/TgQ7eqRxySc=; b=L4iKNe414B39IjYtYRV+736mv2j5dwbTHDQDz9OhJ+YCqXFJivxcxVtLLgmYptKayY ICY4eEAdTgYvcHLm4FvGg90Mb/bCZRsiId9X/7f7cfcljtYuq461c3ucbUHdqLzloodK zkGwYwKbyVgjjh80pwe3GkhGKZvkWMHZoMqwunOPBRR+NRH/xM1Ymx2BycOrcrbQZYN/ 9H+LqlyRWbMBPJrmEZ51NJrE6M/PKMeX7c91Zy9EI+UdN/LrWpCiofceIcfaTfuz42GC E657VxPLlhVkuXXFNHdWSccPUCd8q8MjUucAr6weT3oxUlebuy4UR0CzY9zQjHL+cse1 wsNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=N4OySLzN00OyxAmBozCmrLJ4FDwzHDu/TgQ7eqRxySc=; b=lQEMSU7ILz36aLRD4iDt+8BV41gWvtxdfJuzO4Jt30+8+zmK35Li7qnwSRbRiGVZ/9 XqpnXL4THbCfE9WB7rIFlIkh95Y/CnyLEWTnouh+gu7LsMj9dnOEKnrswguT5NkATudC PVyKNzpF3GpijpWopS6N5jya9vY5ngvHEO1/6LWXcAXqZYymC1YsLhmc9e74VWfs1hOr b67SlMx3OheuS5IDUBbp9mF7T7J7O/641VFfHYZqWI80HTEeTZERZKfuypeFeTqds/Jt Q2ijFs5s662/dGSL9fLnvBJRy8r9Wr+WMZiPRA6AJP7ODemt9/C4/DkHnuc+oabUm/CU HrMQ== X-Gm-Message-State: AOAM532IpdmhF5mt6ChQ3uAYO5ABvmEUKN492JqVPi7JNKQWRRuxkJ+i +LV1EJYdqVuuF92dgDYI/ME= X-Google-Smtp-Source: ABdhPJxUFKWtsMXkkyZQ8/2AFphId8tuwlo+lJcqhyphDa44DBS0Yw9n1wF3tMxCY49TNhlpMKT1Sg== X-Received: by 2002:a05:620a:4e1:: with SMTP id b1mr29376604qkh.363.1626786871796; Tue, 20 Jul 2021 06:14:31 -0700 (PDT) Received: from localhost.localdomain (ec2-35-169-212-159.compute-1.amazonaws.com. [35.169.212.159]) by smtp.gmail.com with ESMTPSA id g17sm9701225qkm.34.2021.07.20.06.14.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 06:14:31 -0700 (PDT) From: SeongJae Park To: akpm@linux-foundation.org Cc: SeongJae Park , Jonathan.Cameron@Huawei.com, acme@kernel.org, alexander.shishkin@linux.intel.com, amit@kernel.org, benh@kernel.crashing.org, brendanhiggins@google.com, corbet@lwn.net, david@redhat.com, dwmw@amazon.com, elver@google.com, fan.du@intel.com, foersleo@amazon.de, greg@kroah.com, gthelen@google.com, guoju.fgj@alibaba-inc.com, jgowans@amazon.com, joe@perches.com, mgorman@suse.de, mheyne@amazon.de, minchan@kernel.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, riel@surriel.com, rientjes@google.com, rostedt@goodmis.org, rppt@kernel.org, shakeelb@google.com, shuah@kernel.org, sieberf@amazon.com, sj38.park@gmail.com, snu@zelle79.org, vbabka@suse.cz, vdavydov.dev@gmail.com, zgf574564920@gmail.com, linux-damon@amazon.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC v3 10/15] tools/selftests/damon: Update for regions prioritization of schemes Date: Tue, 20 Jul 2021 13:13:04 +0000 Message-Id: <20210720131309.22073-11-sj38.park@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210720131309.22073-1-sj38.park@gmail.com> References: <20210720131309.22073-1-sj38.park@gmail.com> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 5CCE330002CA X-Stat-Signature: 7qpxmbq84c8meo3pnhir3fp3wif8r3zj Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=L4iKNe41; spf=pass (imf03.hostedemail.com: domain of sj38park@gmail.com designates 209.85.222.176 as permitted sender) smtp.mailfrom=sj38park@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-HE-Tag: 1626786872-945471 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: From: SeongJae Park This commit updates the DAMON selftests for 'schemes' debugfs file, as the file format is updated. 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 b6a09ed6a1fc..4c69d8709e3b 100755 --- a/tools/testing/selftests/damon/debugfs_attrs.sh +++ b/tools/testing/selftests/damon/debugfs_attrs.sh @@ -78,10 +78,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" \ +test_write_succ "$file" "1 2 3 4 5 6 4 0 0 0 1 2 3" \ "$orig_content" "valid input" test_write_fail "$file" "1 2 -3 4 5 6 3 0 0 0" "$orig_content" "multi lines" +3 4 5 6 3 0 0 0 1 2 3" "$orig_content" "multi lines" test_write_succ "$file" "" "$orig_content" "disabling" echo "$orig_content" > "$file"