Skip to content

Commit 50f4d2b

Browse files
ffainelliakpm00
authored andcommitted
scripts/gdb: de-reference per-CPU MCE interrupts
The per-CPU MCE interrupts are looked up by reference and need to be de-referenced before printing, otherwise we print the addresses of the variables instead of their contents: MCE: 18379471554386948492 Machine check exceptions MCP: 18379471554386948488 Machine check polls The corrected output looks like this instead now: MCE: 0 Machine check exceptions MCP: 1 Machine check polls Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Fixes: b0969d7 ("scripts/gdb: print interrupts") Signed-off-by: Florian Fainelli <[email protected]> Cc: Jan Kiszka <[email protected]> Cc: Kieran Bingham <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent a02b0cd commit 50f4d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gdb/linux/interrupts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def x86_show_mce(prec, var, pfx, desc):
110110
pvar = gdb.parse_and_eval(var)
111111
text = "%*s: " % (prec, pfx)
112112
for cpu in cpus.each_online_cpu():
113-
text += "%10u " % (cpus.per_cpu(pvar, cpu))
113+
text += "%10u " % (cpus.per_cpu(pvar, cpu).dereference())
114114
text += " %s\n" % (desc)
115115
return text
116116

0 commit comments

Comments
 (0)