Message ID | 20240827030336.7930-8-sj@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 <linux-mm@archiver.kernel.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Brendan Higgins <brendanhiggins@google.com>, David Gow <davidgow@google.com>, 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 Content-Transfer-Encoding: 8bit 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
misc fixups for DAMON {self,kunit} tests
|
expand
|
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);
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 <sj@kernel.org> --- mm/damon/dbgfs-test.h | 5 +++++ 1 file changed, 5 insertions(+)