Skip to content
Snippets Groups Projects
Commit 3f3816d8 authored by Monu Surana's avatar Monu Surana
Browse files

linux-ramdump-parser-v2: Print irq_desc structure address in IRQ logs

Print the addresses of irq_desc structure to aid with debugging.

Change-Id: I7ddb6b643bbf400300645e0aaad1962604ac46a3
parent 11dfd648
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ class IrqParse(RamParser): ...@@ -129,7 +129,7 @@ class IrqParse(RamParser):
cpu_str = cpu_str + '{0:10} '.format('CPU{0}'.format(i)) cpu_str = cpu_str + '{0:10} '.format('CPU{0}'.format(i))
print_out_str( print_out_str(
'{0:4} {1} {2:30} {3:10}'.format('IRQ', cpu_str, 'Name', 'Chip')) '{0:4} {1} {2:30} {3:15} {4:20}'.format('IRQ', cpu_str, 'Name', 'Chip', 'IRQ Structure'))
if nr_irqs > 50000: if nr_irqs > 50000:
return return
...@@ -162,7 +162,7 @@ class IrqParse(RamParser): ...@@ -162,7 +162,7 @@ class IrqParse(RamParser):
name_addr = ram_dump.read_word(action + action_name_offset) name_addr = ram_dump.read_word(action + action_name_offset)
name = ram_dump.read_cstring(name_addr, 48) name = ram_dump.read_cstring(name_addr, 48)
print_out_str( print_out_str(
'{0:4} {1} {2:30} {3:10}'.format(irqnum, irq_stats_str, name, chip_name)) '{0:4} {1} {2:30} {3:15} v.v (struct irq_desc *)0x{4:<20x}'.format(irqnum, irq_stats_str, name, chip_name, irq_desc))
def parse(self): def parse(self):
irq_desc = self.ramdump.addr_lookup('irq_desc') irq_desc = self.ramdump.addr_lookup('irq_desc')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment