From patchwork Tue Aug 27 03:03:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778782 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 8DEA9C5472F for ; Tue, 27 Aug 2024 03:03:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9A2026B0088; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 952676B0089; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7F0F66B008A; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 588656B0089 for ; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id D8B83141507 for ; Tue, 27 Aug 2024 03:03:51 +0000 (UTC) X-FDA: 82496530662.23.68B3490 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf17.hostedemail.com (Postfix) with ESMTP id C95ED40007 for ; Tue, 27 Aug 2024 03:03:49 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OY6a8RPd; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727766; a=rsa-sha256; cv=none; b=ZN0a9ifTsFEqzeosppuGXWz7d+hgsioN3yqd2qFHBIv7VbUA9GFaAb5cQzlzjtiPxeKpvB maHU4GOlCXEH+4vlmkC0SMrEvgaPPLh0JLgo/x6rM+9jf5/TR4vzj6VxFOUfe/myy4MPkH iJUOSy3BKlr3wIDxPIZB5rAwEujLwDo= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=OY6a8RPd; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724727766; 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:in-reply-to:references:references:dkim-signature; bh=oujWr70U3U33m7N+ZorBv17j8qCHpckf6quO7XkoGNg=; b=Wt0leMZWLWHBirvmICcriTIqBfKYGuvMcQYDQiffODkZSz1UrmVDqrc7BRnAkOZzjj98fS /r4gcPjKhPN2nOrIAMFJVXsr30grJLY2R/rC8LIc3XbP4ydIfZqe4AMxX8xXgyYTajiYSa oKy4ajMmjUbAbfl+fiHtU0TQeftfnAw= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id EC39ECE0FEB; Tue, 27 Aug 2024 03:03:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACFEFC8B7A1; Tue, 27 Aug 2024 03:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727826; bh=u2NvqBkkbAzeQS7kbk6mVRAqMmq/sCoTqOpDlC8ObH4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OY6a8RPdw9Luuff4EEXqoYQ20kM4cDnSH4oLzMmXmLvcp7zdWOu8f2pmGtUshmUuv ODo3sVqZm6X73X5o7hQ8YUmy1OKNAMLp3A5fY5MHeMevbNFuX9Z1O3qn8cSV2fm0Zx uQRc+l8/gyPycbhm0wvQnoAoFPPidRVKgkK4BK36GDyHyMWwyF8M4Ot8b1jnylzVUV Iep6rJFGZLUVItLG7qQGkwtxQRYOBESzs7U3xlM8lfti/5w++g2Rqnv3Jp2Wn5suQK CIM1D2b3yHRjAJlqhnHI8kEkEfLjhtDePNiW513jOuqY+gzFW++E3YvzSYjfNQvkMQ ncPu0O6S/4D4A== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/9] selftests/damon: add access_memory_even to .gitignore Date: Mon, 26 Aug 2024 20:03:28 -0700 Message-Id: <20240827030336.7930-2-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: C95ED40007 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: z7weni69m5sq1x88rbpjje4yr7kby1qd X-HE-Tag: 1724727829-317379 X-HE-Meta: U2FsdGVkX18F8fHJiuxXxXFTyTn3sQjQd8QxNKFD7/pB+L5pBepMXtRnteFH1Nj33MCC3ADOL0AV6QdZBOetgkJh88jlj0Vzng9Xl97UDiJQdRlFOdT5eDSNlaLtkmqfqrItZAyUpaoK12FO8D4k94N6mvR6xLM6HDZggY80ICee0SFrXtkVxij2Es+7o2RHD2qxBSguzkFdBufPgVgRJau+ZbGeFWIrZQPAssOkHZ9XvwaNYyWV+1/hNbpGIPm1llp3aDI7hNHINSbexH1/ugnbbfmBOPTHzd2lHo7uRbcivaGpTur5un8kkInXBL1tAzq4EKEXn0X2x+9L3FbhkyJ/CpafrcuYX7XIpWPN057rhWkljdbxLD6gra/sPHAvCxCLdh6VdUUpA+Dux2n4r0cM2xd1TQEmGcrpetc4xyoECTNaOOHdry6+4iqGjACXFE6kku2vOUBP2yFCyDP7qWYgBCtE0KNDwKPNonBdEqEP/eWPDuDU4FegWs1tZNkfBo863BXqT4Ai5Zaj6yCCZDD6VipAMSteYcAIG/TnuVnclx1Avwpzktbg5CvjQXhgkx8E6j78U3tHcfmjRwQiyP5ZxdJRa69lr3O7LakukRkZLT3ItXyJirKJnmILFmpXdKhAZGGu9/nuhx/A52WHTJFjhfe6iOa6VJDHR7qTxSzux8oI0dl4sf+FYdDjYiM6wm9AoMWD78qFsJgBrvKBx3r0r4J7BSy6ohSB6sBT8O1qwXIVqZuaEkSqwWK8M4wHAuAQWi1td9XzZEUeT+ock3BGp4vrrjXIf9zRdhQTNv97rgkgKOXCj7GFKQsqBXEs1Jx4zxWNqAeqsxtkH3/MikotUkvOIF6/C5lgVMxpy+JwTPwa3nGVWrfgrHXcy7toesLyMezj/Fkz3cbYFMvwyLj7LdNOae9Nfjydt+AJT+la/JPAHCIuic1fyxyjSC1yasM8o3b2Efsa6PxtgKI 7tFs7e0n 9P7NIrxYKrM379ORaoXYXWurAS4UI1TfWQp2kMRijevEHoFdyWRBtlzxJOIqlM4NU1GJVkgA0FVihaoMQi6PO/BF+dEB2VMEdUzz5IUAgt281/82+3FWcu87euR9RMH/gD4Vle4fS5I4SU8pXH6mPfTc8/6qdRrIm39F0rxROM8Cva6jRrlJy2vcofGUAVPThCUwfOmpHj6nVAkzcUXmM58p5NY4XBqVmR0RgNPCRFMscn+d2cGVlVGyg8J29qLwX7L8Qius//2+FHzuBeofP+j6j5uMgwDLORuuL1QYSQki/t0ejmUaIIKjiJhyxCJ3QQjqr 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: DAMON selftests build access_memory_even, but its not on the .gitignore list. Add it to make 'git status' output cleaner. Fixes: commit c94df805c774 ("selftests/damon: implement a program for even-numbered memory regions access") Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/damon/.gitignore b/tools/testing/selftests/damon/.gitignore index e65ef9d9cedc..2ab675fecb6b 100644 --- a/tools/testing/selftests/damon/.gitignore +++ b/tools/testing/selftests/damon/.gitignore @@ -3,3 +3,4 @@ huge_count_read_write debugfs_target_ids_read_before_terminate_race debugfs_target_ids_pid_leak access_memory +access_memory_even From patchwork Tue Aug 27 03:03:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778780 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 54FE9C5472D for ; Tue, 27 Aug 2024 03:03:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E34386B0082; Mon, 26 Aug 2024 23:03:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DE57D6B0083; Mon, 26 Aug 2024 23:03:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C85766B0085; Mon, 26 Aug 2024 23:03:50 -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 ABE526B0082 for ; Mon, 26 Aug 2024 23:03:50 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 7228A41558 for ; Tue, 27 Aug 2024 03:03:50 +0000 (UTC) X-FDA: 82496530620.01.9338E35 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf21.hostedemail.com (Postfix) with ESMTP id E5AE51C0018 for ; Tue, 27 Aug 2024 03:03:47 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=PxXg0aAY; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf21.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727764; a=rsa-sha256; cv=none; b=Yinjd23IOF9ITiYuWeCpEW70cEXfbLGdR+xVyvPfe1dRWaXx/NtKRtV2L3bcKFiFcaUJ1c NjDxnNFyHCWBF0ElESdB4CCX7K5cfp7hDm2H1BpRtHAAwvKd8GWR8nwyyoCbLVGDF69n68 RyUq1KIHl7ruZfMESP4IgQY3CTPAAR4= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=PxXg0aAY; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf21.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724727764; 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:in-reply-to:references:references:dkim-signature; bh=J8+ViudUHf7S27X8/LBfhlU1FY9KTv7XZbd6A8ZYR+I=; b=YSncYW5LR626PzFCuwlwa7k9kpYA8LrMugWFWehWSYcpS46VOo9fovGtZga/GgQZkx958n bodYB9P698CyYmFQ+W/S6bj3o4K5orq3XPSNyaicD47wczbjDXU/sPsXahurxkqTSf3GXe hYYAYWMRAP81HqKNd+ddJaQ6/ea9Rcg= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 42AE6A40C00; Tue, 27 Aug 2024 03:03:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D526C8B7A6; Tue, 27 Aug 2024 03:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727826; bh=2F3Z7/FjUDbb0bRhSn31gWhRde7Fk7wSW3dzKpCxQOA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PxXg0aAYfWgd67ktVrg98gx1cX4O+jFcp1Rx3rqPpBsIiAG9AwfrjAya2I25CL2Li E7oJnrkyFbOrFoaFOrBUPq9J5b594e6aQYCd3JzbsD2tblpSISLs2fiApEmiE/Itxh 5NIBKMsfaHLLZ+/Os61lJ4qxphcscOVwVMA/IIFy0fedHlWUjM/9S0tIN1m8iECbjU F/xNi/firvl5QiPm1QauCPN1Cj9n8nzeVfi1AGPHw8kU7lyLOezATpbzmIkzO8tbE5 mEHHxFXWrU27uBvurTrZk9Xx0Qkws9/Tc9uxiDi/UFVbrO3I3HtqCK9v+IPTEhvS9h Fv/L4NcANLh/A== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/9] selftests/damon: cleanup __pycache__/ with 'make clean' Date: Mon, 26 Aug 2024 20:03:29 -0700 Message-Id: <20240827030336.7930-3-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: E5AE51C0018 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: gb9j11o6x48e4nurnk7q7993h56o8wem X-HE-Tag: 1724727827-115561 X-HE-Meta: U2FsdGVkX19sgudPqWkfvlAwCdlxlJmdfa438/92ZovyhCU8ilQhTqLmyqOJbbLK3KHMFSiTVl88a2K+NkSTdljllvik2luZcZbbybhoFr89WL8B3gEAqXfEazKUFMLMdGGAhZwlTkmQ6wGIfKrj99/998u3WX9pHDOKAOZyO1C+TqS/09VS1j9WSFZ6cX3OpLtc7e2TfGsqqdaN2l+GMrbXsxBtcpYTgmk6DdXkfVhL0HrHoleHXBsaJPrY75uJqOR/RKjCD4jjTNEwqg1qgqgFtv7b/P3oRIXeY39ysstkiu2vkiFltsDFupmNMwSPnPJT2ASNirA1P9FMTFAEu8kiQEBaff/LiCV98QUfkPOv4DKSU8pQb8s7nGwX9ItZN4ZnbtodVdWZwmYNGuvinDIN2rhTuII8dodkUYN50uRL0VqfAIYDOU/+Bj3lcowUpKnEGTCqIozCeLlTb/ecnu9+sLbTJ8kDNVhNIMYorqxdQLpVmlx8OkTg3gkD+RdsbrZuXZ7xwzilzvNKivMAvbDXpm4lBsRKmIHxilhckwwL6DgIW+F35bCp8taTo+djq58o3p3sXJ0xXM/H5JCKLlMaKE32cI92/EmsdyU5AWxqaoKFD4DZOvHDzVJ7NQVkbtyknBI+q5tcyw2FDJELCiHLSwpDJW0QevELrs7c5J1CCyREUevDR1TUwO9gTHbKPDJcnFRQLPcRD9lIPyxrRgLRxCDuvwtZj1NDQYvIVgVxvo7XNVS0S+bcmLIV7adlys7aZq8ekzhfT4OHpCUh0BNFseHN7hJ+El48ZrfnNeTybrkCYVNennSNYJjMUWu4+pNysFc/Nmnpz1eO1FDZu2AxnJxEFdtolIga4SsZXfU118ga8kCCaMbts9sMvaY4uzKXkl7CibWZz6jwtTxzsbN7X3AMYXDzDdnfo6Wlt8hVZaoSVDXUesk0rtc3k+vu1eSGMyjFPq0fWSVheqt Xp4pd2u4 ZCklQpOgbHVAHGLyFmWN0zfrpp/34rgYGSb1ZFDlXYzVyrF1+thtSmdDshVRluzHxhd8h8AYNZUadjxuWlYGxthdAWB9hzSdXZK5VjKb7imciVq+vk4Utns4p0+FFsV2LhxiILleW7u/xNiK/U/4yG1+xVLHvfxzvWUV2QszAF1PNI1m9JHgesYqOE01p4tWPaEeD83GhVNaEpPve3GMqEpLwGjeIL0iWWRm32OVfclLlSXegyNHoXVddvea4zzs5+8DDDj3JQJRvvTFRemkOM15qndO7Vlh7w89d X-Bogosity: Ham, tests=bogofilter, spamicity=0.000229, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Python-based tests creates __pycache__/ directory. Remove it with 'make clean' by defining it as EXTRA_CLEAN. Fixes: b5906f5f7359 ("selftests/damon: add a test for update_schemes_tried_regions sysfs command") Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/damon/Makefile b/tools/testing/selftests/damon/Makefile index 1e2e98cc809d..5b2a6a5dd1af 100644 --- a/tools/testing/selftests/damon/Makefile +++ b/tools/testing/selftests/damon/Makefile @@ -25,4 +25,6 @@ TEST_PROGS += debugfs_target_ids_pid_leak.sh TEST_PROGS += sysfs_update_removed_scheme_dir.sh TEST_PROGS += sysfs_update_schemes_tried_regions_hang.py +EXTRA_CLEAN = __pycache__ + include ../lib.mk From patchwork Tue Aug 27 03:03:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778784 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 080C6C5321D for ; Tue, 27 Aug 2024 03:04:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BC5AF6B0095; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B4E336B008C; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9C90C6B0093; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 6D8A66B008A for ; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 23B631C49E9 for ; Tue, 27 Aug 2024 03:03:53 +0000 (UTC) X-FDA: 82496530746.09.B503479 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf12.hostedemail.com (Postfix) with ESMTP id E056F40005 for ; Tue, 27 Aug 2024 03:03:50 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=paC+r9cp; spf=pass (imf12.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727788; a=rsa-sha256; cv=none; b=OFvGscMv8tLKr+5I0+H3XjsbdTd7zWsDadAgXC/IOAceHWfcYwvPA4/KmNtk0oV36B2HCG u++8Gw9Y5uYmJJk0nkeJxHKxJHR683OwRe+oNXPOfUCYq5fuWZZYVT8tdg24YnTxk6N7A2 s0zTQ5WnaGgWC0NOjewGSwUx5FP36ws= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=paC+r9cp; spf=pass (imf12.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=1724727788; 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:in-reply-to:references:references:dkim-signature; bh=2B8gu07MS/LhAQ558fKLCXbMDkTNiDdKmG594kQ8fpA=; b=ZrjhI4ew28/4hjTjKc5DPgtlh7wrpofOD8z65e6OBw7rpSPHMmYzEOE7UOpKqwgkxSzG+0 RHemBzhGDXHQhtVfVhYoZWni6Z7xPUbHtdRjQrRHgT7WDpv3a5e+Qo/omBmChFme78bgrN CxgzgdCTHxXFDbQbUvtApAKAa4HByi8= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 5BFD3CE1048; Tue, 27 Aug 2024 03:03:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DD5EC8B7B3; Tue, 27 Aug 2024 03:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727827; bh=7gL6p1VlDvGym36gs1yc1aMIXOWSsJdQLUDxonxuf5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=paC+r9cpn7IVTlF+jU4zauq/8YM7Lb+Cl4FBTEHaY/U6d6YhjE7SlIJiPF33+guWo IkT34TNvb/6HejK6sBnPS7aH5vxH3yMB+CqN41Wu4brdSMDzPgAoiWOT2/xNM9mPbJ w+CYIdEazgEn4gdy8sbnlVwL1c3TpbzEe7R3qDaZmveAlBkgQDFKyrmr4P/RiXwpBj HYI1HCWiwiUoe9tWaA/RCtr/KsiuD2ZC312bAwYckYDCwJKzfDpc5oY3AmNDTry7oY kXltfkhImupOC6VkkEiVKE0Bfqf/MGqjBxuiTOIQstBDhk9GoxR8xeqNmtxEJyiCHC DzoJQZlrHb6aA== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] selftests/damon: add execute permissions to test scripts Date: Mon, 26 Aug 2024 20:03:30 -0700 Message-Id: <20240827030336.7930-4-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Stat-Signature: ukf5gp3w93p6ai8aksniybcjb4d746mz X-Rspamd-Queue-Id: E056F40005 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1724727830-532067 X-HE-Meta: U2FsdGVkX1/ailUBrtq0I6lB3jAkF8dRnMAjFvqfhR4RHciSvcaEvj7/Kx6XSffT3NsiCOsoH2VK7lGpcPBi1Ln2sqlafMDBc6AXVY56aQQMxuch4wh5kbjNNj1EPrO23RwI0AsLpmmOAta+zLLvDWQI9C/tVc55XFO+YPKriHj0w0nUHviNfgF6D2lgCg+2fINlAe2pVmEezBL7StMWIB1BDV0rccvc1Ey2b6votTxVcNACLeZaPqlgyzWTX8OKFijHFImQ9+wX52CSviCVpPvjA1b1y9EmXKLu96p3SlPhLTUQ5WF6VXGT1ausO07N5Et9TSPsloYZRAj0l71Wi90rbxAk/r+76bF3MTVywyetD89cgb2ngi/cySoKNIVCO+a3cht9Iep827rjjPnhfargySpZ6kHndR8x3iliCpvJDFAlDTuzfGDcz60/7gSN+Fb9d/GAJ9uAtP8oV8y2prC1/hgTi/oNQ2J/f1tw83q3rPzQoWxtaapKVAM7aUP+h540dFHEFHFfxEut3fuLQecQzsEj72TWNHuw/ER1dEUwFbFHZbU7e7itu6l4R826TXnkVVGeRHaJ9H5fzB4TBbkPx1QyAO9nyeQ/11p4/ZyROsmyZ+q9VBycK6yCaJlck+b5+J6lcTWaoaHEwHwV7INTfXuTAkllzbmeTgGwUEg+JPmsOh56JsxifBEb70cX8eQkJa90kDNmSlOsBJoIfJKfFmd8+2qlQ7TAvD9XR+fTsdBprBJONBRa4UNP4C+HC3005Ivs8dYfIZG8x7j2x3DPjtVMIn3BWOwRo5+M0i6o+i5WEg0A5aL1pzyg+c3iGyEsEQN7hDe592YIgI+gzKnpd+YiXILEim0Ar9qbmJkBXdzY95wEEDW4hjlNljZz1BfJcRPTrzxMu0hcEjIGQuv0XuB3dVlVFs9f7xfT78D02v8htHQgHDmP+ZYIvYnPPCnvMEKWgQzv/mvME1I yVHGx+0Y eLQH6mt1OCIjIhFvvomRNxp+sLuOcnUfCuqYwYY/ZHhKDjCzkTIdZP0TOlmajS2to/HY9bG5wTPq1cD0Fn6ExjYKH/hN99+TJsPz6zhQrEMTNqkyP/lNMBl1W7AFXao4x+q1XfPR/tSmGqXahlXGG8efpmmmToj2dKC390WKTPGutbmqwOTVBXb4BV8EHekK5w9ICt6q0+e2JXTBkGgzCre2BTaGraVPgZgeb52R6rrtcY/VTrHDfMuCMaA== 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: Some test scripts are missing executable permissions. It causes warnings that make the test output unnecessarily verbose. Add executable permissions. Signed-off-by: SeongJae Park --- Andrew, please note that this patch is for adding the execution permission to the files. I guess these need a special handling for your tooling. tools/testing/selftests/damon/damon_nr_regions.py | 0 tools/testing/selftests/damon/damos_apply_interval.py | 0 tools/testing/selftests/damon/damos_quota.py | 0 tools/testing/selftests/damon/damos_quota_goal.py | 0 tools/testing/selftests/damon/damos_tried_regions.py | 0 tools/testing/selftests/damon/debugfs_target_ids_pid_leak.sh | 0 .../damon/debugfs_target_ids_read_before_terminate_race.sh | 0 .../selftests/damon/sysfs_update_schemes_tried_regions_hang.py | 0 .../damon/sysfs_update_schemes_tried_regions_wss_estimation.py | 0 9 files changed, 0 insertions(+), 0 deletions(-) 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 diff --git a/tools/testing/selftests/damon/damon_nr_regions.py b/tools/testing/selftests/damon/damon_nr_regions.py old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/damos_apply_interval.py b/tools/testing/selftests/damon/damos_apply_interval.py old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/damos_quota.py b/tools/testing/selftests/damon/damos_quota.py old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/damos_quota_goal.py b/tools/testing/selftests/damon/damos_quota_goal.py old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/damos_tried_regions.py b/tools/testing/selftests/damon/damos_tried_regions.py old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/debugfs_target_ids_pid_leak.sh b/tools/testing/selftests/damon/debugfs_target_ids_pid_leak.sh old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.sh b/tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.sh old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_hang.py b/tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_hang.py old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py b/tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py old mode 100644 new mode 100755 From patchwork Tue Aug 27 03:03:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778786 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 6C648C5472D for ; Tue, 27 Aug 2024 03:04:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 709586B008C; Mon, 26 Aug 2024 23:03:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6917D6B0092; Mon, 26 Aug 2024 23:03:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 50F356B0096; Mon, 26 Aug 2024 23:03:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 2E9076B008C for ; Mon, 26 Aug 2024 23:03:54 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id DE13F4159A for ; Tue, 27 Aug 2024 03:03:53 +0000 (UTC) X-FDA: 82496530746.13.CED7CD4 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf11.hostedemail.com (Postfix) with ESMTP id E5DF840010 for ; Tue, 27 Aug 2024 03:03:51 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=vN3BAgGR; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727813; a=rsa-sha256; cv=none; b=uCyDmsCQ9R98Rvz8LTFQZ3XWBPGhv9ogLoGLYzPjj3hHkmTgQ98URGliIoyX2CdMzvKs/P nmsoyY1ZutrYPPPhwtlx8/MHxjG11gS8a7P/hd1naQUknwStah4Un2YXCnLrieYmvK0Ffr 6mJliO/qY3uoYkrKmpUO1Re8SUn/AYw= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=vN3BAgGR; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf11.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724727813; 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:in-reply-to:references:references:dkim-signature; bh=36J8FLqUpPxXEuilmYNfWfIftQZaI2QetKrARcLQUf4=; b=vtOxr42qrP+C+nLPL5mu7k5OJU+h16qlgfs7ZjAs5ZR/ljfPl4lSzgkZcTVUcFRkbYe+PV 8Q6NSBgTjGhZLafQYR6T83qk8IdiNKIzeP+wucgY6IIRmboRr8oLbNic0jVVVRNwao4nqj wr4c/jTv5nEEkOTVfg7Ao80lUnENhxw= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 3E589CE1091; Tue, 27 Aug 2024 03:03:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0F6EC8B7BC; Tue, 27 Aug 2024 03:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727828; bh=UIcEtsuF2oQygozWT/Xm716/UFpvZjJFMlGL0LY1swc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vN3BAgGR8uk5yCGefcqXr81gTPvEJR9+4CckN/1Z8Dp3mqKnHTsX+gXGeU+15of7x uVcEBYRigBYq0V2jRjyeXnYCQQdaVPNK7fASrI6H1Pzm2RAKD/hHDyVINmSGDLUoih WdNhBwHHF/Qkm2YtWPriYj17Wx2uxnwBy0YTbSI2kPpQCUhdTcwfeVfLxSZeP81ACZ W0wCD9/2S19ssGlhvehiXjNtT4nSE3HDm2REQZUoIBDttpxkv4f3gybyIXACLXucl+ kZXH1ki6pbeCeRA5TCSn7YgZQHHeNUQDRjhGuZX1mAHYic9iM2pVsf0DOKi38sbt+d yfdb4Yftbbstw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Brendan Higgins , David Gow , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH 4/9] mm/damon/core-test: test only vaddr case on ops registration test Date: Mon, 26 Aug 2024 20:03:31 -0700 Message-Id: <20240827030336.7930-5-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: E5DF840010 X-Rspamd-Server: rspam01 X-Stat-Signature: iha3rbd54t6otubxetbbf1bsxp8c3imh X-HE-Tag: 1724727831-50248 X-HE-Meta: U2FsdGVkX1+7T2Pd5ubTP2fZ9s7oV31sVSranD2Kvk4v6iwGrRjhPzDS2X6fJi5EF8O/yIXyihizW0f48Xhoz8hQ75oFBtJdyW2W6mKplvNscLaH9eWEYmuoi5wffTObl8+6xj04d8mytVYWaojJepjS4CBT6Jw0ZntKeimFkvJkNAgmRKiw2NVKvt2D318gY5a/90v5NoDaBOiU01QEK+4OLiIv0EjZV7zKcOlAYiFUKS+QVU7LagaGLV+e0tw5WWLkmZbZH4u+T3Cb+7W9jZRUf0S9HHx96X3ZlaSR9GiBuGdjt7B7bgTqTG4wNHlgaRor/a585ArIrtWGWgr+E0CACaJX8N5TlituJ+nFduZE9fOhpqtLC+Wbfy7FQOcpkGJ6BilUrnXOzBdA93M6HDlqs6S0VgOrF9ph7MqG0+0zc+IzerTnrGhgh+gDyRBztn57AGZfbOPW0CDBj0SMmBbItByZAwkSPZ4bqFYzfiibtbWSPS9SeD57FntclXKBb6lCas5ScLOjZvBfeXy6E9McbU7pHBiAUaQa035IYDdIhMy0O3REEkcaerjqysGeE0Q0YivpswHLIYnZ4LqeiO+JDLgWsUfWcdP5Wl5YsKMH7Cqrte//4MO1PLG2Nwu8qVjtXC8d9rQY5j6zrExkoDjmG4bVeQHyo1zw5IOJSTC0iCtevqE8GgRYNyivfUVRt/8OARNBhMBxMWDZ7SuXqCXTNa3YrIFQPx0F3iu+EFl1ROGczQeYZTezY0BuuFE4I7n+2SpHgbqPxQ2dGquPSn9GdSDaBO1yyYDyNOSnPiDWAwIKtYfJpve+07ESuYQlxizENl1xlLMi3ER04H8Y2/5RHHr239Xf+wHEzxrpm4B5/PttM9YwIaGIihQW/RfVcUxnKWSctPVZoKvUZdTbcYFa9AzvG2/QHI7pjcP9feDFoZHVzB7o89YE6c1iYDX0AS1MpPTzHo11T7c25rD N/CHVC4G 5a+869cjKLO7tqZpAd6IVO2B+vnXXZbBf0uvxPjaHJAMqwx+bvM7EuG2obgQFoCeoekPzEIHtxhY/oGrSVybUaibOIeOXClcpUN1ZFAEq8rXZuQBIxm5eOO8yBkItH/ajNoE83sqip6CBrfw/4tPfq7Ghp7FBcRmsnpojDi6NdXskBHM9KhPi3l6Hcj+WMzKRJcVspCpSL+Ldgp0x4wSHxk6vWMsFAFvmqmqZ+ueWitU5AzOmzmHxLRdiXg== 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: DAMON ops registration kunit test tests both vaddr and paddr use cases in parts of the whole test cases. Basically testing only one ops use case is enough. Do the test with only vaddr use case. Signed-off-by: SeongJae Park --- mm/damon/core-test.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mm/damon/core-test.h b/mm/damon/core-test.h index 0cee634f3544..ef36d586d6ee 100644 --- a/mm/damon/core-test.h +++ b/mm/damon/core-test.h @@ -246,16 +246,12 @@ static void damon_test_split_regions_of(struct kunit *test) static void damon_test_ops_registration(struct kunit *test) { struct damon_ctx *c = damon_new_ctx(); - struct damon_operations ops, bak; + struct damon_operations ops = {.id = DAMON_OPS_VADDR}, bak; - /* DAMON_OPS_{V,P}ADDR are registered on subsys_initcall */ + /* DAMON_OPS_VADDR is registered on subsys_initcall */ KUNIT_EXPECT_EQ(test, damon_select_ops(c, DAMON_OPS_VADDR), 0); - KUNIT_EXPECT_EQ(test, damon_select_ops(c, DAMON_OPS_PADDR), 0); /* Double-registration is prohibited */ - ops.id = DAMON_OPS_VADDR; - KUNIT_EXPECT_EQ(test, damon_register_ops(&ops), -EINVAL); - ops.id = DAMON_OPS_PADDR; KUNIT_EXPECT_EQ(test, damon_register_ops(&ops), -EINVAL); /* Unknown ops id cannot be registered */ From patchwork Tue Aug 27 03:03:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778781 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 4AC68C5321D for ; Tue, 27 Aug 2024 03:03:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 44CF66B0085; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 369746B0088; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1FEB96B0089; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id EA0A16B0085 for ; Mon, 26 Aug 2024 23:03:51 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 96A841A157D for ; Tue, 27 Aug 2024 03:03:51 +0000 (UTC) X-FDA: 82496530662.04.15F7D4F Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf08.hostedemail.com (Postfix) with ESMTP id 07E3816001C for ; Tue, 27 Aug 2024 03:03:49 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eClTrHDs; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727766; a=rsa-sha256; cv=none; b=OgotQ+K5nF6a0AQUwv96oA1Grr3pAwPdnJuq0O1UL9iDsudnh/AZKqjaKyuCrYt4g0RlQ+ FQ81YvRX1DTeDTH/pzyTz5M/zWdpi/k3bAOjhu/bPp9AZORIy+wObe0xiLjuXGo0m8oyrP H2UGxovKVybIYmwEw3UCyEfAYpGQ/fQ= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eClTrHDs; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724727766; 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:in-reply-to:references:references:dkim-signature; bh=HC/dQAuJJc9P7JXnxr7YCyjlubaNoSxPwxLkgGLKaBw=; b=lEQ12mY8xn29rODBrqBfclUm+gmEOUDA2iI5vwCQfIJjT+xCqOIbOZh6PtK+HEQhMZNDyW cLqnux5997onzPCWOmjUr0ZKPjSh87ZNAXvrPdwzgpvjGaZ9FFARanWhorx2p7V+BRanrt hSADL9pG2O8Tkn7H3qkzbJ9Wkt6kPB0= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 781FBA414CC; Tue, 27 Aug 2024 03:03:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FBE4C8B7A6; Tue, 27 Aug 2024 03:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727829; bh=27cqGwuOVW8eGx/ZGwFvgMxuQ6m1KJSHIM8DINfBPro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eClTrHDsw5bze3VQM1izuo3k6Ruz46VEbDkR9eLTbtSzGk0Sn4iYhBaqh0F+D+rH1 OSMbS4v+PEaxr/ZZXlbFAnJy3XwPC4vOOS6GdmmZkCxU/ro8hLwdh2AY30ULWmqEyR xCd5s31I7vC16GUF4VGOFTMZQMNFzAc8mWZxxWuLOi73pRoQyb0lVQngW3BwDj9q0M 1qcrRQwpeUTK9JLwUvntkOFU5iL5pip0zw36zYm0YvvhMH72MzUYAp1sY/ZxDXVd7M InrrNfiZKRlVab5GMdTZqQU4lbJQjGqDznTvD5WNgHPJbKBLsEUbX9dWedDMFatali V1I0CsmY6EEtw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Brendan Higgins , David Gow , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH 5/9] mm/damon/core-test: fix damon_test_ops_registration() for DAMON_VADDR unset case Date: Mon, 26 Aug 2024 20:03:32 -0700 Message-Id: <20240827030336.7930-6-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 07E3816001C X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 1n71qc98ko4yuds7uyypy9ju1awnadg4 X-HE-Tag: 1724727829-149691 X-HE-Meta: U2FsdGVkX18Wn9a8t8sz9ktjLOqN2h1wnd0QnQM/HXOyTWSbPOnXCsVIh4OaCR6qSjscgifpJfnl12oSk1QPIZ280au7KJtmIYf4n+/R6Q1Ro+MEHjJCN5b9qyZjn/RTZFytmrLNDDFjn/KpoRpaaDbKDiIicKTE+gtMa0wzhIXb5jlbmi4JzplaJtNKzGwWG225MkHIo4CufeU6HB4II4kaRcPiZjpL0h8ZXaziX2I4615xiJa8/GEHZ8ieAvwvpn6LGTFgFWsm17oK3I4A/4EtT+KQ2V+2AD1rS0h07fEyI92VXSRK7l+tHQDxPSzz004WaiGSKHoF1KQ9HyCmi2yaoHfSKPWPPyVq7ichhvB7hjPNpYXJR+lUBSGTVowwYRe4zDHd61IJpt19CfutFlkhnNcLaesB7pjfEt6+WIFCIZA+A2Fz2QSWrV2c1D0X1QtyiawTEMKRSkrLkGGAv54SAIE9HIIO10HCs5dGc2EIcPMDVdmnoNHsvGk6DocK05sok8OaYhqZgnkEoi6UA4APQOw3ZJuGBfKf4niMxQ4fZHU/mMSQipoEuLA4r9HY3M4cCJr93QMx9NInyi0xgv0KWlfvMu4nCbrmNI6aIHYQi0/eFpQ/45a/pOe9WBD0CFSulgW5n7m46zfoC8kKbVM2OiYqDT5zpbz9MvE+JGCDnLQDYleyOQF/snibXhIXU4YHseO7uFs4JRHD2za+08MihFPfQXcLhofYH9JZ1+xv3hlWmIiQV4pNd9I7SMey7NqcMThcIFgpknAWS39BLdWR5OMKXVKlWbNQsAF5VufHjfDWoBtyw0z9NM9GgQfaVciDQ4O21NeUm24NEf2loWK2CevGyU1UXK5zLtSw1VhjjRHQoRnjbaEin3exZbDcrzR5IitCMz+FAvx/zsLr2HetyaKup6YeRB7i3xdEywIz3KQAkt4bwL+lOszJoKq5vTFYwWsq1RshJh/HVDS Mu77YAKJ J1EdiissHJd3T8d61wRlrcFVW/mr0ff2iOLVE90n+mzkRJ2ulg/moDS9o+xysdfKenUUgd/FXLUOavB0dMxzhfiUm8lgw5COKfrHpovTWPk3kU4h8n/foAOZvoHjVHu2Eu87GWZc7koR+MBJIbGkEZyXKgxdLVm12HTddQ23mYIcDfhlbucWeNKpFZopU3ERdYChjU1YfxU6S+xFQpd2jBAbQ+s/y87zDAm7YZdIf9RFYu2nFCusqkxFRgBq8VPnCYrASYl9t+BA8nfo1LVj/bvajowaSNjBEGWeL 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: DAMON core kunit test can be executed without CONFIG_DAMON_VADDR. In the case, vaddr DAMON ops is not registered. Meanwhile, ops registration kunit test assumes the vaddr ops is registered. Check and handle the case by registrering fake vaddr ops inside the test code. Fixes: 4f540f5ab4f2 ("mm/damon/core-test: add a kunit test case for ops registration") Signed-off-by: SeongJae Park --- mm/damon/core-test.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mm/damon/core-test.h b/mm/damon/core-test.h index ef36d586d6ee..ae03df71737e 100644 --- a/mm/damon/core-test.h +++ b/mm/damon/core-test.h @@ -247,8 +247,16 @@ static void damon_test_ops_registration(struct kunit *test) { struct damon_ctx *c = damon_new_ctx(); struct damon_operations ops = {.id = DAMON_OPS_VADDR}, bak; + bool need_cleanup = false; - /* DAMON_OPS_VADDR is registered on subsys_initcall */ + /* DAMON_OPS_VADDR is registered only if CONFIG_DAMON_VADDR is set */ + if (!damon_is_registered_ops(DAMON_OPS_VADDR)) { + bak.id = DAMON_OPS_VADDR; + KUNIT_EXPECT_EQ(test, damon_register_ops(&bak), 0); + need_cleanup = true; + } + + /* DAMON_OPS_VADDR is ensured to be registered */ KUNIT_EXPECT_EQ(test, damon_select_ops(c, DAMON_OPS_VADDR), 0); /* Double-registration is prohibited */ @@ -274,6 +282,13 @@ static void damon_test_ops_registration(struct kunit *test) KUNIT_EXPECT_EQ(test, damon_register_ops(&ops), -EINVAL); damon_destroy_ctx(c); + + if (need_cleanup) { + mutex_lock(&damon_ops_lock); + damon_registered_ops[DAMON_OPS_VADDR] = + (struct damon_operations){}; + mutex_unlock(&damon_ops_lock); + } } static void damon_test_set_regions(struct kunit *test) From patchwork Tue Aug 27 03:03:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778783 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 56F8AC5472D for ; Tue, 27 Aug 2024 03:03:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 200B06B0089; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 18A4C6B008C; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F27576B0089; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id C93D46B0089 for ; Mon, 26 Aug 2024 23:03:52 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 47CA81C49E9 for ; Tue, 27 Aug 2024 03:03:52 +0000 (UTC) X-FDA: 82496530704.20.2D4FA51 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf15.hostedemail.com (Postfix) with ESMTP id B8E1AA000E for ; Tue, 27 Aug 2024 03:03:50 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=oHRDIBRY; spf=pass (imf15.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 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=1724727745; 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:in-reply-to:references:references:dkim-signature; bh=LGNACvxeUdqbUQMdOTL2vD8dRLQ5SDHeH4OlYVlcuzY=; b=01L5FJuSQB3u2zqpGcEQMwRwzSpVZYIZFeJWIocwKutPX7Bs1aetbj8nPRN89Z25FPllU+ 91tq6mFdesRhJzHV+H0/IXtw2DeVw2uROts0Kh/zp9Os5CxJqiSNXk5+GjSB53dBaI8l91 uugfFolm0gfWAcBe9zT/8E16bZ7YDsc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727745; a=rsa-sha256; cv=none; b=gC9mBHSwi+j05Lkx0P5LbaQhhIWlFa3MQRnHCiA7sy+tHz45qPPnSu90qed+t0OCL1dLWK zPXzQdDa4KR1SNk6SJokZjRF3xTtiRAg0Um2rZisT4Z++8Kh50ICmjToyBdZP1IV7+00Jq anN7uVE5SiDBfR2Gx9lBJ8LifXAE+qk= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=oHRDIBRY; spf=pass (imf15.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 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 nyc.source.kernel.org (Postfix) with ESMTP id 436ADA414D0; Tue, 27 Aug 2024 03:03:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 616F4C8B7B4; Tue, 27 Aug 2024 03:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727830; bh=UByfltsl+0NKbRlC3XW64geq3UiMNgzqDTzx3r/unzQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oHRDIBRYwvoiaUxi62tRmC7xHEIuX4zUxcHBLqbd6VeALE2Q6nv+0pMEpPfRUpMsy FLEDnT/JyJ80ydIVI9/sSxyWOakamo1Tb0Ser+wP/UXZ3NC/MAHvPoskEJCcMCABI8 fEd8jb1AKXiAF48Wr1s2RT5c+PfV28DYDE6nN932/Hw2Y9kfinsKS7F3DQNpnGxOkr SErgum5KfTJIQNbmYxUMUOzs0+kWumrDwQ3F7OsWuK2i9WfSEhs9W5SmCF2PGk1fV4 h1X1/LJHzEJU0MaAplOD3KaxhoMOpnD/EoLZShohd8+cMyl0RoDOZclTTCiswo/Hsy VH9khOcXvGLXg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Brendan Higgins , David Gow , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH 6/9] mm/damon/dbgfs-test: skip dbgfs_set_targets() test if PADDR is not registered Date: Mon, 26 Aug 2024 20:03:33 -0700 Message-Id: <20240827030336.7930-7-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: B8E1AA000E X-Stat-Signature: 5qi4y4wufbza3jh8au4b4r6qas393wn1 X-Rspamd-Server: rspam09 X-Rspam-User: X-HE-Tag: 1724727830-594363 X-HE-Meta: U2FsdGVkX1/4SMU9cAqrokOEfKaofLfYZocfnos2cmOQChxRVQg1DlHBSTHAtr8TVUuUPNCy/b0QHvaHQSul8ABxIxiC7QajfI7x2wfCk4hLmfPf3AwxRk4GEXHthi2yq3Npi62UZwU9UbCw7tegxQofKVfPK0672NVwH8Nc7x7+edeFVDzqhkWNutLrgTFqR+ljL5OqG2jA+T9k3cyZBtVpXx++ea/k2GCKhGUbWUtbsFbg+TkWTbfCmNj23eEPOhR9PV2r/HOFf8vGp+WaGM/RKDwEOK/LGa/n0OjxekfC1efEj/gpjowQUlGFEYvZqoxnHVJVzcqWS1WlN9E5l+9n8sgv7S2F6snwfD86fRGjEdJrvnkxfGQy+z9EnLr+ZiY4dZ8hfM6Ai6AVVzzax4Y5MoasdU90KIsN1bk1z7+UI6YA8aX4hqz8WJkvfQ87YEfkp8w6htIVVEViz3F8EpRrvDPkW5yimceUH3zKwlgpgUVDzGbZHRhcNXH6Fy/UbDTson8EjuowNfKmQwiqK6GFE0znP1eFEVSyvcXMDsDcGqyOOmIHZyF68r3eMHUroCWcJh+1UeYdQf4ghKnUkigN7o6uL29zyHr5gjHMZP6nxBy33n/btCX9zBdjNY3qiLFqKzgW/oHOMGPcQWGjLzZIK04XriBV6QSawHRRTX1O1KaXLlUsyPzfkXszGJ/XJlNqchIC6qbAOd4UgSY1Wlz5JQz2zMc6kPA7qYQnS/LV9ZmQktlVOv3QDK44byJV4ZvoiECXutQ6RvqeJV8hS4UXgP6hK9BnXbRXMHSAr0Af5wLGPzDj0j8MEiPX8v0RLiaQxxVB05A7Pn/Kumus+VUggZfQOLoX/20FIuuPtbx8qVbKwAteHHEDhw2k12xaq6XNWsCp/4TazS3J6HC06YWGi1o0jpNngC+rlobfpDq6GYpwNeugXUipjFqxlCTb0yKUeA+NcLSABAOyA38 0Z8/3wXd r71lSFwj9h6TDt5NrZGclzNG4V5FdOfX2OLi+jZfL1n+SV6T/4wBnhdxgp0kroewnU4e3nNJvHcCUlOmp9+Q9DXPm9uLHyhuFx0CBfVZXS4JSyVSJ6QopEEzwnYRFWSZXgeI+qV/5tLGCKZP4KZMy5mYdrn5csUP2UsXGnYUg24Rj6dbVLhbxpPx81T9KxIjzm3LnQ3chm7eIyU82LP/tcoDPrY/NFz/simov3MqpzKvRODHIRSnAm8KDBObgGgg9Gz0Q/2myGfSCgjIZE7ULBh/WOg4zBTgEJszv 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: The test depends on registration of DAMON_OPS_PADDR. It would be registered only when CONFIG_DAMON_PADDR is set. DAMON core kunit tests do fake ops registration for such case. However, the functions for such fake ops registration is not available to DAMON debugfs interface. Just skip the test in the case. Fixes: 999b9467974f ("mm/damon/dbgfs-test: fix is_target_id() change") Signed-off-by: SeongJae Park --- mm/damon/dbgfs-test.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/damon/dbgfs-test.h b/mm/damon/dbgfs-test.h index 2d85217f5ba4..9bd5dca5d4ad 100644 --- a/mm/damon/dbgfs-test.h +++ b/mm/damon/dbgfs-test.h @@ -73,6 +73,11 @@ static void damon_dbgfs_test_set_targets(struct kunit *test) struct damon_ctx *ctx = dbgfs_new_ctx(); char buf[64]; + if (!damon_is_registered_ops(DAMON_OPS_PADDR)) { + dbgfs_destroy_ctx(ctx); + kunit_skip(test, "PADDR not registered"); + } + /* Make DAMON consider target has no pid */ damon_select_ops(ctx, DAMON_OPS_PADDR); From patchwork Tue Aug 27 03:03:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778785 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 1B202C5472F for ; Tue, 27 Aug 2024 03:04:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A3396B008A; Mon, 26 Aug 2024 23:03:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F00806B0096; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BC2326B008A; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 9618A6B0092 for ; Mon, 26 Aug 2024 23:03:53 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 3F78814154E for ; Tue, 27 Aug 2024 03:03:53 +0000 (UTC) X-FDA: 82496530746.03.F728FCA Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf18.hostedemail.com (Postfix) with ESMTP id AB7D81C0011 for ; Tue, 27 Aug 2024 03:03:51 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MiviURUz; spf=pass (imf18.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727788; a=rsa-sha256; cv=none; b=BhSby+XAJ5bhK2tI99U+j8H1RsA/VCydlOtKBRdbtH1jWAMGPJUE3qCVxM7PHKQ8aLEmQ5 PRaGGTUmlYaT8IpouT9VKgCus2Khun42q3IlzAXbTJoFCud+cPEaa4AFX50grRjI79IBHI 68/cPI7jM2IMEeC/9+H1oigLzgxDff8= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=MiviURUz; spf=pass (imf18.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 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=1724727788; 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:in-reply-to:references:references:dkim-signature; bh=ftTzsUITHqYK0+IRbjV/qJ2YqwfWJToo0nJE70sEjyk=; b=Ybcd6bIQk9MDPkik2rX5l9+eTJEHqk3Zs7JNpwCvqwjnuo3TyNkwWJRg2j//YLBLayJ47W zr+TczUjSWXruSdKr1bAwoqJj3jbNQCumZvsZPesIXbES39uSNo/SH4elX+dUcx90GPh2T pv3W6FlB5wXhiaIGKHsQB7txvWfX0JI= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 1BC78A414F5; Tue, 27 Aug 2024 03:03:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37166C8B7A5; Tue, 27 Aug 2024 03:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727830; bh=IxpMWIJWc8lNeei5qcMinGRh56gQoVV53dw/oH9g9XY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MiviURUzk+69xkmiUshCH+Qi8dVAA/xCMLUfogwfkfbJUxQY1HGwZxk8lRXi73tQs XBngynWjeia092BrzXj2pGuzw0+ipJrLWg5NVe+JAP/VNxcug9W0sHHpzDv7A501Ka o/KfyFoT5INKzm/sVa350CYg2pNKt1EkaQhm80BR/b/wtEhhEKvOMOejygId9dm7Xo hnnVohkPkstiDwN7ZO/bkxPccj6CBdkjv9kEEDk8ZGVMNDnfmBByuep9+j6ZzveQIs PHr56HS4WJhMnvfezEgLoOHQxq93dkM9qQdV+vzJkzcncy/AR9xeqglpuNRaVfo0Ka XxgaKsNvtokdg== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Brendan Higgins , David Gow , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH 7/9] mm/damon/dbgfs-test: skip dbgfs_set_init_regions() test if PADDR is not registered Date: Mon, 26 Aug 2024 20:03:34 -0700 Message-Id: <20240827030336.7930-8-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Stat-Signature: tjmo1417zmb3jta5mtuk6wg7uy495qa4 X-Rspamd-Queue-Id: AB7D81C0011 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1724727831-332465 X-HE-Meta: U2FsdGVkX18aMGws26xcFlYrqLK+f7ZVlzq2sQNWw4gXtv12MXUd5DNiNg2vSZGBZIkCIko7ll4XIY9e+fuWjAhIVbn48Eg8XQof45FAiEkODldxse0GgePYOCBhThrYgzQVWpRWBH8GpJJWtvhPueVB4oEwEcFddr9wCcrcE6rDPGItzMrgchXvtRfwDnGYHO7femk3Lr4xBPgdVD8+wFz/4OgfPXfYTQ0RVu/qd4OhCaJrMQdhw8IwkEVBMUOAKvrlIktLajJm5Y1mbyqmOq6+6x2dc7KA5SKfS68F/nAbM0AEQwcQ2N1Y3wuw4dWiuNhJrRFk1SUTVks4CNAe+H5LZ9jaP8mAq9EWnH+5L4kMlrguz1LuAacQRIAjmR/Hadz0bwa277CH2ZHXPysg4Ja/dmriwHUulcHRmukW9EqONWtwITpF93w7sKJ/6RqxomWvdpilfE8XNYrOv7xDYZXAfV5GHctD/XA2kJyXD7+5zknDeWCST5cgzIp/tK1gbJ/EzsSFOJleBrOC4yUqETz0fpv+UfqMfOfylnCAvxvbmDwyMrktj79S0E1VjWlB26SNutVpl+C90RgaT58dwTxVoj1Hc17gjMFd7qj8c8vCB4Fbe4u7w4DI5v7uLSMI2+EnZqgoDgc+8g3f8aCWHswd2akD89c0ceaPWEb/lw6AU526K3EruFeh6hCrEcT2Par1wTMDlSH0bjC9INF/GUNr2yNfx7xvRxrmRX6wcJ4hO+gcLqOtyi88hPQsgu763XDb6OB4RygMRn7Jw3BvzNWAivtXcn4pFb3gkCKDYqXz+LCzhK8d9ockAALWpC/nl0zeCMSlLScNXYHH+HKNIFaHFBhA09SzOwkdArwB9y+Kdxnyu3SqriYaBT90t/FfU1YU0nrGUCplzrWDH86gT4ppK55Lclwmm3tOqsAtF9QinXmZ9yMExRmrF15gRqHwVwpB8ts+AV6+H2NkAo+ DVcTv4/9 d/r6iiEPTNxuFd9BSpawY6cyVhsS2apqY5Mqo8d0CIzxzboVg4flg0VgQKOkHssx1K2hWx5+jCO6d8Wr4SCL+izbRyHoPC5OGiqJMPX/WG7S1v+y4fvgooOBdebqcquC9/8tBmBHHJGg1bNKTurmFc2j4dlQ5krJsUcZrwT15rnGBe/+RN0jQODro5XshbIgcn/wY6jin1pQOq2tDtz32jH0brnfaMwL1LIBNDGrUH0xWmO8O/WszvshRm11LerxZ8vj+bNr5siCrOAcslZTLk30pUP/sud0PPgj7 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: The test depends on registration of DAMON_OPS_PADDR. It would be registered only when CONFIG_DAMON_PADDR is set. DAMON core kunit tests do fake ops registration for such case. However, the functions for such fake ops registration is not available to DAMON debugfs interface. Just skip the test in the case. Fixes: 999b9467974f ("mm/damon/dbgfs-test: fix is_target_id() change") Signed-off-by: SeongJae Park --- mm/damon/dbgfs-test.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/damon/dbgfs-test.h b/mm/damon/dbgfs-test.h index 9bd5dca5d4ad..d2ecfcc8db86 100644 --- a/mm/damon/dbgfs-test.h +++ b/mm/damon/dbgfs-test.h @@ -116,6 +116,11 @@ static void damon_dbgfs_test_set_init_regions(struct kunit *test) int i, rc; char buf[256]; + if (!damon_is_registered_ops(DAMON_OPS_PADDR)) { + damon_destroy_ctx(ctx); + kunit_skip(test, "PADDR not registered"); + } + damon_select_ops(ctx, DAMON_OPS_PADDR); dbgfs_set_targets(ctx, 3, NULL); From patchwork Tue Aug 27 03:03:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778788 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 E8AF3C5321D for ; Tue, 27 Aug 2024 03:04:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 388F86B0098; Mon, 26 Aug 2024 23:03:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 33A2C6B0099; Mon, 26 Aug 2024 23:03:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1FFE06B009A; Mon, 26 Aug 2024 23:03:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id F18306B0098 for ; Mon, 26 Aug 2024 23:03:57 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A6662A1585 for ; Tue, 27 Aug 2024 03:03:57 +0000 (UTC) X-FDA: 82496530914.10.9BF7F3C Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf25.hostedemail.com (Postfix) with ESMTP id 5497AA0010 for ; Tue, 27 Aug 2024 03:03:54 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=IczrbT6R; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@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:in-reply-to:references:references:dkim-signature; bh=oeHVhJ1EwVImZBWJIsUOR1OVXRcxDKqMJgCLcnKyJjc=; b=USVHrEYdeH3yLbq9oI1DfCYpwt8phSixp8IgJbSEKG50ZFebz3it6bLeHRfQTjOI5C/gEk etmkwoiHWuEt3gy4XZu4A6BO/6O33/+W9QjlVy1+TjCCXef7Nkd5A6b2SclTj3NNsRomVk jyfKJ11QfkO2phIg7Y9nKlESs9Jx4Ew= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727739; a=rsa-sha256; cv=none; b=F0tmE5uil/jE9kuD7WPequjXXx7ns1yCV4GT9J15sUYDXc77jQ69mTfrHA++LKLkRe1zaF IyyM2lTjGr9zmD+tubq+IPrdVQbMPIKNpboEwf338JOkcqwGAWOZ4C+rSuxHT/zSTv1RDh PhuZNC+WlMWPHP0KtLOy/ANhWw0xUd8= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=IczrbT6R; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf25.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 0DE77CE0FEB; Tue, 27 Aug 2024 03:03:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EC5BC8B7A6; Tue, 27 Aug 2024 03:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727831; bh=JEhQGi/c3/4g839WuUytPNlve2LqyXNGTGf1ZogtfsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IczrbT6R+LHP3ZBa3JKJtLLiR6WHgbj/C9Dboh6+GCb+92z9+N24+xktUiYK6dYqi 25HkOqFpJRytB/Apso5kbvD3+Lv1RuFa/jXhFTg7ezFuIl6OJyW8RCUB2VDncsmIq+ UPArIf1ELVzUZo31/xUklNdSlYz4Yi1XVT6wU83ASR+T/fiiDMntcItT9CeZotzia0 h0FQaXZq02txTzXKE1V5lA0nN0pZkTIp2o99e6ZMMex/oG+S2iHjMc7bIcXSYoJtdQ kB6YyrTdtUCUB9SlI0c+PTFKumZSx+n0ZPkm2SuBNdnFP2cM2xH83hJZ0HV3NIcCxR T+4iHExScOahw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , 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 8/9] mm/damon: move kunit tests to tests/ subdirectory with _kunit suffix Date: Mon, 26 Aug 2024 20:03:35 -0700 Message-Id: <20240827030336.7930-9-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5497AA0010 X-Stat-Signature: xxsqgzi1g7o63nu888jwicrd9rkukpyi X-Rspam-User: X-HE-Tag: 1724727834-699810 X-HE-Meta: U2FsdGVkX1/OjbeYDLw/ni32Q0c7DnaV3M+2d2Hq7gja3bPiQ7pDQ/G5ay0FFZho5/UDtIPbRToZKvMdUGLlgi3Gew/TwU0OUYv6cE18RBBSxM3i/tR52HTRooQqYOYRuYsVUn/7YyCJQuXfEmU0N7mq1rWgwPrwATQ73OkOo+PBj6YcxM8l7r17hRSyqSW02gx7cnv3PkzJNUyW5iixLEqJ6fZtUK05VD6B2fciCI7te1mZiy87vVgAVao9wMFdg2LeKd+VbdKuXiyqbsRw00RScQN3SERKivfvEL/9ZtNAHZo2vFrSEokNJFVUrptONpW6ilqguOj1gz12aiFKpL9BrQzEjaYzXPe9XQk+HpWlfgLacIAsUEy6sd+rAvAdudzjp3kkvxW/LDSC/a53QpVuxoFdwpP4kMiWMrnaP72+HPGZwU8xrOwuvaEjW3xJ0SRcj72mOPXprJxiKQJJ0B9X1Cd5ZNTK2mifi2bnJh8i0KWdidELQVyY6oW/T3OABh1DdG9lk1kSl/VYUtO/wdC7SirieJj94Kg0kfnJ8WcRP3Qod+9TfZAEpy9vwcYWUx7S4xJnQbm4W1r8xRtshK1EqPLWC8Oj5t/lHP64A1QaRpcdt5avFIID91PYmyrvO0xzjw5ub8zLRoxEbVOlRm1cc05xqOH2Sep2SEgt1TPoqxhosIlSpljNj0C9FEnfDF+T+TWROohPp8QF9TJ88ckzWepcHC16dcOFitBg3Pv6gtl8YVzhHusPQrTUQKPIn3sB6jeK3hpsDVHErW1KeMlmhZywgPzWUxNM+MSOdx8CtYvboNpbV0BIfdbe95yRgc+XcZPPGsA1D5JF0q5Hhq2uC/9aJcshovpqe83c2wSYXST9+AN/DnBBoi10TQWuBx/YhmQE6rBPJrJKVP4fbeaHsRX89NnbBI/HWl2iOzFJFjH3ZxQH6tPR9/gRkSydyGA32l3XGetlamgINU1 B6CyU1G3 +RqypnwH94Ngb1NKuipRep1SetE5U4qFXMmfCDGkmJ38G4f7oNh2SoObZ+9ddC3X5WzT7jeUpo3VQMf0I242JSm0ijMErMoQdq3z5yuMnwZD+rdKudQ0/tqd9b7h+cFduJmPjw3SD1afTF9+tRZF2KUUr+aZZbQ3UuJwxA1nV43CW1+LWbaNRnNsP0fDx0Us7qLqO+orIHfSUC4Ve1iOIIvsXCcOgR1tvwMqXsmLC8Fawqs39xVsBg3C8QwlG3f7otW+Y1Be+DXIC0sT5WJGgclX3B4F1bsGWQZS2wAdMH+K2xRR1lTysx1hkkg== 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: There was a discussion about better places for kunit test code[1] and test file name suffix[2]. Folowwing the conclusion, move kunit tests for DAMON to mm/damon/tests/ subdirectory and rename those. [1] https://lore.kernel.org/CABVgOS=pUdWb6NDHszuwb1HYws4a1-b1UmN=i8U_ED7HbDT0mg@mail.gmail.com [2] https://lore.kernel.org/CABVgOSmKwPq7JEpHfS6sbOwsR0B-DBDk_JP-ZD9s9ZizvpUjbQ@mail.gmail.com Signed-off-by: SeongJae Park --- mm/damon/core.c | 2 +- mm/damon/dbgfs.c | 2 +- mm/damon/sysfs.c | 2 +- mm/damon/{core-test.h => tests/core-kunit.h} | 0 mm/damon/{dbgfs-test.h => tests/dbgfs-kunit.h} | 0 mm/damon/{sysfs-test.h => tests/sysfs-kunit.h} | 0 mm/damon/{vaddr-test.h => tests/vaddr-kunit.h} | 0 mm/damon/vaddr.c | 2 +- 8 files changed, 4 insertions(+), 4 deletions(-) rename mm/damon/{core-test.h => tests/core-kunit.h} (100%) rename mm/damon/{dbgfs-test.h => tests/dbgfs-kunit.h} (100%) rename mm/damon/{sysfs-test.h => tests/sysfs-kunit.h} (100%) rename mm/damon/{vaddr-test.h => tests/vaddr-kunit.h} (100%) diff --git a/mm/damon/core.c b/mm/damon/core.c index a1c32becfc73..1d2c4daef157 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -2275,4 +2275,4 @@ static int __init damon_init(void) subsys_initcall(damon_init); -#include "core-test.h" +#include "tests/core-kunit.h" diff --git a/mm/damon/dbgfs.c b/mm/damon/dbgfs.c index 51a6f1cac385..b4213bc47e44 100644 --- a/mm/damon/dbgfs.c +++ b/mm/damon/dbgfs.c @@ -1145,4 +1145,4 @@ static int __init damon_dbgfs_init(void) module_init(damon_dbgfs_init); -#include "dbgfs-test.h" +#include "tests/dbgfs-kunit.h" diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c index ecf0835e34b8..4daac92be30b 100644 --- a/mm/damon/sysfs.c +++ b/mm/damon/sysfs.c @@ -1908,4 +1908,4 @@ static int __init damon_sysfs_init(void) } subsys_initcall(damon_sysfs_init); -#include "sysfs-test.h" +#include "tests/sysfs-kunit.h" diff --git a/mm/damon/core-test.h b/mm/damon/tests/core-kunit.h similarity index 100% rename from mm/damon/core-test.h rename to mm/damon/tests/core-kunit.h diff --git a/mm/damon/dbgfs-test.h b/mm/damon/tests/dbgfs-kunit.h similarity index 100% rename from mm/damon/dbgfs-test.h rename to mm/damon/tests/dbgfs-kunit.h diff --git a/mm/damon/sysfs-test.h b/mm/damon/tests/sysfs-kunit.h similarity index 100% rename from mm/damon/sysfs-test.h rename to mm/damon/tests/sysfs-kunit.h diff --git a/mm/damon/vaddr-test.h b/mm/damon/tests/vaddr-kunit.h similarity index 100% rename from mm/damon/vaddr-test.h rename to mm/damon/tests/vaddr-kunit.h diff --git a/mm/damon/vaddr.c b/mm/damon/vaddr.c index 58829baf8b5d..b0e8b361891d 100644 --- a/mm/damon/vaddr.c +++ b/mm/damon/vaddr.c @@ -730,4 +730,4 @@ static int __init damon_va_initcall(void) subsys_initcall(damon_va_initcall); -#include "vaddr-test.h" +#include "tests/vaddr-kunit.h" From patchwork Tue Aug 27 03:03:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13778787 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 DBB25C5472D for ; Tue, 27 Aug 2024 03:04:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5F8716B0092; Mon, 26 Aug 2024 23:03:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5A86D6B0096; Mon, 26 Aug 2024 23:03:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 497116B0098; Mon, 26 Aug 2024 23:03:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 248CB6B0092 for ; Mon, 26 Aug 2024 23:03:55 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D11D8A1575 for ; Tue, 27 Aug 2024 03:03:54 +0000 (UTC) X-FDA: 82496530788.09.C515807 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf26.hostedemail.com (Postfix) with ESMTP id 38E8514001B for ; Tue, 27 Aug 2024 03:03:53 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sMu+YKfg; spf=pass (imf26.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 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=1724727718; 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:in-reply-to:references:references:dkim-signature; bh=CKcESIOf7jsrMnZxzyCRyv6BY6RaIRLOdNbQ04p9IQs=; b=2NvNZL5CxCYF4q6Zwqvp4pA5pH7XMhQvs+CfwSB0yGS+TyD9QwHha4JAL4u9/raK+F0kvO fbIle+C8BQX75FJhIqRflqz/79CEwFj8TfiknJaPamE6tkQTswZfaqVJO5vrizD8xJWo5q 2mrCLA1DUX3myfffLD9bVqsgMwACgPU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=sMu+YKfg; spf=pass (imf26.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724727718; a=rsa-sha256; cv=none; b=o94WJr2zUMXBdqHGwly3yda4PWYZivfMoOcCAc7E/X7mvpnN9YxprHI7V8E5mHTXcRJ/oH g+IwXuaUKObRZZHHMHPuz49DjO8pqHNJxJ6PdRPzXfeqhP1pyWHx+VB6F/Jral1zxPlkJF TiyqpqKt6JbQp0DRU18QAaScitmVuzc= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id B1698A414B7; Tue, 27 Aug 2024 03:03:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D19B5C8B7A1; Tue, 27 Aug 2024 03:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724727832; bh=ZaGVTXIiI8PW6Ml6OfO+1JWaxqCvOdy/W/r1hHy96T4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sMu+YKfg4RqNEUEeEU1xo7yEGptZoWTq6zET4EtB7FTt76Ox0VabnKIEZx4VWJQvK Hg4mBubK6R/gHCjai+on24wQaH3xRu8CfHOzZVKTxLRUoW+FIMy4lJH8ND2jur9o6F o6UyON1x+rNlZ9GpowuGLSUWbCkrhIIBBKTnVVPLwmGgxnj3bqA+bjFuCO4vP2PRTY jyhZMiQHzkKvlEEsJXZ5b8U/7nqGmREL3CLIzxJXLYsOIQjLmwNbR8JSsPuO+1GeKw vnvF/tBu2RAi3vQjnWlXlIVAxPEwQLXJu04BEngDYwYpnRPMwuUTyz3jVXgge61NWo CSsXW6sEug/1Q== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , 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 9/9] mm/damon/tests: add .kunitconfig file for DAMON kunit tests Date: Mon, 26 Aug 2024 20:03:36 -0700 Message-Id: <20240827030336.7930-10-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240827030336.7930-1-sj@kernel.org> References: <20240827030336.7930-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 38E8514001B X-Stat-Signature: gs6uyptjc9m8a3r84kmcgd6am88jop37 X-Rspam-User: X-HE-Tag: 1724727833-129576 X-HE-Meta: U2FsdGVkX1+VN6DsrlnaGSj1+y02sZMta6YaZwIG/UbHJBHaLk4TZIppGvVn3Cecj3wBuJnOGgLuNOzJzXOnKa6a/gZeS2h2Bdfv7gElm1YkOOSneye84gwCtWZznwm5GQKkaDpHv2CZZ5yR2F/VCr9QWea8u1QYY3El2Mf573t5yzBHxuJihrrVJhDo36n0ow1PMEjAzb5Pz/ctCTnQCgUeqef3erwX8HMLMGTqZsF4nVrPrGA69I7GUzs+gf2H9OhRBOIyUEXV7TZmOJGjOR8L+5/VtnXUqItV5yazjeMPF7/qFfBulh2lTiht3624wuZuZMoKUXkB7N9aVcjXRzLE4/RBeRNrVmE3iAzifUu477xSyVJXojxEqwqyPXzm2zfeC6h0/ro7QbUA18xLTrpi9+5coQVJlUM4cg/c3GsW3MueW6DtIJfj/7RfdSwmhXqbqOCsDTLrP9kCv4PUAtne45A4WnUrRCJlcafXdZWi8AkHCfEWLm3RyYDjYndDNPgn6leNPMRFxt93MwufHXqKg0rr47i3blna4OUQBhgEmUYI1OFRJixvhCp/OQ+ouVwgLtxPc3L68jc8EosBTdUm7rIk7At9qDDw2czkEkcCAcydwB1CuhTlso89+SG7rT0q3Ww0rRf4QIYt+jSSAkrcnclpUvo42Q9fdT8NIEROeh0pk2JkAiEprzNZCTlEC3B2WrYTa+I0WLaKs+EbU1N3Cg8abpc4QHz+X1Wu24DFrfPq9HNkaJVP0SHMeBFlv9SHEE6s16RGP3yxue7yw6UTTv54VCf3hfQEJR05PLMonBHVWOfanHRTH/AuZswQ0YT42Iqe3S3GwPf2S7GZlSG6OnDwv/V4guoQWs8Toy96NkgNzYhI914yUVy3auO5N7dK+xZiKAertuIyzOQuphBT5mmYLIVktku/9o/ziJ1hxRZ8Tce2Fnvaw+/Jd18bQvsO34IzzUrP0r11Cq6 ezGbcoq8 6aqf5/szugKAE7LHaqmZg7DBu21ZBfpznO4NeSFsmjNhRsL2emhZrNN6UkKplBULq/Z6F3T9RHBvZERKOkTO5wo0SFoqkG5UfzdincjZxtsOjsqVNV/84+/niW4MrM/AANTC6z3/C4foJyQVdbCku26uD7riGAE4gu1iITdkmMRUyVZsZ73UUONA5bZzm6+XDSLZOFfiN3IojCubtlAiLp4NyaDF/g5d5u/jT+v1yETadILM8xXkGtVoaaA== 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: '--kunitconfig' option of 'kunit.py run' supports '.kunitconfig' file name convention. Add the file for DAMON kunit tests for more convenient kunit run. Signed-off-by: SeongJae Park --- mm/damon/tests/.kunitconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mm/damon/tests/.kunitconfig diff --git a/mm/damon/tests/.kunitconfig b/mm/damon/tests/.kunitconfig new file mode 100644 index 000000000000..a73be044fc9b --- /dev/null +++ b/mm/damon/tests/.kunitconfig @@ -0,0 +1,22 @@ +# for DAMON core +CONFIG_KUNIT=y +CONFIG_DAMON=y +CONFIG_DAMON_KUNIT_TEST=y + +# for DAMON vaddr ops +CONFIG_MMU=y +CONFIG_PAGE_IDLE_FLAG=y +CONFIG_DAMON_VADDR=y +CONFIG_DAMON_VADDR_KUNIT_TEST=y + +# for DAMON sysfs interface +CONFIG_SYSFS=y +CONFIG_DAMON_SYSFS=y +CONFIG_DAMON_SYSFS_KUNIT_TEST=y + +# for DAMON debugfs interface +CONFIG_DEBUG_FS=y +CONFIG_DAMON_PADDR=y +CONFIG_DAMON_DBGFS_DEPRECATED=y +CONFIG_DAMON_DBGFS=y +CONFIG_DAMON_DBGFS_KUNIT_TEST=y