From patchwork Tue Jun 18 14:37:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxwell Bland X-Patchwork-Id: 13702470 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A815EC2BA18 for ; Tue, 18 Jun 2024 14:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=6Mjw2tZfiMJ6uFQ21cibQZKdgxepVkmAZq6TGlRIs6s=; b=EHBi0RNqyZrA6HQVXEuQWrIdX7 rFGtLj3AOSvhNRJ3SlKs5JB8RoFgHwxM4ixujRv1zJwi5Nnh8Saqgw2IKkv/cNqVVHiX4PU0uooKK S4WTfMfXOdmpSkQkYqUgbhU/mUwvYeHWCIG6r2hPMsiFMKNzkshF2/tF5X9zDDyiPiM9pqW91659J u1VT/h/MheRNtFpPaIi8V0YPqHbDv+jq/gnSiv7Pyjkno5BY0mEpah+Mz4fhZRN/OOww8ae0t2UDG hjHcS2lrGCI2EPBmDZVex+L8Cc/PdKX3Bx6QiDuaev15+wP2Ez9m0SL9QL5M8IOut78RwDb10Hwug YVUWFY1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJZy4-0000000FQ9J-02rR; Tue, 18 Jun 2024 14:37:52 +0000 Received: from mx0b-00823401.pphosted.com ([148.163.152.46]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJZy0-0000000FQ7T-0jNh for linux-arm-kernel@lists.infradead.org; Tue, 18 Jun 2024 14:37:50 +0000 Received: from pps.filterd (m0355090.ppops.net [127.0.0.1]) by m0355090.ppops.net (8.18.1.2/8.18.1.2) with ESMTP id 45ID7VG6016852; Tue, 18 Jun 2024 14:37:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=motorola.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= DKIM202306; bh=6Mjw2tZfiMJ6uFQ21cibQZKdgxepVkmAZq6TGlRIs6s=; b=K u35k3sKb/hwe5r6DQ+an+DiZErYoP+FlxXltcHOVH0ZpyQnC0QYc/bRGfemHQYda SI5DWRGAWxNKAQQdJOpfbDnRU6MCkmGGJQuAq5ZdP9YdVLu6o6v3O9JrHysPno27 86TqMRK9zrfSrrI4athTEedOvHuWkt4mDRvk0+TSW0VKG5QQkE1imAuNV3QHc8X0 yhtfumdL3xRjS5A0LVuO/AlqMUMiXzsxI6teCrQbvA6JXSFPzNw2MD3MBhNhpS5J WTQk5jq5mf5cAQp9BbzMwq//CJwNNDUb4mVDQ+VCGiQFAbbcdBf8YKmszcFdSWfN XpwZxk7c8gUtnkZemuYMg== Received: from va32lpfpp03.lenovo.com ([104.232.228.23]) by m0355090.ppops.net (PPS) with ESMTPS id 3ysp9ry6sy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jun 2024 14:37:34 +0000 (GMT) Received: from ilclmmrp02.lenovo.com (ilclmmrp02.mot.com [100.65.83.26]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by va32lpfpp03.lenovo.com (Postfix) with ESMTPS id 4W3Tqf0Zkyz4yjWh; Tue, 18 Jun 2024 14:37:34 +0000 (UTC) Received: from ilclasset02 (ilclasset02.mot.com [100.64.49.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mbland) by ilclmmrp02.lenovo.com (Postfix) with ESMTPSA id 4W3Tqd65lDz3p6jp; Tue, 18 Jun 2024 14:37:33 +0000 (UTC) Date: Tue, 18 Jun 2024 09:37:32 -0500 From: Maxwell Bland To: linux-mm@kvack.org Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Ard Biesheuvel , Mark Rutland , Christophe Leroy , Maxwell Bland , Alexandre Ghiti , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/5] ptdump: add intermediate directory support Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Proofpoint-GUID: sc6QcvRW6h6thBBf9R7Kxq_tsknsRC8q X-Proofpoint-ORIG-GUID: sc6QcvRW6h6thBBf9R7Kxq_tsknsRC8q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-18_02,2024-06-17_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 mlxlogscore=999 priorityscore=1501 malwarescore=0 suspectscore=0 clxscore=1011 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406180108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_073748_687792_D0C0312D X-CRM114-Status: GOOD ( 13.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Makes many several improvements to (arm64) ptdump debugging, including: - support note_page on intermediate table entries - (arm64) print intermediate entries and add an array for their specific attributes - (arm64) adjust the entry ranges to remove the implicit exclusive upper bound - (arm64) indent page table by level while maintaining attribute alignment - (arm64) improve documentation clarity, detail, and precision Thank you again to the maintainers for their review of this patch. A comparison of the differences in output is provided here: github.com/maxwell-bland/linux-patch-data/tree/main/ptdump-non-leaf New in v4: - Inclusive upper bounds on range specifications - Splits commit into multiple smaller commits and separates cosmetic, documentation, and logic changes - Updates documentation more sensibly - Fixes bug in size computation and handles ULONG_MAX bound overflow v3: https://lore.kernel.org/all/fik5ys53dbkpkl22o4s7sw7cxi6dqjcpm2f3kno5tyms73jm5y@buo4jsktsnrt/ - Added tabulation to delineate entries - Fixed formatting issues with mailer and rebased to mm/linus v2: https://lore.kernel.org/r/20240423142307.495726312-1-mbland@motorola.com - Rebased onto linux-next/akpm (the incorrect branch) v1: https://lore.kernel.org/all/20240423121820.874441838-1-mbland@motorola.com/ Maxwell Bland (5): mm: add ARCH_SUPPORTS_NON_LEAF_PTDUMP arm64: non leaf ptdump support arm64: indent ptdump by level, aligning attributes arm64: exclusive upper bound for ptdump entries arm64: add attrs and format to ptdump document Documentation/arch/arm64/ptdump.rst | 126 ++++++++++++----------- arch/arm64/Kconfig | 1 + arch/arm64/mm/ptdump.c | 149 +++++++++++++++++++++++++--- mm/Kconfig.debug | 9 ++ mm/ptdump.c | 21 ++-- 5 files changed, 217 insertions(+), 89 deletions(-)