Message ID | 20241209095019.1732120-14-kevin.brodsky@arm.com (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 02FB2E7717D for <linux-mm@archiver.kernel.org>; Mon, 9 Dec 2024 09:51:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0D8BA8D0047; Mon, 9 Dec 2024 04:51:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 05FB58D0029; Mon, 9 Dec 2024 04:51:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E1AA88D0047; Mon, 9 Dec 2024 04:51:11 -0500 (EST) 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 B8E8A8D0029 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 04:51:11 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 79D7080272 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:51:11 +0000 (UTC) X-FDA: 82874951124.09.0C76E11 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf03.hostedemail.com (Postfix) with ESMTP id 9868820007 for <linux-mm@kvack.org>; Mon, 9 Dec 2024 09:51:00 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf03.hostedemail.com: domain of kevin.brodsky@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=kevin.brodsky@arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733737860; 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; bh=aTWnazt0/O9pDr4pXHBQkROoNxwn7uetSj8bv0zJ0Pc=; b=09t6agozS5aEek3Smtc876dVQWPOkCcec+SvDPTmuChhkJh6Yc4KEJLuP/y4Lw9bz8hIvP 5EdUZstHGA5Nrk92/opaMGrXlX/n0B4Xk6K+SrfveIymAyAMzAcEx19CpNOLaBf6Tv5SLX KF2915TdIdU9K0EQQB6g5c/YtQ75wQI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733737860; a=rsa-sha256; cv=none; b=5s4pu08tedd7TqgTL2O5La++4Ufvy3wdWXqyu8gyWx70IX7laCkgHPuqDfVTPkdl1mDvCu N+5AYIt8OAiuUXKmFMdsO19sLV4bxnXrukIvM82+sU6Sn/1kS1lHFand2/c3tD/+7vSOG+ y2EVzUxhINW+CsS/FSk0CYE6eW4JbV8= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=arm.com; spf=pass (imf03.hostedemail.com: domain of kevin.brodsky@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=kevin.brodsky@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3F262113E; Mon, 9 Dec 2024 01:51:37 -0800 (PST) Received: from e123572-lin.arm.com (e123572-lin.cambridge.arm.com [10.1.194.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 358DC3F720; Mon, 9 Dec 2024 01:51:07 -0800 (PST) From: Kevin Brodsky <kevin.brodsky@arm.com> To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Kevin Brodsky <kevin.brodsky@arm.com>, akpm@linux-foundation.org, aruna.ramakrishna@oracle.com, catalin.marinas@arm.com, dave.hansen@linux.intel.com, joey.gouly@arm.com, keith.lucas@oracle.com, ryan.roberts@arm.com, shuah@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, x86@kernel.org Subject: [PATCH 13/14] selftests/mm: Skip pkey_sighandler_tests if support is missing Date: Mon, 9 Dec 2024 09:50:18 +0000 Message-ID: <20241209095019.1732120-14-kevin.brodsky@arm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241209095019.1732120-1-kevin.brodsky@arm.com> References: <20241209095019.1732120-1-kevin.brodsky@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: 756oiiq3yfbm3q1n74k68nf1gkoiw3h9 X-Rspamd-Queue-Id: 9868820007 X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1733737860-386837 X-HE-Meta: U2FsdGVkX1/vQy+DiGke+Am2MV0iL3xCnLsvF4Hvptqx0UdHnbEnrvV3GlYnBax1BoR9XCln9LXO4JKmKfjCT4l3eh/M+GciH/huisk65FzS3r6MFHrg6NbMv1EiYQ7PMtIGCoyNMxpTCde/fBfp5XUo5TsvCp8KusS2fZWqEe34aaF2wRtdFKfNAsuFg6KGS9tTLZMsl8160JEYQaOXglaCkN6UKfuxAbB+Lz8lK6geLISfe2eIeBFP/bzAyin5gYmNXlDk85+8EMbn+MrbTjYVmfI/acqbN7/nkI32uIZzt1IKI56OWFFV2mhs3UXHfYJYNfhDwAZ8ZlSqqVs/APFc91r8u5qUlUvJAyUlOl+h4ArfX9xjegJcSEA/wyYNn9SpxAaKQLf/z6bzN9FlA5C+vG7pwGazUkd9jkKOvKbbMb8Oejx9JtXpsKFoHK1tg4WJAGb0pdUMCwuORtFcVZ9iIYE19cCXf1v/l4mY0ufUpBi8Kj+9dFGuys+fgLtUKnN4cFy59NzhmvrJ+KqAXv7E7vAyClTuAnlewvgJe/dFduMjK23j97tOZqfqaIaaBWbTLYj4p3K8ooAc1i09O/5L0yYJqXujvi11HZrPBrAlhOdZ1twkykNX7O2inj2j3DcNwZhlajnC8c7XJ+M80OrjrOG8Rbzr3uCQ3MbsEeiLCDJFXTx8myHj6Zg3NN44E0GXRlXlJocVeiXzU8Ye+pwFqGQbPTjHHPXg9mxxCZmEQJeg+RxVQdJdya0zYNHeViE2JrCeR9Pa0QnFsHVxjEhhvEo13Ius9x6UZejrsBTJwhx8DdRR6SzRiAocOoKMyAn5239qG+rv0+dWQPBgbrZrloJOzT3Mvkd1EHWtnXYItMK3vn3LUTbDqS0tSXzEP55XVKpv/KpWl3HlAFif+yL8xqJAFQ3HVY6nlp6m4TjYQQ4XYOAyagI5qYRNFF9wZ+LiHO8jAyk9Qb+nI/p D8o7XGzm FIbS75cWEb3zTcCaktOz6ka7UijE5H7obuOPhsrOBcyyalClHt3Uzw1NbG7eqdyt7BMZcAPl1ENAGpdjS4q20lYHAuI51LlxLGlG22cD59qiUa/ldEocto8h4wB+Vknc40mxEcU88MA3kmSYsv5vCrjpUCmsV7LR126GmtWdolF4ktWTiCS6Cf+GzWSSsk4jqNMAETZ6q8Nm1nro/fadseRkItrTB8z4Co8zebdsxfoYKs9ihDgU63dAv9wgTXCUdVEwjnm+G9k7WFJgVzz/ehkKzp4LR8JlqP1ezN5UDEY5z5kYmK4n36EjIbNqY4yeCvWAF 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 |
pkeys kselftests improvements
|
expand
|
diff --git a/tools/testing/selftests/mm/pkey_sighandler_tests.c b/tools/testing/selftests/mm/pkey_sighandler_tests.c index c73cee192b88..449ec5acec75 100644 --- a/tools/testing/selftests/mm/pkey_sighandler_tests.c +++ b/tools/testing/selftests/mm/pkey_sighandler_tests.c @@ -535,6 +535,9 @@ int main(int argc, char *argv[]) ksft_print_header(); ksft_set_plan(ARRAY_SIZE(pkey_tests)); + if (!is_pkeys_supported()) + ksft_exit_skip("pkeys not supported\n"); + for (i = 0; i < ARRAY_SIZE(pkey_tests); i++) (*pkey_tests[i])();
The pkey_sighandler_tests are bound to fail if either the kernel or CPU doesn't support pkeys. Skip the tests if pkeys support is missing. Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com> --- tools/testing/selftests/mm/pkey_sighandler_tests.c | 3 +++ 1 file changed, 3 insertions(+)