Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp208010lqb; Tue, 16 Apr 2024 13:12:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaPJYkCPZfUnm+SJYjFhf40R+5OBmgNCKTN/P0wR1hBhUJwYQ/ASlA5Eu4B6j0kI2MJ4fWwbourTa1O0/29XU0UkbWAqPUFnEbU4duAQ== X-Google-Smtp-Source: AGHT+IHejE/AvydlT1wlUxaTW4pq34eH5nGJ8ngi0zyquEjTUHs3Jm+hyuAxvdPbb7xqeQN37aWz X-Received: by 2002:a05:6a00:10d5:b0:6e6:f9b6:4b1a with SMTP id d21-20020a056a0010d500b006e6f9b64b1amr15586348pfu.11.1713298351539; Tue, 16 Apr 2024 13:12:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713298351; cv=pass; d=google.com; s=arc-20160816; b=AAPpVR4wKfD50W43yUooYwb6qnAKNSELKKuPAl2dO5dPGWDT8IoL5wJv/k0XqlIJF5 V3TWCYcY7bg2HrcS24yKcSimAdHN2Po7hb5Zim74XVtKib1AwwgqFAV6sayD7ebQHNlH fslOg4l3Wh0qDMpVzu69/nW03XehJgXFgvU2HH5NzvbKWw4UV/89QSvMf6+BM4ayyyA7 d4aogSw946jhCV/AAyG5L4VwIH2bYIWdFg/7QC0yVwTQ8CEXWmSFn7ZUXo8Ihvd5AOoh toPwXQBj4nVW0AbA/zBjPW5GmVBDIZD3T6EuXniknUQeviDR2BOrdOFYoxyS3AnQd5Yj bfdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=dzgDEmRceOFDzNCXUsX+I9UG7YSyd6aygwj+yG5BbfQ=; fh=QuzqK2aYzHzis0Df5BwlOXRUKOTV/umcp1Zx8pcuuvU=; b=G0XwWspFUbdI9M8r9vgQ5p1uH27DsL4cRa7cSG+w6jTA63FWG6/erJyjEXPwSPMA3Y 8DWuSIEKbZ2rjgF/pQa67aR/dKMH77fM50m8+FYVrqwq36EsCbs2FgUoskaqp5O8Lc8g eawbxrN9l9MS4ru961suYuNYcC5HuKJSxt6rmBT1BrMl6+4D6UmUy6dJyNTgXycgdlTX Ibm2opF/TcF9vD/rMcBpuue9YZZIUuBhAVryrT21lc7bNryQL5+n6R4Z/KDBbdeUlGQq zpCwRNwA5AQ37MZ/ZxO5/lPEyf26E6KTcuJs/FJ/PR4sKYJh/O5lWEYxAXBJ6eH1kLFF 96OQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=cjZZt45z; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-147497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147497-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p11-20020a63e64b000000b005cdfc01b502si8778035pgj.337.2024.04.16.13.12.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 13:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=cjZZt45z; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-147497-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147497-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CDF72B21EB6 for ; Tue, 16 Apr 2024 20:11:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12A7913A25D; Tue, 16 Apr 2024 20:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cjZZt45z" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 277DA139CF1; Tue, 16 Apr 2024 20:11:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713298282; cv=none; b=DCoYbKtAZVqBzIDP7Y9L2xxicnZa6HGwTkeL3XE5KN/WGG8QruygtiW8/v3jGke/Tx5vvCJ+B0a9xPawdvRKAqJXSoK1V8xgiX0ez9hjSQiuffrTFCyszTwlOVFSCR6pdhKB2B4u3eD8DcZGrzBnYULeECCIRR6hntMPvd5cJSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713298282; c=relaxed/simple; bh=vH93qz9QypmdrxTbfPnlMTMImwmxiAcyrlntd9a+0o0=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=kHZC+5zvB06zsEs82cwQvPNlI8+jYOHSzFYdHuofK0mt/yeHjN4J/VytGx6HW6N1S5UB1/c4pOptt+7RMFsAbEEoT5iObyUUhNzBfsOcMipkWngs+5EIACuRriV47WZCvRKoFYEOP0AdHo0xHVQ9yu9hiks2i1egSntkYj96u1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=cjZZt45z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 947A5C3277B; Tue, 16 Apr 2024 20:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1713298281; bh=vH93qz9QypmdrxTbfPnlMTMImwmxiAcyrlntd9a+0o0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cjZZt45zzFNVvRVLLkIaQ69+5t4zoCNBaDZANtTYyKIzGiPWX0wB/I6nLAB1CxgDP LyDiexeqmuMVOpNvYwYTEYfDw/QqbKIpHEnEylNsfU0Nr6S5UXmnG60k+iAegOG4s6 wUvuXfyB5LNQoRUHmF5B7VHXvfaARZL14SvNsgdE= Date: Tue, 16 Apr 2024 13:11:20 -0700 From: Andrew Morton To: Maxwell Bland Cc: linux-mm@kvack.org, Catalin Marinas , Will Deacon , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Ard Biesheuvel , Mark Rutland , Alexandre Ghiti , Yu Chien Peter Lin , Song Shuai , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 5/5] ptdump: add state parameter for non-leaf callback Message-Id: <20240416131120.a801ff03a6d0bbec0e9151c8@linux-foundation.org> In-Reply-To: <20240416122254.868007168-6-mbland@motorola.com> References: <20240416122254.868007168-1-mbland@motorola.com> <20240416122254.868007168-6-mbland@motorola.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 15 Apr 2024 14:51:32 -0500 Maxwell Bland wrote: > ptdump can now note non-leaf descriptor entries, a useful addition for > debugging table descriptor permissions when working on related code > > Signed-off-by: Maxwell Bland > --- > arch/arm64/mm/ptdump.c | 6 ++++-- > arch/powerpc/mm/ptdump/ptdump.c | 2 ++ > arch/riscv/mm/ptdump.c | 6 ++++-- > arch/s390/mm/dump_pagetables.c | 6 ++++-- > arch/x86/mm/dump_pagetables.c | 3 ++- > include/linux/ptdump.h | 1 + > mm/ptdump.c | 13 +++++++++++++ > 7 files changed, 30 insertions(+), 7 deletions(-) > > diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c > index 796231a4fd63..1a6f4a3513e5 100644 > --- a/arch/arm64/mm/ptdump.c > +++ b/arch/arm64/mm/ptdump.c > @@ -299,7 +299,8 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info *info) > .range = (struct ptdump_range[]){ > {info->base_addr, end}, > {0, 0} > - } > + }, > + .note_non_leaf = false > } It would be acceptable to omit all of these and rely upon the runtime zeroing which the compiler will emit. Documentation/arch/arm64/ptdump.rst might need updating. Please include sample output in the changelog so we can better understand the user's view of this change.