diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-15 22:23:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-15 22:23:40 -0400 |
commit | 5f6fb45466b2273ffb91c9cf209f164f666c33b1 (patch) | |
tree | 2b19f24b678ae379be1b19338c3095c1f76ed41d /kernel/irq/debug.h | |
parent | 3904afb41d4316f7a2968c615d689e19149a4f84 (diff) | |
parent | c0185808eb85139f45dbfd0de66963c498d0c4db (diff) |
Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (116 commits)
x86: Enable forced interrupt threading support
x86: Mark low level interrupts IRQF_NO_THREAD
x86: Use generic show_interrupts
x86: ioapic: Avoid redundant lookup of irq_cfg
x86: ioapic: Use new move_irq functions
x86: Use the proper accessors in fixup_irqs()
x86: ioapic: Use irq_data->state
x86: ioapic: Simplify irq chip and handler setup
x86: Cleanup the genirq name space
genirq: Add chip flag to force mask on suspend
genirq: Add desc->irq_data accessor
genirq: Add comments to Kconfig switches
genirq: Fixup fasteoi handler for oneshot mode
genirq: Provide forced interrupt threading
sched: Switch wait_task_inactive to schedule_hrtimeout()
genirq: Add IRQF_NO_THREAD
genirq: Allow shared oneshot interrupts
genirq: Prepare the handling of shared oneshot interrupts
genirq: Make warning in handle_percpu_event useful
x86: ioapic: Move trigger defines to io_apic.h
...
Fix up trivial(?) conflicts in arch/x86/pci/xen.c due to genirq name
space changes clashing with the Xen cleanups. The set_irq_msi() had
moved to xen_bind_pirq_msi_to_irq().
Diffstat (limited to 'kernel/irq/debug.h')
-rw-r--r-- | kernel/irq/debug.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/kernel/irq/debug.h b/kernel/irq/debug.h new file mode 100644 index 000000000000..d1a33b7fa61d --- /dev/null +++ b/kernel/irq/debug.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * Debugging printout: | ||
3 | */ | ||
4 | |||
5 | #include <linux/kallsyms.h> | ||
6 | |||
7 | #define P(f) if (desc->status & f) printk("%14s set\n", #f) | ||
8 | #define PS(f) if (desc->istate & f) printk("%14s set\n", #f) | ||
9 | |||
10 | static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc) | ||
11 | { | ||
12 | printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n", | ||
13 | irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled); | ||
14 | printk("->handle_irq(): %p, ", desc->handle_irq); | ||
15 | print_symbol("%s\n", (unsigned long)desc->handle_irq); | ||
16 | printk("->irq_data.chip(): %p, ", desc->irq_data.chip); | ||
17 | print_symbol("%s\n", (unsigned long)desc->irq_data.chip); | ||
18 | printk("->action(): %p\n", desc->action); | ||
19 | if (desc->action) { | ||
20 | printk("->action->handler(): %p, ", desc->action->handler); | ||
21 | print_symbol("%s\n", (unsigned long)desc->action->handler); | ||
22 | } | ||
23 | |||
24 | P(IRQ_LEVEL); | ||
25 | P(IRQ_PER_CPU); | ||
26 | P(IRQ_NOPROBE); | ||
27 | P(IRQ_NOREQUEST); | ||
28 | P(IRQ_NOAUTOEN); | ||
29 | |||
30 | PS(IRQS_AUTODETECT); | ||
31 | PS(IRQS_INPROGRESS); | ||
32 | PS(IRQS_REPLAY); | ||
33 | PS(IRQS_WAITING); | ||
34 | PS(IRQS_DISABLED); | ||
35 | PS(IRQS_PENDING); | ||
36 | PS(IRQS_MASKED); | ||
37 | } | ||
38 | |||
39 | #undef P | ||
40 | #undef PS | ||