... 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.
Showing the changes to scripts (1 of 4 files). Show all
Unified · Split
| @@ -174,7 +174,7 @@ class LxInterruptList(gdb.Command): · 173 unmodified lines | ||
| 174 | 174 | super(LxInterruptList, self).__init__("lx-interruptlist", gdb.COMMAND_DATA) |
| 175 | 175 | |
| 176 | 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 | 178 | prec = 3 |
| 179 | 179 | j = 1000 |
| 180 | 180 | while prec < 10 and j <= nr_irqs: |