History

genirq: Expose nr_irqs in core code

... to avoid function calls in the core code to retrieve the maximum number of interrupts. Rename it to 'total_nr_irqs' as 'nr_irqs' is too generic and fix up the 'nr_irqs' reference in the related GDB script as well.

Thomas Gleixner committed 6 months ago

Commit b99dc721 parent cca5e6f4 files · +18 −17Browse files

Showing the changes to scripts (1 of 4 files). Show all

Unified · Split

scripts/gdb/linux/interrupts.py+1−1
@@ -174,7 +174,7 @@ class LxInterruptList(gdb.Command): · 173 unmodified lines
174 super(LxInterruptList, self).__init__("lx-interruptlist", gdb.COMMAND_DATA)174 super(LxInterruptList, self).__init__("lx-interruptlist", gdb.COMMAND_DATA)
175 175
176 def invoke(self, arg, from_tty):176 def invoke(self, arg, from_tty):
177 nr_irqs = gdb.parse_and_eval("nr_irqs")177 nr_irqs = gdb.parse_and_eval("total_nr_irqs")
178 prec = 3178 prec = 3
179 j = 1000179 j = 1000
180 while prec < 10 and j <= nr_irqs:180 while prec < 10 and j <= nr_irqs:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t