diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-02-14 15:29:23 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2024-02-16 15:42:41 +0300 |
commit | 16f22981b6d7ea6815d2e4527b82cac5e2f65c89 (patch) | |
tree | 2b1069c8e0439e11a5b59f848433fbc25be8eeb3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0dd4f60a2c76938c2625f6c630c225699d97608b (diff) | |
download | linux-16f22981b6d7ea6815d2e4527b82cac5e2f65c89.tar.xz |
arm64: ptdump: Disregard unaddressable VA space
Configurations built with support for 52-bit virtual addressing can also
run on CPUs that only support 48 bits of VA space, in which case only
that part of swapper_pg_dir that represents the 48-bit addressable
region is relevant, and everything else is ignored by the hardware.
Our software pagetable walker has little in the way of input address
validation, and so it will happily start a walk from an address that is
not representable by the number of paging levels that are actually
active, resulting in lots of bogus output from the page table dumper
unless we take care to start at a valid address.
So define the start address at runtime based on vabits_actual.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-82-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions