Blame view

kernel/irq/debug.h 1.11 KB
1ce6068da   Thomas Gleixner   genirq: Move debu...
1
2
3
4
5
  /*
   * Debugging printout:
   */
  
  #include <linux/kallsyms.h>
0c6f8a8b9   Thomas Gleixner   genirq: Remove co...
6
7
  #define P(f) if (desc->status_use_accessors & f) printk("%14s set
  ", #f)
1ce6068da   Thomas Gleixner   genirq: Move debu...
8
9
  #define PS(f) if (desc->istate & f) printk("%14s set
  ", #f)
32f4125eb   Thomas Gleixner   genirq: Move INPR...
10
11
  /* FIXME */
  #define PD(f) do { } while (0)
1ce6068da   Thomas Gleixner   genirq: Move debu...
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  
  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);
  	}
  
  	P(IRQ_LEVEL);
  	P(IRQ_PER_CPU);
  	P(IRQ_NOPROBE);
  	P(IRQ_NOREQUEST);
7f1b1244e   Paul Mundt   genirq: Support p...
36
  	P(IRQ_NOTHREAD);
1ce6068da   Thomas Gleixner   genirq: Move debu...
37
38
39
  	P(IRQ_NOAUTOEN);
  
  	PS(IRQS_AUTODETECT);
1ce6068da   Thomas Gleixner   genirq: Move debu...
40
41
  	PS(IRQS_REPLAY);
  	PS(IRQS_WAITING);
1ce6068da   Thomas Gleixner   genirq: Move debu...
42
  	PS(IRQS_PENDING);
32f4125eb   Thomas Gleixner   genirq: Move INPR...
43
44
45
46
  
  	PD(IRQS_INPROGRESS);
  	PD(IRQS_DISABLED);
  	PD(IRQS_MASKED);
1ce6068da   Thomas Gleixner   genirq: Move debu...
47
48
49
50
  }
  
  #undef P
  #undef PS
32f4125eb   Thomas Gleixner   genirq: Move INPR...
51
  #undef PD