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

From: Dmitrii Bundin
Date: Sat Dec 31 2022 - 12:28:35 EST


On Sat, Dec 31, 2022 at 12:37 AM Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> Should it have a check that it's being run on the supported
> architecture?

The x86 code is under the if utils.is_target_arch("x86") ... else
gdb.GdbError("Virtual address translation is not supported for this
arch") check so for now it will be an error to use this command for
other archs. In the patch v2 I mentioned x86 explicitly in the commit
message and also addressed issues Mike pointed out. Could you please
apply https://lore.kernel.org/all/20221231171258.7907-1-dmitrii.bundin.a@xxxxxxxxx/
in place of v1?