linux-yocto/scripts/gdb/linux
Florian Fainelli f64046ae34 scripts/gdb: fix interrupts.py after maple tree conversion
commit a02b0cde8e upstream.

In commit 721255b982 ("genirq: Use a maple tree for interrupt descriptor
management"), the irq_desc_tree was replaced with a sparse_irqs tree using
a maple tree structure.  Since the script looked for the irq_desc_tree
symbol which is no longer available, no interrupts would be printed and
the script output would not be useful anymore.

In addition to looking up the correct symbol (sparse_irqs), a new module
(mapletree.py) is added whose mtree_load() implementation is largely
copied after the C version and uses the same variable and intermediate
function names wherever possible to ensure that both the C and Python
version be updated in the future.

This restores the scripts' output to match that of /proc/interrupts.

Link: https://lkml.kernel.org/r/20250625021020.1056930-1-florian.fainelli@broadcom.com
Fixes: 721255b982 ("genirq: Use a maple tree for interrupt descriptor management")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Shanker Donthineni <sdonthineni@nvidia.com>
Cc: Thomas Gleinxer <tglx@linutronix.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-17 18:35:15 +02:00
..
__init__.py
.gitignore
clk.py
config.py
constants.py.in scripts/gdb: fix interrupts.py after maple tree conversion 2025-07-17 18:35:15 +02:00
cpus.py scripts/gdb: fix aarch64 userspace detection in get_current_task 2025-02-17 09:40:39 +01:00
device.py
dmesg.py
genpd.py
interrupts.py scripts/gdb: fix interrupts.py after maple tree conversion 2025-07-17 18:35:15 +02:00
lists.py
Makefile
mapletree.py scripts/gdb: fix interrupts.py after maple tree conversion 2025-07-17 18:35:15 +02:00
mm.py
modules.py
page_owner.py
pgtable.py
proc.py
radixtree.py
rbtree.py
slab.py
stackdepot.py
symbols.py
tasks.py scripts: clean up IA-64 code 2025-07-06 11:00:16 +02:00
timerlist.py
utils.py
vfs.py
vmalloc.py
xarray.py scripts/gdb: fix interrupts.py after maple tree conversion 2025-07-17 18:35:15 +02:00