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: 822926 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50FC2175AB; Tue, 27 Aug 2024 03:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727827; cv=none; b=S8VpXKHJIqNKseYzQ2U5e0VcLlJ6C0dHkGD4n2WH29GSkV02MSyuYRNUDx/vJzj1oFtYpGdenhZRudgj9RAJXg/aLwkCtety9XAvtGT3GXN3reGE3EyE6Q63niX89apTpa4tzM5bMtIQHsxly51Dj4rFG+A1fXRjf24W9OTqKq4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727827; c=relaxed/simple; bh=u2NvqBkkbAzeQS7kbk6mVRAqMmq/sCoTqOpDlC8ObH4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CijCp6gYkeISpWn6sU78eGNVuW3bBYFcbF+jr4S4V6Kipey4VZljk/AoVxAeT+lSS4ftEciz3lKvPc5cUdcbo6ii8eLWHopaGcv1gjWBnLXMJnLeiNtJwSyfO80GC7p11FNBDgab8MmmGOHPv4p4hpt6hevmW8wPZvlRXRUN+c4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OY6a8RPd; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OY6a8RPd" 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: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: 822925 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE0163A27E; Tue, 27 Aug 2024 03:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727828; cv=none; b=hfmhQM0vcAKddt1pqU0ekrr8A9wo8L60xPmD6eaPBR8429fXvCtF6whvUwJeDO3t22moV9vih0AZQvrhBeKpV7xOfU73TApjGv3KgxB83D+ruLm3H0eyi+yU3e4T+lGPcRGfJez89AnUziYqIA9tBnMl593C1nN8HMCMW+NHnBo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727828; c=relaxed/simple; bh=UIcEtsuF2oQygozWT/Xm716/UFpvZjJFMlGL0LY1swc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aA0azyFWE4phxBZc+lx0BzcdhTb9ZsGRR89ogveo6rbpk92TvgN26b/oJGwqffLTgKo9boyjW35Z45v1SP3IHqDqpsiNSlkwpWpQCLy71V6LdAf0+shlgrtHBA+n9H1Im6+FesGFn4Mm+DHzo+x/Md/AptjGMmZdrW8SAte1WCY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vN3BAgGR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vN3BAgGR" 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: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: 822924 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29BE877113; Tue, 27 Aug 2024 03:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727830; cv=none; b=VKzF1lTe2JE6gZd4M7o1oCdXcsqw2b8tIrWRMFCjXDqUKL8hJ12aZ/LyVXa0P3jknumjYFUXBKdDW/hVLVjxQAw5h17OM9gBdX/QDXKicWUzvP0lqaQM0jMU6kc7JFvVPaSvBaq6vkwB1TcXrX0XmU5S0uPow+NJNcrf/4do9X8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727830; c=relaxed/simple; bh=UByfltsl+0NKbRlC3XW64geq3UiMNgzqDTzx3r/unzQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GYVj0QAN/bNaifg7xonDq+ERfVvZAD/Q3kvMrWEBTiwoYTueDLrm03F77dP3B0RYytboeQjETEImjy+iYp6D/3SDM0kBf8sOZuMvYELwXi3KeAxwkGG/vPNBHWkMX9W/EPOAqRsIzC6RSDxJVGdp1Y/l/BgGBF1J1bMvLBa97dU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oHRDIBRY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oHRDIBRY" 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: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: 822923 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0241613DB99; Tue, 27 Aug 2024 03:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727832; cv=none; b=p3LYoDrZSQgngfVGpi8i4L2D9CgVxIp0L4GNcTRw54HJyIkIGhlXja5L5e74dJ3j3Rq0xNsctc7X6TZkzbgiaS2t+KRuXavd4uSydigRu3sSZvwqs8Z5NaHgvKf7yVjnvbLDAvnrSAEBKvlxjKwzfFBAxS3f6jux/lwyw7GQELI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724727832; c=relaxed/simple; bh=JEhQGi/c3/4g839WuUytPNlve2LqyXNGTGf1ZogtfsQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=h0+MFILNSQb1zZnlEoRmQvq6+EH1jq3ADW4zmpZ5AqS+4GF3cj7XWANI5Fl2AygYdVlzgKQCmVgOC6eL0a6g8mSSxkDCdfuNj4IKELXSlV1VQiIrHHgUOhXlQN6l85j0stCcyIVAUnV7I3JvdKd3rgEIhQE4EHIE/g8jEBAA8Wk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IczrbT6R; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IczrbT6R" 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> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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"