From patchwork Wed Dec 1 15:04: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: 12650143 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 4C304C433F5 for ; Wed, 1 Dec 2021 15:07:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5B9AE6B0075; Wed, 1 Dec 2021 10:06:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 534F66B007D; Wed, 1 Dec 2021 10:06:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 16E8F6B0078; Wed, 1 Dec 2021 10:06:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0044.hostedemail.com [216.40.44.44]) by kanga.kvack.org (Postfix) with ESMTP id EF4B26B0075 for ; Wed, 1 Dec 2021 10:06:46 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id B0DB31812E214 for ; Wed, 1 Dec 2021 15:06:36 +0000 (UTC) X-FDA: 78869551992.26.299511B Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf14.hostedemail.com (Postfix) with ESMTP id 23A8A6011820 for ; Wed, 1 Dec 2021 15:05:04 +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 sin.source.kernel.org (Postfix) with ESMTPS id CCE01CE1F8B; Wed, 1 Dec 2021 15:05:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6986AC53FAD; Wed, 1 Dec 2021 15:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638371099; bh=2rXA7LdErl+8+nyOvssms5c1pTevqPeS6Aq7VNyiOuA=; h=From:To:Cc:Subject:Date:From; b=Xl8JHR/JDs0hMe0Yt/ylVbk9eT6Kf3yMJYObm3aMd8nUYNf3h97ncCVa2wdy6uLcs ilvMOAC6FDYXMUz7T3fdvXb1wzfZzD1+J1avMuEFEkLGVUbVEIsL+XJTinq1NIrgxH Ha9qGclJZHoBIVbsjHp2gHhxfqDKtJk+3TFyf+tuHob8dj+FffPd8N3mLEX0gJ6zxJ MnlSyF/A3oxbJR0bL+971fH0ceWQzdQDG1hAddWE4YNLqPrgaiOimUNQNSYeyyckjQ 8kV5Db2jYY6IRYHCF1vytpFVHFebuG5CDCqiMSUeGAhM6bMZs0UiZj2RNsOZN3TS/J ZZsPYQ5fBFUEw== From: SeongJae Park To: akpm@linux-foundation.org Cc: shuah@kernel.org, brendanhiggins@google.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 00/11] mm/damon: Trivial fixups and improvements Date: Wed, 1 Dec 2021 15:04:29 +0000 Message-Id: <20211201150440.1088-1-sj@kernel.org> X-Mailer: git-send-email 2.17.1 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 23A8A6011820 X-Stat-Signature: 1ra6zwktygbke9kc4cupm6ickke7nzju Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="Xl8JHR/J"; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org X-HE-Tag: 1638371104-890611 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 patchset contains trivial fixups and improvements for DAMON and its kunit/kselftest tests. SeongJae Park (11): mm/damon/core: Use better timer mechanisms selection threshold mm/damon/dbgfs: Remove an unnecessary error message mm/damon/core: Remove unnecessary error messages mm/damon/vaddr: Remove an unnecessary warning message mm/damon/vaddr-test: Split a test function having >1024 bytes frame size mm/damon/vaddr-test: Remove unnecessary variables selftests/damon: Skip test if DAMON is running selftests/damon: Test DAMON enabling with empty target_ids case selftests/damon: Test wrong DAMOS condition ranges input selftests/damon: Test debugfs file reads/writes with huge count selftests/damon: Split test cases mm/damon/core.c | 14 +--- mm/damon/dbgfs.c | 4 +- mm/damon/vaddr-test.h | 79 +++++++++---------- mm/damon/vaddr.c | 1 - tools/testing/selftests/damon/.gitignore | 2 + tools/testing/selftests/damon/Makefile | 7 +- .../selftests/damon/_debugfs_common.sh | 52 ++++++++++++ .../testing/selftests/damon/debugfs_attrs.sh | 73 +---------------- .../selftests/damon/debugfs_empty_targets.sh | 13 +++ .../damon/debugfs_huge_count_read_write.sh | 22 ++++++ .../selftests/damon/debugfs_schemes.sh | 19 +++++ .../selftests/damon/debugfs_target_ids.sh | 19 +++++ .../selftests/damon/huge_count_read_write.c | 39 +++++++++ 13 files changed, 214 insertions(+), 130 deletions(-) create mode 100644 tools/testing/selftests/damon/.gitignore create mode 100644 tools/testing/selftests/damon/_debugfs_common.sh create mode 100644 tools/testing/selftests/damon/debugfs_empty_targets.sh create mode 100644 tools/testing/selftests/damon/debugfs_huge_count_read_write.sh create mode 100644 tools/testing/selftests/damon/debugfs_schemes.sh create mode 100644 tools/testing/selftests/damon/debugfs_target_ids.sh create mode 100644 tools/testing/selftests/damon/huge_count_read_write.c