Message ID | 20240207203134.69976-9-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 00C93C4828D for <linux-mm@archiver.kernel.org>; Wed, 7 Feb 2024 20:31:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1E4CB6B0082; Wed, 7 Feb 2024 15:31:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 195456B0085; Wed, 7 Feb 2024 15:31:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F28736B0087; Wed, 7 Feb 2024 15:31:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D1B2D6B0082 for <linux-mm@kvack.org>; Wed, 7 Feb 2024 15:31:49 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A9D70C05B2 for <linux-mm@kvack.org>; Wed, 7 Feb 2024 20:31:49 +0000 (UTC) X-FDA: 81766153938.12.29DDD2F Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id 06A2218001B for <linux-mm@kvack.org>; Wed, 7 Feb 2024 20:31:47 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bZjKuePx; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf24.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1707337908; 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=fX7x7KF5C9VADl9D4i1WzsxN5l8ADYMGFpSB6bu2YWE=; b=0DFD2NDOYAPcrCaMB/ApzAabNdZN9GvhZtA8ySkMxUByaRZ7wDZoLC/QEfXQLDvdFmWTP6 SJr/F2k+G0TPZWWEcO9iFjMmGwmOpDuRU10SKEG9pyoBByU2OJTGfJDxVWrKd79Zq/NgkX qJhyAMIED4B0RD2QbRaezQzYtwAfRYs= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=bZjKuePx; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf24.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707337908; a=rsa-sha256; cv=none; b=f3YGpoLb9o+NL+KJIxhvK4FByH0PiDW8R5wlfKaUj/JA+S1+qb+c/s3qWo1U4WSKqAAIDM A2V0L/A29sfeK3DO/8nVi3/QN8Uae0sEW0hC9bvsi9woUsv4WFtkHtQV+U0rGfdD3u3zbw KmJzvCOzkQo56bu0brERBVo6gemqRKs= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 34E9061A90; Wed, 7 Feb 2024 20:31:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BA0CC43142; Wed, 7 Feb 2024 20:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707337907; bh=bo48Sw4QueorxjSh+Ck9B6Mrnc7pi7WnA/Re94O6ZTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bZjKuePxNwzjVi/Qv2DXVeStIOUrZJHJYuqVTzb+TgaleSHCdDc57bdrDp2DxAX3q tRduOaVNfL1p6H56MRwykS5lAAwln08xpqJTJn8U1LGaVj6v8Db2XM9nwyrpve4Yu8 zMqsG+ifH1Z5Zo9j7NpyGkqJBhe1nZv2ZrGOSUQxJrqtNZYdBHNOIoDC4yEUOrdBDU TWkYBjx1+scE9tW43zJLFEApIyP2qJQRoBwtAzZMKV3eaqJHrkrFio8N8hlKJTpB4Y 2PAJKPUeIiNECiNtD0y1VJ5z3hBfdLm+eqHH24vbuI+smXyAFJaXUuwPzkLoORW1rb vBYeGFwVYMdZg== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Shuah Khan <shuah@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] selftests/damon/_chk_dependency: get debugfs mount point from /proc/mounts Date: Wed, 7 Feb 2024 12:31:34 -0800 Message-Id: <20240207203134.69976-9-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240207203134.69976-1-sj@kernel.org> References: <20240207203134.69976-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 06A2218001B X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: yzkesmkqpuisawd4onx7rqxj93g3sq1p X-HE-Tag: 1707337907-914534 X-HE-Meta: U2FsdGVkX19cGptjUXF/JxbkoD5rNDv3e76Oxlq9j3396O3fTeOQHgy8xfWWh4WLIBrtQMPvjbdcOQ+qzPbkF9XwwzN76DjycNNVynvrxZjYoxGpQw47LPd5h7U+SGqCX+7San17lg5HcUmJn9sIcU5J8wNg2W0bcNCRr2VpVIHSiPd6KTpeJ3rLyf0UvMdFPiQT73wisw5V5xU54hG8esXFewfN3qCSDLQg97fUJTPfTqsucQvNdeaMiRhvet9AuCw84+lDZO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vack.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 |
selftests/damon: add more tests for core functionalities and corner cases
|
expand
|
diff --git a/tools/testing/selftests/damon/_chk_dependency.sh b/tools/testing/selftests/damon/_chk_dependency.sh index 350f8c2b071d..dda3a87dc00a 100644 --- a/tools/testing/selftests/damon/_chk_dependency.sh +++ b/tools/testing/selftests/damon/_chk_dependency.sh @@ -4,7 +4,14 @@ # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 -DBGFS=/sys/kernel/debug/damon +DBGFS=$(grep debugfs /proc/mounts --max-count 1 | awk '{print $2}') +if [ "$DBGFS" = "" ] +then + echo "debugfs not mounted" + exit $ksft_skip +fi + +DBGFS+="/damon" if [ $EUID -ne 0 ]; then
DAMON debugfs selftests dependency checker assumes debugfs would be mounted at /sys/kernel/debug. That would be ok for many cases, but some systems might mounted the file system on some different places. Parse the real mount point using /proc/mounts file. Signed-off-by: SeongJae Park <sj@kernel.org> --- tools/testing/selftests/damon/_chk_dependency.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)