Skip to contentSkip to conversation

scripts/gdb: Fix interrupts display after MCP on x86

PATCH Superseded Florian Fainelli 1 participant 2 messages Jun 23, 2025 GDB kernel debugging helper scripts

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/gdb: Fix interrupts display after MCP on x86

The text line would not be appended to as it should have, it should have been a '+=' but ended up being a '==', fix that.

Fixes b0969d7687a7 ("scripts/gdb: print interrupts")
---
 scripts/gdb/linux/interrupts.py       |   2 +-
 scripts/gdb/linux/irq.py              |  47 ++++++++++
 scripts/gdb/linux/mtree_load_debug.py | 122 ++++++++++++++++++++++++++
 3 files changed, 170 insertions(+), 1 deletion(-)
 create mode 100644 scripts/gdb/linux/irq.py
 create mode 100644 scripts/gdb/linux/mtree_load_debug.py
scripts/gdb/linux/interrupts.py +1 -1
index a48b5874663e..419ab98d2e2b 100644
@@ -141,7 +141,7 @@ def x86_show_interupts(prec):
 
     if constants.LX_CONFIG_X86_MCE:
         text += x86_show_mce(prec, "&mce_exception_count", "MCE", "Machine check exceptions")
-        text == x86_show_mce(prec, "&mce_poll_count", "MCP", "Machine check polls")
+        text += x86_show_mce(prec, "&mce_poll_count", "MCP", "Machine check polls")
 
     text += show_irq_err_count(prec)
 
scripts/gdb/linux/irq.py new file +47 -0

47 lines not on this page · raw message

scripts/gdb/linux/mtree_load_debug.py new file +122 -0

122 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw
Quoted 5 lines · Florian Fainelli

The text line would not be appended to as it should have, it should have been a '+=' but ended up being a '==', fix that.

Fixes b0969d7687a7 ("scripts/gdb: print interrupts")

Sorry this contained a lot more than what was necessary here, let me post a v2.

Signature · 1 line
Florian