From mboxrd@z Thu Jan 1 00:00:00 1970 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 40659C54ED1 for ; Tue, 27 May 2025 16:13:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9670B6B00BF; Tue, 27 May 2025 12:13:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 917A16B00C0; Tue, 27 May 2025 12:13:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 82D156B00C1; Tue, 27 May 2025 12:13:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 6121E6B00BF for ; Tue, 27 May 2025 12:13:21 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id D20481410DB for ; Tue, 27 May 2025 16:13:20 +0000 (UTC) X-FDA: 83489182560.30.93A5F16 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf04.hostedemail.com (Postfix) with ESMTP id E83864000D for ; Tue, 27 May 2025 16:13:18 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ga0EdbsB; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf04.hostedemail.com: domain of broonie@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1748362399; a=rsa-sha256; cv=none; b=n+Hw2n+Otg73qqkYIF6B51QL5DWdu5kkqC/+oeGbWtMv2Az20uoUIAIClK/ePWZAqREYj+ LJd3G0jkhj0dVtR9j+v9DKMU5vXfBKXwcmFq+bJ7lERGVyZm3Tse0wNNOY6pjb5LJPkx5c Th2FpLRnyZzHwDXz24peItDltpiN6aM= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ga0EdbsB; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf04.hostedemail.com: domain of broonie@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1748362399; 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: references:dkim-signature; bh=9/evSoIPMNKqVPldBL5igy0AteQNVDryKez8Q6Oor+s=; b=1LilNGtS5PUPWSreIefU5CwpeGONp0ljCtdXXcX9698oKVNf/m5FlfO78dvqQv6eJUnSKE UMPeEprBdPUA0K3osU1V/u7TW5alPlyBIUI09ZXrlBa0YFy0v3y6opO9xIbv3JGzIAWf1q 4N5FVAayAPYg2R7F23MIY47r6hBnflw= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 3FC8AA4ED2F; Tue, 27 May 2025 16:13:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7559BC4CEE9; Tue, 27 May 2025 16:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1748362397; bh=IcBMxirkEMJCcf5JrNYvZntkt5fOQpVsCyuwtJrNgX8=; h=From:Subject:Date:To:Cc:From; b=ga0EdbsBHshXltiBaJBUxOYih6egjCQAJBE1gVeT4DTy5CUIab4yJNxVsEsUx3Lg6 JQvzwQ9sHCnRp59PxMxWyOShd6TL7v7TEbqoQUv8n0gEXECzEhh1d19lNgmHumIp3j 19aAkt5JghF8WTYCMfq3D2l+ZDO9NE+nJ8E1dAhNwtDfhJig3Z4bziOWe4nxcdogZs iy2+kFT8p3wIfY5zGzZlhyGJ4rwDTzywqco7AJ1CZ1zFzaLMk+puFYAj8MEweF1vvg UI/5ZyBbzOoByS8/SjERpZHkUMkgZwGOThb4T/OM74OyNdPwBz0TKxIX7fKbBSxu+3 1fN70OKlKzgvA== From: Mark Brown Subject: [PATCH v2 0/4] selftests/mm: cow and gup_longterm cleanups Date: Tue, 27 May 2025 17:04:44 +0100 Message-Id: <20250527-selftests-mm-cow-dedupe-v2-0-ff198df8e38e@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJziNWgC/3WNyw6CMBBFf4XM2jF9WDWu/A/DAjsDNCIlHUQN4 d+tJC5dnpPcc2cQToEFTsUMiacgIfYZzKYA31Z9wxgoMxhlnHJGo3BXjyyj4P2OPj6RmB4Do7X kq6uyO+eOkNdD4jq81vKlzNwGGWN6r0eT/tpf0/xtThoVHrT1zKYm2tP5xqnnbhtTA+WyLB+Ob nU8vwAAAA== X-Change-ID: 20250521-selftests-mm-cow-dedupe-33dcab034558 To: Andrew Morton , Shuah Khan , David Hildenbrand Cc: Lorenzo Stoakes , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.15-dev-c25d1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2000; i=broonie@kernel.org; h=from:subject:message-id; bh=IcBMxirkEMJCcf5JrNYvZntkt5fOQpVsCyuwtJrNgX8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBoNeSYTfgEVZ8w6cB9jqFXTUNxbBZagS9VFQD8GR9X oPqIfkyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCaDXkmAAKCRAk1otyXVSH0LtlB/ 9LRN6dVU9hnQM1fYo2dOl7n449s6V8aeALjhlDifkhqyTiKGarwYLDlqWDNrKqofd5HND/Qu/Tq5hy ubBBa0hRV5LLnM5rK0A4vsYtncrak8mFqIIfU9l7vHMs75IMZIriXzFifeM/V9DgYgnh2f0PwhiAmt U21HzMvvrgKSLFI2pS4+OX94BEhB1inxQf2pXYv3dkUsXPRuObsmIKaiVkh+Rab6obde00rNEZKpn7 WCGW+qwckZRwO4WseTjHEh5539IRCRVBvFRop1vveU8gvradgqsTFp0f7Wq3SiLYqEIdS77dg/KMTK wxh3nd99H9UHRMzpC9wlAUbSc4i+Dw X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: E83864000D X-Stat-Signature: ses1cmjmutccj4fnxcztpnjaysoxm9bf X-Rspam-User: X-HE-Tag: 1748362398-418572 X-HE-Meta: U2FsdGVkX193YXwiexvuZU4/YF5DDic2MwNSKjvi4x22T+bmyh52kSONSwzJBEHPo9Vb+4GJ8WI5yzMwDYGFxqbg9ehYKdvlv18ot7fUg4rbfV5/mQg/XADDk03VewUNaX0/M1H/2NYaQYbnhG1R4UFSo3J357KzQefOISwp4KkSMVcXv5Hok8tiGSXqLZy1++DF8odHu8+LJLah4+M/m9BUJT9rJB9TJb1Ly9m7g54am88no4m4aF6x/5oh+/QR0yPGoKp5Yj5RPAfFOtGzK3YH2r3gP+UbJStOs+d8UNa+pO3BcwJOmJS+715P3ovw7Sf+E/xXj5PAYOqK4UC49CTNcZJu0izKdZoiAZa8i77vqIpR/MKbdHuiGdjF7r5kEWyofhHK3/EOWcIYs4EPsI/UIhx1bF+9C/3vQezu+g1OvunGmb7A7JSBcFkMYb27SIeg/H3+0imOLRFEnRdRphvcN09Ue3ahsLsU7Gy/M7xcSX3Awe7jppacCvbzmY/ndFTLMDWTt2Zf+SpGHQaVMgoIUPR0B2jTNnT9Xo0Nk41tGN+TOwrJOOBvDMhCPKQ6kmkBO3zo/Y99haTvFFBKDIAwiRKRgHWzZoPfzqknK3c/kMmkTWmzC+hhql5HAcuiQInYAYNJgHYqhjM2pnLeGI06lq2HbaZSL194jO9+5Fr3+YhJu/BKDyj7Scj7Uhjb6QFD6as+3aTa49EnGwmoKkKxXmKCwbP39neGSKrvxNILfqUX5yKgvxMihHy7KCHOnyyQI5yw4d30BgbjLPo+MKw+75ASX0vXMl2+8MmPrPW9UmJ46NtoqC9xMTk6SjkQHqrwt5VZniMSglRHFpkGvPLUqBkXmWDvBMMaUBKE6mMeIFwoFHq3DG2rMwjJRkBRMrjEBPW80/OLJTbrC2wFEULBpktUgcYPDrk98uJJd7NSmwG1AsczCTWVS5Gym7PynCkwFvX0kfxfbc/M8Yt RBBH8vCQ kPcqDSTXmMwXGOH/kAWtVV/I1ugfbzrLimkUKWiSnq/VdAFgIWv+x98OCnP2QksJveqOULSJJQJ26rcCSxIyPjE8HSvZjFN1MvlVQQWZ82hJVici+OjjXshgQyM7rr05EsnT5o0p5mxVWoJPFdDHA2zOEmFDmODC+cZSNGD5Y8KNCsz+ek+cnroLKrdfESwRoiptZVktQ9G7Uzy8Uq1PBY5j7xN0xerKpV1dXwGgglZwLtvGjSvRKIOhtTm/CYfSZgfmCufYC5hdFiJIdXY8FViPjZTG+vKd7lco/ 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: The bulk of these changes modify the cow and gup_longterm tests to report unique and stable names for each test, bringing them into line with the expectations of tooling that works with kselftest. The string reported as a test result is used by tooling to both deduplicate tests and track tests between test runs, using the same string for multiple tests or changing the string depending on test result causes problems for user interfaces and automation such as bisection. It was suggested that converting to use kselftest_harness.h would be a good way of addressing this, however that really wants the set of tests to run to be known at compile time but both test programs dynamically enumarate the set of huge page sizes the system supports and test each. Refactoring to handle this would be even more invasive than these changes which are large but straightforward and repetitive. A version of the main gup_longterm cleanup was previously sent separately, this version factors out the helpers for logging the start of the test since the cow test looks very similar. Signed-off-by: Mark Brown --- Changes in v2: - Typo fixes. - Link to v1: https://lore.kernel.org/r/20250522-selftests-mm-cow-dedupe-v1-0-713cee2fdd6d@kernel.org --- Mark Brown (4): selftests/mm: Use standard ksft_finished() in cow and gup_longterm selftests/mm: Add helper for logging test start and results selftests/mm: Report unique test names for each cow test selftests/mm: Fix test result reporting in gup_longterm tools/testing/selftests/mm/cow.c | 340 +++++++++++++++++++----------- tools/testing/selftests/mm/gup_longterm.c | 158 ++++++++------ tools/testing/selftests/mm/vm_util.h | 20 ++ 3 files changed, 334 insertions(+), 184 deletions(-) --- base-commit: a5806cd506af5a7c19bcd596e4708b5c464bfd21 change-id: 20250521-selftests-mm-cow-dedupe-33dcab034558 Best regards, -- Mark Brown