cfq-iosched: no need to save interrupts in cfq_kick_queue()
[linux-2.6.git] / include / trace / irq_event_types.h
1
2 /* use <trace/irq.h> instead */
3 #ifndef TRACE_FORMAT
4 # error Do not include this file directly.
5 # error Unless you know what you are doing.
6 #endif
7
8 #undef TRACE_SYSTEM
9 #define TRACE_SYSTEM irq
10
11 /*
12  * Tracepoint for entry of interrupt handler:
13  */
14 TRACE_FORMAT(irq_handler_entry,
15         TP_PROTO(int irq, struct irqaction *action),
16         TP_ARGS(irq, action),
17         TP_FMT("irq=%d handler=%s", irq, action->name)
18         );
19
20 /*
21  * Tracepoint for return of an interrupt handler:
22  */
23 TRACE_EVENT(irq_handler_exit,
24
25         TP_PROTO(int irq, struct irqaction *action, int ret),
26
27         TP_ARGS(irq, action, ret),
28
29         TP_STRUCT__entry(
30                 __field(        int,    irq     )
31                 __field(        int,    ret     )
32         ),
33
34         TP_fast_assign(
35                 __entry->irq    = irq;
36                 __entry->ret    = ret;
37         ),
38
39         TP_printk("irq=%d return=%s",
40                   __entry->irq, __entry->ret ? "handled" : "unhandled")
41 );
42
43 TRACE_FORMAT(softirq_entry,
44         TP_PROTO(struct softirq_action *h, struct softirq_action *vec),
45         TP_ARGS(h, vec),
46         TP_FMT("softirq=%d action=%s", (int)(h - vec), softirq_to_name[h-vec])
47         );
48
49 TRACE_FORMAT(softirq_exit,
50         TP_PROTO(struct softirq_action *h, struct softirq_action *vec),
51         TP_ARGS(h, vec),
52         TP_FMT("softirq=%d action=%s", (int)(h - vec), softirq_to_name[h-vec])
53         );
54
55 #undef TRACE_SYSTEM