5 #include <linux/kallsyms.h>
7 #define ___P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f)
8 #define ___PS(f) if (desc->istate & f) printk("%14s set\n", #f)
10 #define ___PD(f) do { } while (0)
12 static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
14 static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 5);
16 if (!__ratelimit(&ratelimit))
19 printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n",
20 irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled);
21 printk("->handle_irq(): %p, ", desc->handle_irq);
22 print_symbol("%s\n", (unsigned long)desc->handle_irq);
23 printk("->irq_data.chip(): %p, ", desc->irq_data.chip);
24 print_symbol("%s\n", (unsigned long)desc->irq_data.chip);
25 printk("->action(): %p\n", desc->action);
27 printk("->action->handler(): %p, ", desc->action->handler);
28 print_symbol("%s\n", (unsigned long)desc->action->handler);
38 ___PS(IRQS_AUTODETECT);
43 ___PD(IRQS_INPROGRESS);