Blame view
kernel/irq/debug.h
1.17 KB
1ce6068da genirq: Move debu... |
1 2 3 4 5 |
/* * Debugging printout: */ #include <linux/kallsyms.h> |
9f3045eca irq: hide debug m... |
6 7 8 9 |
#define ___P(f) if (desc->status_use_accessors & f) printk("%14s set ", #f) #define ___PS(f) if (desc->istate & f) printk("%14s set ", #f) |
32f4125eb genirq: Move INPR... |
10 |
/* FIXME */ |
9f3045eca irq: hide debug m... |
11 |
#define ___PD(f) do { } while (0) |
1ce6068da genirq: Move debu... |
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc) { printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d ", irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled); printk("->handle_irq(): %p, ", desc->handle_irq); print_symbol("%s ", (unsigned long)desc->handle_irq); printk("->irq_data.chip(): %p, ", desc->irq_data.chip); print_symbol("%s ", (unsigned long)desc->irq_data.chip); printk("->action(): %p ", desc->action); if (desc->action) { printk("->action->handler(): %p, ", desc->action->handler); print_symbol("%s ", (unsigned long)desc->action->handler); } |
9f3045eca irq: hide debug m... |
31 32 33 34 35 36 |
___P(IRQ_LEVEL); ___P(IRQ_PER_CPU); ___P(IRQ_NOPROBE); ___P(IRQ_NOREQUEST); ___P(IRQ_NOTHREAD); ___P(IRQ_NOAUTOEN); |
1ce6068da genirq: Move debu... |
37 |
|
9f3045eca irq: hide debug m... |
38 39 40 41 |
___PS(IRQS_AUTODETECT); ___PS(IRQS_REPLAY); ___PS(IRQS_WAITING); ___PS(IRQS_PENDING); |
32f4125eb genirq: Move INPR... |
42 |
|
9f3045eca irq: hide debug m... |
43 44 45 |
___PD(IRQS_INPROGRESS); ___PD(IRQS_DISABLED); ___PD(IRQS_MASKED); |
1ce6068da genirq: Move debu... |
46 |
} |
9f3045eca irq: hide debug m... |
47 48 49 |
#undef ___P #undef ___PS #undef ___PD |