diff options
author | Ingo Molnar <mingo@kernel.org> | 2025-07-28 07:12:53 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-07-28 07:17:38 +0200 |
commit | 5bf2f5119b9e957f773a22f226974166b58cff32 (patch) | |
tree | e719f1a52a8c42077cc62ea39da69175d35138c7 /scripts/gdb/linux/xarray.py | |
parent | 65f55a30176662ee37fe18b47430ee30b57bfc98 (diff) | |
parent | 038d61fd642278bab63ee8ef722c50d10ab01e8f (diff) |
Merge tag 'v6.16' into x86/cpu, to resolve conflict
Resolve overlapping context conflict between this upstream fix:
d8010d4ba43e ("x86/bugs: Add a Transient Scheduler Attacks mitigation")
And this pending commit in tip:x86/cpu:
65f55a301766 ("x86/CPU/AMD: Add CPUID faulting support")
Conflicts:
arch/x86/kernel/cpu/amd.c
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
-rw-r--r-- | scripts/gdb/linux/xarray.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/gdb/linux/xarray.py b/scripts/gdb/linux/xarray.py new file mode 100644 index 000000000000..f4477b5def75 --- /dev/null +++ b/scripts/gdb/linux/xarray.py @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Xarray helpers +# +# Copyright (c) 2025 Broadcom +# +# Authors: +# Florian Fainelli <florian.fainelli@broadcom.com> + +import gdb + +from linux import utils +from linux import constants + +def xa_is_internal(entry): + ulong_type = utils.get_ulong_type() + return ((entry.cast(ulong_type) & 3) == 2) + +def xa_mk_internal(v): + return ((v << 2) | 2) + +def xa_is_zero(entry): + ulong_type = utils.get_ulong_type() + return entry.cast(ulong_type) == xa_mk_internal(257) + +def xa_is_node(entry): + ulong_type = utils.get_ulong_type() + return xa_is_internal(entry) and (entry.cast(ulong_type) > 4096) |