Re: [PATCH] scripts/gdb: add mm introspection utils

From: Andrew Morton
Date: Fri Dec 30 2022 - 16:37:38 EST


On Fri, 30 Dec 2022 19:35:12 +0300 Dmitrii Bundin <dmitrii.bundin.a@xxxxxxxxx> wrote:

> This command provides a way to traverse the entire page hierarchy by a
> given virtual address. In addition to qemu's commands info tlb/info mem
> it provides the complete information about the paging structure for an
> arbitrary virtual address. It supports 4Kb/2MB/1GB and 5 level paging.

Seems neat. Should it have a check that it's being run on the supported
architecture? Or do we just rely on non-x86_64 users learning not to
do that.