65850bc5ea0686614fb2d98ee89e6b82b84534bb
[safe/jmp/linux-2.6] / 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 TRACE_EVENT_FORMAT(irq_handler_entry,
12         TPPROTO(int irq, struct irqaction *action),
13         TPARGS(irq, action),
14         TPFMT("irq=%d handler=%s", irq, action->name),
15         TRACE_STRUCT(
16                 TRACE_FIELD(int, irq, irq)
17         ),
18         TPRAWFMT("irq %d")
19         );
20
21 TRACE_EVENT_FORMAT(irq_handler_exit,
22         TPPROTO(int irq, struct irqaction *action, int ret),
23         TPARGS(irq, action, ret),
24         TPFMT("irq=%d handler=%s return=%s",
25                 irq, action->name, ret ? "handled" : "unhandled"),
26         TRACE_STRUCT(
27                 TRACE_FIELD(int, irq, irq)
28                 TRACE_FIELD(int, ret, ret)
29         ),
30         TPRAWFMT("irq %d ret %d")
31         );
32
33 #undef TRACE_SYSTEM