From patchwork Mon Jan 6 16:55:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zi Yan X-Patchwork-Id: 13927687 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 BA896E77188 for ; Mon, 6 Jan 2025 16:59:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 407F66B00A3; Mon, 6 Jan 2025 11:59:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 391626B00A4; Mon, 6 Jan 2025 11:59:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1BCC96B00A5; Mon, 6 Jan 2025 11:59:00 -0500 (EST) 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 ED71C6B00A3 for ; Mon, 6 Jan 2025 11:58:59 -0500 (EST) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id ADA90120128 for ; Mon, 6 Jan 2025 16:58:59 +0000 (UTC) X-FDA: 82977636798.14.5EE48B0 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2062.outbound.protection.outlook.com [40.107.212.62]) by imf27.hostedemail.com (Postfix) with ESMTP id F28474000A for ; Mon, 6 Jan 2025 16:58:56 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=MTeK0kPC; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf27.hostedemail.com: domain of ziy@nvidia.com designates 40.107.212.62 as permitted sender) smtp.mailfrom=ziy@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736182737; a=rsa-sha256; cv=pass; b=dBX9A0JiU/k5iCqp0720aIpF0wJSV07fhrefNoxeJe8ukARvLXSvDdyOPOHnVqcwj1E5la ZULwrDeFXtdgaztZKS4lcNbstMvEFP7xf4eMKcw6NIOuxdGK9rttCWf9pLoUP1CpKX9A9Y bl8ii4CiLp0a3hbG5tUsPnIlqi3XjuE= ARC-Authentication-Results: i=2; imf27.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=MTeK0kPC; dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf27.hostedemail.com: domain of ziy@nvidia.com designates 40.107.212.62 as permitted sender) smtp.mailfrom=ziy@nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736182737; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=1lwTVNAVLwi1gyG41osM9o7VeGen/aJvxEZw1mntkp0=; b=vvkzZMLK9qI6pqcvidCgC48yqxCM52aKIwe440cALO6soU7Ofxsslu323Kb/9Pi+zhgfBs mm+dJXnXT0Zbt8GpGMYaCf6mCYduNa4C41Bjf88RdMrWjp5xFTDas7jJJ744+z/tbBb4Eq kD3Eg5EOqGl9znVIdkHocAhSZPllC8A= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tz7Eggjw7dRfMpnqqaJETgCRkmW/Lz71+CYsjNXSTCeYDpe2fBOa13bp1+tPD+8PaWCh5OJ11+Xj0F6HW908Bz3GB3tTHryd/1fu4FnRjdxNhoCNbslFQcx3WOwwESW3chf3gv6fnigF4iwel5c5IdTCsvVGHp2DiaanI/OCCAms0QgU4DxR6jQRoG6C0hXtRtGCzfnBbcYtiejmH/sfzrqiOcprccOT+kYCuMmRpfbWoSNhTguzHqeotEiolnEDP4Xy4tt4OXXjdHO7qHthwxDLFa66G/F1y8BTYskkBq28fbC4Hj8n/YJuKasZrTcoAQkGhPUUZ1g5yCCcWTW2Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1lwTVNAVLwi1gyG41osM9o7VeGen/aJvxEZw1mntkp0=; b=wyzG6EebpiBrG0/FhrtU5lKkGiyvigHGX88VM4B2L9we0/p3g74RK2UWud6RdwGaeQGBGqhebAoUuL+46zWOA4Y/9rwix/+IKirMFq/Pydz8l31/obRCkob+CHI5JeUeRiyniMcTUWDNjJetPwPrBOXUK9H+PcgBEEBETnZc8KmZhKPVLEZBKPuZlI+jUWb51E31I0qBsZKUAQv7QkIgR1N275YMFXgtVnbZiICRYw6peMNbRroOsZJ3aAkfcacPL4lGSSXnuxEOy3y7BtCvFA/ahTrNPbbouXptZbgfr7RePzo15qR3PweEeDDeqysrmRnxDyOGrapRzhqVGo2kgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1lwTVNAVLwi1gyG41osM9o7VeGen/aJvxEZw1mntkp0=; b=MTeK0kPCI4zh3PnL/Xsm1YdaDoC0oRusbM9NSoeGuDdsejxgziKBkllXr0ZRufVrcRjc7dQkKoPDxyb0/SRBMSXeD0kUJYpRsRGJ6XlYkpuB+taddnrgVF+hOzsdO4DWDvcBhar4TCwNM+0oIUAD5N0NAMPnfJAWPvJcCtJWUaJd3OvgfmUIWOkIgIF0rdT/3e07svby+aSQLIb/BwH46sGfZXZIJVJxo4JbUlhBp+MJmvMYd96NHo/lJAcEUuEgKJIy7pVcE1GWLLLE+pALhxmtK8T8SYYUmsZWbAR+gbug9drWRaa+JiElkW/OJP2Wza/WoO4TNGasHwYoz7oW8g== Received: from DS7PR12MB9473.namprd12.prod.outlook.com (2603:10b6:8:252::5) by PH7PR12MB6634.namprd12.prod.outlook.com (2603:10b6:510:211::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.17; Mon, 6 Jan 2025 16:55:22 +0000 Received: from DS7PR12MB9473.namprd12.prod.outlook.com ([fe80::5189:ecec:d84a:133a]) by DS7PR12MB9473.namprd12.prod.outlook.com ([fe80::5189:ecec:d84a:133a%3]) with mapi id 15.20.8314.018; Mon, 6 Jan 2025 16:55:22 +0000 From: Zi Yan To: linux-mm@kvack.org, "Kirill A . Shutemov" , "Matthew Wilcox (Oracle)" Cc: Ryan Roberts , Hugh Dickins , David Hildenbrand , Yang Shi , Miaohe Lin , Kefeng Wang , Yu Zhao , John Hubbard , linux-kernel@vger.kernel.org, Zi Yan Subject: [PATCH v4 01/10] selftests/mm: use selftests framework to print test result. Date: Mon, 6 Jan 2025 11:55:04 -0500 Message-ID: <20250106165513.104899-2-ziy@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250106165513.104899-1-ziy@nvidia.com> References: <20250106165513.104899-1-ziy@nvidia.com> X-ClientProxiedBy: BL1PR13CA0245.namprd13.prod.outlook.com (2603:10b6:208:2ba::10) To DS7PR12MB9473.namprd12.prod.outlook.com (2603:10b6:8:252::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR12MB9473:EE_|PH7PR12MB6634:EE_ X-MS-Office365-Filtering-Correlation-Id: 74115550-ac52-4f1c-ba26-08dd2e72e8da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|1800799024; X-Microsoft-Antispam-Message-Info: Wp+Kwxwvi5ktsVdC+N15VHEsUhLxyGIrPYK2hN44mO8t3BmEsBvn3PZL3tNE/0ysIPNzHFQMIne9ezX8nGDWT+C9nDkzOraUtEUwENqAJnN/DejYCZhP8xUVw0C494K+Uc08x43RCB2sx/mwf7Ol5YIbdGYvloShAQfarcCbkRATFBJJ6VcrkjXmjHK7ursF+yIeiJLvOh/UXk5DdglUp/nN28LzaYoez0jucTFxsjoiGn0EzOdoQGj8bKVFV94sEJnRYEVgN70FyZapQxdw5ncFcy/6pHMDGhyRxA+VKCCjAqYlR3DPZln+vOYG+AJVE2wiK1uE6BkS4cmsmPwqFJVQDyqA3Leic99p8PSUmwnNHYYjxlb832EB/9TOu29acnGYqaFw0yLlgusxoHvdwXAET1nDySQGX5tjMw7NLAV+g+69rg8toH6amqYT9pkA2HmkOpgN9jZ/XRupdrwpgn3Lv3e+aOzvIG+hMktTBQDSgKX9mEaF3TK4f4q+EJEGKi0++i/2Ey8iOlG2GMBeq1E1YtlbkAR93PB8uN740Jpg33q33H6VRxXyOnZI9Hsrjp3ys+/2HbfSn848YM+hqntJpGV8s9iVlMK9CQzfPW7Q49OqSlCpXcDRNE3Rwt/3aCRqzhQ264urEtAIkHA98V16GXhUUBb4Ym8NV720m5G3oWFjqvDly90k/gJAtK538kfzBrKcAK3BUG/HGM2t+Se4i00l3ULTn2AgBcLynD/8WJXoWHMPqmqIFy+6h7+FGIxNGoisjfXP1DdnQT0AcZe39CfxDTZjyMNzHQ61pRbcSFRASad1wS3txFMqONz5Nt17ubNtnPK86o2/rwHf+vFMro4eVbl9wVYFDszs9htMQrvGswB7JZ+Z1OlDxE/vq9gTtha+JPU+2x28IoU9tFvch+s98XG/1jATZeDye43KgyN3JrXn6gDf3GSNTZEXpHVTQYxGjLOfKqT2efbxZ+ZCZwNJMjurd+9W9gYx8k+RN6pFb9v2Jaw4gBZS0lRdTzcZKH1SLoy0zMZhGqO5nEaoQr7BMNWL5usFKfagU3i4kKBU3/H5gMOboGqLcnxTezJDKSxUYTBMmLeUn4RyHwm+494A1cgnKAIWA6pKdrjA72H3FVj80vOXYSIsMeSXSIjXwuCRuA6WomM1957zFkB3GrZ4DAEhIYpG3QkkV89VEZiXEF4Ncty73ss80tfeEUCoofH3vwuCovUJhPIbXfgvhxcEYOwmSwuRTRAq1gpqm5/rGrMH35dW/OvoMFSbvNxq5sTan3QsGx80Ma430mOJCLhUdsms/jqu6G/uhw6vZkCVivxiczcWrVpNGAl/4874ykJ3rFrJqZhUsIIN0OzvQDzGUJjQewVuOlQAqecm22CguzZO+8+6zPpemwTW X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR12MB9473.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r9vkFeThXIgGsobZmaCYqNehpq7V+iFcMibCWNtCciDQdX0ufuTp2uvVpOj6apJ8YXMb6Vy1vr62uu6+4cVFNUa4ZwVL0Jwm6VuMDrc+9fe7BDSBL3kZtNE2gBLRNM85/1/tKh0LCH3KuvQGDSwPgq3vBKsygSIQI+SOTQyyLNbNYfR/1hk/XOMuHpepi1nNotjC+QZtVtTmB+BXO2UNqcyOXmsNsoyp6RUto6hVD/v9HN9BFBFWleA2duYGZ9rddJdBnfZbScPCzQVrao/fuw3axZowpyNfBRBnTY7firKNvfvX9vtdadjvGtl1IAmvzXWg2fk2FyM6X9zfU5p6zdTrnmSP0l5T8iA3HZuBjUqH0sBcAo/GuiK71qrEF/w/ObbP9vzIJ/1AtY/GkAQCeI7WxQvgZ57Ejc2c5+KYDi7Sehy/KSrC8qppldO3AqleOeZl5awoKmR6LFzfad+NFzQFGuC6IeMzAJUBzDGYAGxthgQlSbfGh0R8zsnL6PyPc1ZphaNqgknEPEjVvfJGLyvVycRAxbLhyctYPN/BoZUT3avkVwT5dTDgnF1mfTf9+OvfJDUf7cvmNqkJyZVdeTdc8NIExtd1WJq/QrMGWtzW3+nDJuDUzxEXx6MIVEIGrWqObplx3ofze0ohiELrIu2nQa7WrP0CRJamfGEmZ+dciXGLpKmREK80l6RBmAhZPZ7mcssRDOj2T1BRd4X3zPu40kXFX7iPMYG0FksdBgJt44a9vjrLqc/E3/vUtIb6Z47SjOrM0Ut30hQ4H1MqVK0W3SmZeLfeNEXoj0WUu+J9rMSLvfy8NEKJrSc0nLz3MAshHyzoNpXr5Dxi4yFekNal5yaWMCxSW5h2b8SuwtxhSqPHi87NRUYQciZQKkTB+uIdl+xWg46CCPdMuEwbZLU0CKhwZYQU9DUKVHfNqOJFFsaT/tKJl0e7ndwfyewB2ksEYSRFKl7BgyeCKQ9pTtNQes92BzcteVaARqcScqJ84L/LCZ2YiYt7PBxYmQoTyS99BKTW4D0tPfCFLeWh2KbHudwcIJjN7A5i2oPO0KCJkpjHpHtKfbAHILJHPwT3EzpR/3ufFvjePOOUBUNzN9JC2+0Lun1R0D1U1N63i0CwSUQUtjRI/RSOr7iyjmxc9QPA9bk746eRV1ZWaMx18uibDTHqTJgWdwvOhFIEkc72ZD4lGb17D3IvtL9BYnnQGehN59167uNx/iZFltzplxlvvYezRcm5sR4hmRK3VFY85REPp+cm1O+ns8OE96v34khIvMtf+GqHJYQAHbEmVoiLpxDEMNma6kcTCATj6zFeSIiUnb32cQPcuaxM2J2ElIF/Z5knc4HlRLGIfMQYUvO1Tvki2Wg/Apkn7fod5/bsXslqW6XNg6pKaOl86OAk+kq1PpzlI+FialSwHfiH6eUwIuxuY8YILVhrkjI7pGlbNWZds70BSIXZh4iniN3rHwnRNyG+u84vBTZy6zq/D1vv1CKDdhi8JHwlu1kR7JNn/I5yk7tzuPpzIlYxjHnxXSQLSusPsfnks+pDKfTWvGaCxpXGQNFZwI4vG9FMSUygg3xKUrrm31pqOO+mA7X5 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74115550-ac52-4f1c-ba26-08dd2e72e8da X-MS-Exchange-CrossTenant-AuthSource: DS7PR12MB9473.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2025 16:55:22.5370 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qI61iye5HFqaF/pdkAwbRr3pTceMSg8AwKt5vegSPXcxaJnHgsayw7ykPbC9KVKJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6634 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: F28474000A X-Stat-Signature: bp576yqt7kojfu6q88833zazra8hq7jt X-Rspam-User: X-HE-Tag: 1736182736-152751 X-HE-Meta: U2FsdGVkX18CJoQqkAqaOG0Mi/hgTQSWpbGWdEYGnM40AzvGHaupiFeF7Y3k7oZ1ktjqTbosD2GzqSPRhMj1rE6zThq00QziOXMbsXVwIRQLzPCfLy60eq9NAHQpziNF+GWba+e0fLaRvbwvTFcz2a2mX0b2XIomeYr+PqR8Ix2gxfp7oEguQFYK845yUkdXcKZQV/uWjOF5U4OgV9zdO6I47PHsM7SuJmBYySe1VehXG9xKOOledy+esPH+lRx7a6D9I/Dueziv9+pb+FONFwsIOHavs6nek8I8JUSiHlwCyWK1PilbCdY6jQGw1T53dTdliXO96kEugGF/JD09Q2WQTOG9Yj1BshiiMUEgZuVLvEdtmOPH1LKw273Dc26a4FwYtMOK2I4SaakaBf7DqTGKtAZSo/GBIag4Tat4HLb/nTU1ifcFHHApMMzf+fLl9AmNL23Wb8sZUHGDeeWVQ6ugRYDD+N5w9P7bBSk901hsVahFefbRruhR90wIucXpaIdlIhnNeP1nW41stIOSEwXnIdG0Od7xZcKDGXDVVA2PaWqqr5L9EcFrvoFUiT3GB+IilS0UMsRiEDGoWtgitNAGr46GCIJ/esHrlXQQxCuwr/r3Vb46Q27cPzXxUe785v1NYVKsOXaQ7pSE/bZsbTnUlOY3jAYaCVeQdHiheUsYQGdyTbSPqLJQzG+/82Jq0idaoO8z7fxFOxx9TkcA9iT4TzvwiGZ6QA77nD2Ry+fQeqGim1W19MwuGITCoQE99v6Fhipgt8mCun8K58sFQ1xvYh917gqsoe78bI476GrB8XMCk7WRW7FR2bGhYxFoiv+UFPn9eh+83nADeDljmqfLqIknzH6MdAeDz6daPTFWbnMkZnIqJ9z/fAtaAoBH4wIIp3xkIAhzpYqfmkApAhwpEPTqIVnnW5sS6mrTUbRkmrHuHXOVGDe9JfsKXJPpVPjLieIBi/PJUDP4hpm Y7Dt5tAC 4PVx4cA0h2zfNXC/Y9N8/nCX2VY9rezOU2DXLGJ7ys4vU/X+BstVL8gFMCveBKitlMWYr2/rVuisB2/QLsrBlds0ptncsqxWyaVmYuqhsFu9/qwS7+hF+iN5J9dRZ8iaY2A36j0ebNhjLt2ggOiXh3L/zCAxISq84GJuRp+OJYDVquFMg9x78tg8rZtkFZpxqSUwhd27KcBmUfzWUm1EU41K5e2RF/C7HGiFLC+oUQBiY+VtIv6eZSoh0ZOti1ei6bF6oB8OPiN90YhKuFKU96flW1m3iFdw5EbeDvntURgulqzRHNSWkQfmIi0/sGt4nEyrlnmQfFO/WHtRyHMiW5K/wJA== 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: Otherwise the number of tests does not match the reality. Fixes: 391e86971161 ("mm: selftest to verify zero-filled pages are mapped to zeropage") Signed-off-by: Zi Yan --- .../selftests/mm/split_huge_page_test.c | 34 +++++++------------ 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/tools/testing/selftests/mm/split_huge_page_test.c b/tools/testing/selftests/mm/split_huge_page_test.c index eb6d1b9fc362..cd74ea9b1295 100644 --- a/tools/testing/selftests/mm/split_huge_page_test.c +++ b/tools/testing/selftests/mm/split_huge_page_test.c @@ -108,38 +108,28 @@ static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hp unsigned long rss_anon_before, rss_anon_after; size_t i; - if (!check_huge_anon(one_page, 4, pmd_pagesize)) { - printf("No THP is allocated\n"); - exit(EXIT_FAILURE); - } + if (!check_huge_anon(one_page, 4, pmd_pagesize)) + ksft_exit_fail_msg("No THP is allocated\n"); rss_anon_before = rss_anon(); - if (!rss_anon_before) { - printf("No RssAnon is allocated before split\n"); - exit(EXIT_FAILURE); - } + if (!rss_anon_before) + ksft_exit_fail_msg("No RssAnon is allocated before split\n"); /* split all THPs */ write_debugfs(PID_FMT, getpid(), (uint64_t)one_page, (uint64_t)one_page + len, 0); for (i = 0; i < len; i++) - if (one_page[i] != (char)0) { - printf("%ld byte corrupted\n", i); - exit(EXIT_FAILURE); - } + if (one_page[i] != (char)0) + ksft_exit_fail_msg("%ld byte corrupted\n", i); - if (!check_huge_anon(one_page, 0, pmd_pagesize)) { - printf("Still AnonHugePages not split\n"); - exit(EXIT_FAILURE); - } + if (!check_huge_anon(one_page, 0, pmd_pagesize)) + ksft_exit_fail_msg("Still AnonHugePages not split\n"); rss_anon_after = rss_anon(); - if (rss_anon_after >= rss_anon_before) { - printf("Incorrect RssAnon value. Before: %ld After: %ld\n", + if (rss_anon_after >= rss_anon_before) + ksft_exit_fail_msg("Incorrect RssAnon value. Before: %ld After: %ld\n", rss_anon_before, rss_anon_after); - exit(EXIT_FAILURE); - } } void split_pmd_zero_pages(void) @@ -150,7 +140,7 @@ void split_pmd_zero_pages(void) one_page = allocate_zero_filled_hugepage(len); verify_rss_anon_split_huge_page_all_zeroes(one_page, nr_hpages, len); - printf("Split zero filled huge pages successful\n"); + ksft_test_result_pass("Split zero filled huge pages successful\n"); free(one_page); } @@ -491,7 +481,7 @@ int main(int argc, char **argv) if (argc > 1) optional_xfs_path = argv[1]; - ksft_set_plan(3+9); + ksft_set_plan(4+9); pagesize = getpagesize(); pageshift = ffs(pagesize) - 1;