diff options
| author | Florian Fainelli <[email protected]> | 2025-06-25 02:10:20 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-07-10 04:07:53 +0000 |
| commit | a02b0cde8ee515ee0c8efd33e7fbe6830c282e69 (patch) | |
| tree | f7e4e2e8a4dd4dd491a9f4e66138a9a89239b2bd /tools/perf/scripts/python/libxed.py | |
| parent | maple_tree: fix mt_destroy_walk() on root leaf node (diff) | |
| download | kernel-a02b0cde8ee515ee0c8efd33e7fbe6830c282e69.tar.gz kernel-a02b0cde8ee515ee0c8efd33e7fbe6830c282e69.zip | |
scripts/gdb: fix interrupts.py after maple tree conversion
In commit 721255b9826b ("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/[email protected]
Fixes: 721255b9826b ("genirq: Use a maple tree for interrupt descriptor management")
Signed-off-by: Florian Fainelli <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Kieran Bingham <[email protected]>
Cc: Shanker Donthineni <[email protected]>
Cc: Thomas Gleinxer <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
