From patchwork Tue Aug 27 03:03:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778779 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 CD129C5321D for ; Tue, 27 Aug 2024 03:03:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 470456B007B; Mon, 26 Aug 2024 23:03:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 420A26B0082; Mon, 26 Aug 2024 23:03:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 30F206B0083; Mon, 26 Aug 2024 23:03:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 13F786B007B for ; Mon, 26 Aug 2024 23:03:48 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B4B4BC1520 for ; Tue, 27 Aug 2024 03:03:47 +0000 (UTC) X-FDA: 82496530494.30.81E48DD Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf01.hostedemail.com (Postfix) with ESMTP id 7882F40005 for ; Tue, 27 Aug 2024 03:03:45 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sPGrbBE7; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724727739; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=0rEn59u/aRcj0J9wbLRNiQEq8GN1wwNHC3L8zQIesog=; b=fCVMAs4xmH3/wIZdEMl2WVzRXRoUqJ8enHNFN+Gm0u6TOKoUky5OWRrdWF0ND2yd2b4JmI k31uCmB+LY0S5M9Z8kwqlmPXUSoyPGH1ZYNQwPPu/2twWOW2N3waSkdJkS1GHpnV2gqlJN 1YLK7IDz0+nNDMackC08nLp7EJwf8fY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727739; a=rsa-sha256; cv=none; b=zjm9LgatNk+GcP8V0EI/neMhejZdVgBhLjYSxTZT7racTs5VVEm9qqujWnWRU5Ilmt2CE+ y6uVkg3OfT84XAlu9HpahP6QUPbkL4EXw2w2PlPa49K/Hy7AWafyneIqRkr+4trRcu+D12 ReR+kwjX2tX4vveS0cKeZBI+7zaxsVI= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sPGrbBE7; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 52231CE0FC0; Tue, 27 Aug 2024 03:03:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3257C8B7A1; Tue, 27 Aug 2024 03:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727820; bh=ryZY5o9HuHU/D4euC7qhLwDsJinJHJ8d0ysi5lUw5z4=; h=From:To:Cc:Subject:Date:From; b=sPGrbBE7l3XhXTJrmM1oa4OWHeDebs+5b+eKjhg79zQXzrStyKy3pn+QCcCt0uoC5 2kcOT3BC10wM0CUgjmAyXHRoMDLFdar370ryl9KhCivWDmaPrI+HkHtceECz0wsyiv oWP5Nv6fYqUZpju8sO4oYJj/WC7T6mNV9K4LfVqSV2DiL5X7AygnaQ4dY/Bv7N2tTM 2yZo4obc4lNPJc5RnAxoU3k+IPPMlXBNpZDYGSGem5CBAlUK2MRyYnduwa/cLTwG5t IKoYRUPAfr40c7V88byNL5k9qxnSqOUMKVTS5vYvd2KooYJxLUv6lS5cUGXxbhBdCJ wmsH1dYx07Jzg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , Brendan Higgins , David Gow , damon@lists.linux.dev, linux-mm@kvack.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/9] misc fixups for DAMON {self,kunit} tests Date: Mon, 26 Aug 2024 20:03:27 -0700 Message-Id: <20240827030336.7930-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Stat-Signature: 1fq4znjq4ud6unr3ae6ncahqitaqh4sp X-Rspamd-Queue-Id: 7882F40005 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1724727825-692415 X-HE-Meta: U2FsdGVkX18o/Ve5oZYBUGz99n8aZrxWkdQtux00x2khiqEAB3ck8dAOSfFVHU+mHrmEFj/cRe7khMXy3QY/SFzZ0/s72yNeAF0H80OyluuetgsMqkMFj+P7VKMLjjED3IOob5tBO2toDmjmzml+azMbiPQnY6UCU1LXfglJobSmRXOYsevitHMu2BcUc2q0cxQW0q8WqJO3zERUbAx1sExt9T0MVnDHzPDylozc85qI5aqh3Vd0qdVUGe8+FFyahVMR3jABhkvAR0rffYbCafxskE1mcRI5WEo3F8psaIfkmnYc3iH+NMpTKW7qUHT67yvjpxdisbNxi/IblvvRqQWoDlxLz+TNGrTcMC00eqD7DsWfzos/hAUyWKM9TlmXflhMUmuG3dq0kB6OgkX4SLaehbz84qojYqcOQM5w1mhoFRgIJ0adZkSZl/iUNWdVbFY5IZ7ZQRG3PaSxLGjt+8dvsvc4G9yppAfBxmf91ux+KTpHJrPDe5FMv9S8f7xeJ8S/xsr8X0B+pgJ9ltoFkQK+7tbG+ejABwKpPMFYigIpkiBxQ1VWdgWel8/9ZZnR+Ak2C4wtOrgEo6YDp5RAkqWhB5IVUnFC4nxqMaNgsKzqRIs+1f5HxJYziBrv15rkRcCMVVvnGE/sgGSnQ+2YoMI/kJhTmtEx4y7LfIVWQ0wabyNT8Xiuqg2kuyk2LD7VKi/GSbyFbwj1HDk8Foc+sh+jBj3XTBBvVZLYRWN4Xuv6AReC0dCbSPJE6Nbo/kCoiDqrUdqaCbtyhNA/HSGfATsmk2z2MKbWMjuAwjucLKJtPcyNpa7DkB6KeOcs38sGCIHlkmqyghwwGtGSLT5GplHKzWvutS8iXGdHinsABXmP1A9Z6kKD79Pkh5EKAhZtu3MeRX+VY5+0p40EdTngYqAw+Fa93lRLURnHRsacQJVxj9L9opN4sA+N+h9EpLrmPXcRsfCVzrV6p7WKlLs EHhspgdb l/PZdZH2HushnMZHd+Lntyad8Z2zjLXCHUCa/a3M96xLATffxQ591GjZUyQCQgvT6JM1LZEb4/acOxgwnebxHfWNtv/q63G1kPcqXk9Fw166UBhNVNTSq1y54Pzi4+MWk/8NNtp9h6VSylsj30zEFcV4Gk+VlD73F1Zl+PpnJi3/xEVOYHL9Ncm87cg== 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: List-Subscribe: List-Unsubscribe: This patchset is for minor fixups of DAMON selftests and kunit tests. First three patches make DAMON selftests more cleanly maintained (patches 1 and 2) without unnecessary warnings (patch 3). Following six patches remove unnecessary test case (patch 4), handle configs combinations that can make tests fail (patches 5-7), reorganize the test files following the new guideline (patch 8), and add reference kunitconfig for DAMON kunit tests (patch 9). SeongJae Park (9): selftests/damon: add access_memory_even to .gitignore selftests/damon: cleanup __pycache__/ with 'make clean' selftests/damon: add execute permissions to test scripts mm/damon/core-test: test only vaddr case on ops registration test mm/damon/core-test: fix damon_test_ops_registration() for DAMON_VADDR unset case mm/damon/dbgfs-test: skip dbgfs_set_targets() test if PADDR is not registered mm/damon/dbgfs-test: skip dbgfs_set_init_regions() test if PADDR is not registered mm/damon: move kunit tests to tests/ subdirectory with _kunit suffix mm/damon/tests: add .kunitconfig file for DAMON kunit tests mm/damon/core.c | 2 +- mm/damon/dbgfs.c | 2 +- mm/damon/sysfs.c | 2 +- mm/damon/tests/.kunitconfig | 22 ++++++++++++++++++ mm/damon/{core-test.h => tests/core-kunit.h} | 23 ++++++++++++++----- .../{dbgfs-test.h => tests/dbgfs-kunit.h} | 10 ++++++++ .../{sysfs-test.h => tests/sysfs-kunit.h} | 0 .../{vaddr-test.h => tests/vaddr-kunit.h} | 0 mm/damon/vaddr.c | 2 +- tools/testing/selftests/damon/.gitignore | 1 + tools/testing/selftests/damon/Makefile | 2 ++ .../selftests/damon/damon_nr_regions.py | 0 .../selftests/damon/damos_apply_interval.py | 0 tools/testing/selftests/damon/damos_quota.py | 0 .../selftests/damon/damos_quota_goal.py | 0 .../selftests/damon/damos_tried_regions.py | 0 .../damon/debugfs_target_ids_pid_leak.sh | 0 ...s_target_ids_read_before_terminate_race.sh | 0 ...sysfs_update_schemes_tried_regions_hang.py | 0 ...te_schemes_tried_regions_wss_estimation.py | 0 20 files changed, 56 insertions(+), 10 deletions(-) create mode 100644 mm/damon/tests/.kunitconfig rename mm/damon/{core-test.h => tests/core-kunit.h} (96%) rename mm/damon/{dbgfs-test.h => tests/dbgfs-kunit.h} (94%) rename mm/damon/{sysfs-test.h => tests/sysfs-kunit.h} (100%) rename mm/damon/{vaddr-test.h => tests/vaddr-kunit.h} (100%) mode change 100644 => 100755 tools/testing/selftests/damon/damon_nr_regions.py mode change 100644 => 100755 tools/testing/selftests/damon/damos_apply_interval.py mode change 100644 => 100755 tools/testing/selftests/damon/damos_quota.py mode change 100644 => 100755 tools/testing/selftests/damon/damos_quota_goal.py mode change 100644 => 100755 tools/testing/selftests/damon/damos_tried_regions.py mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_target_ids_pid_leak.sh mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.sh mode change 100644 => 100755 tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_hang.py mode change 100644 => 100755 tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py base-commit: ac23a0bb201e9916faa357d51c387e523813b4ad