Add linux-next specific files for 20110831
[linux-2.6/next.git] / include / trace / events / irq_vectors.h
blob699ddaae3ddc409d45b6d700438b74b921a596c5
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM irq_vectors
4 #if !defined(_TRACE_IRQ_VECTORS_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_IRQ_VECTORS_H
7 #include <linux/tracepoint.h>
8 #include <asm/irq.h>
10 #ifndef irq_vector_name_table
11 #define irq_vector_name_table { -1, NULL }
12 #endif
14 DECLARE_EVENT_CLASS(irq_vector,
16 TP_PROTO(int irq),
18 TP_ARGS(irq),
20 TP_STRUCT__entry(
21 __field( int, irq )
24 TP_fast_assign(
25 __entry->irq = irq;
28 TP_printk("irq=%d name=%s", __entry->irq,
29 __print_symbolic(__entry->irq, irq_vector_name_table))
33 * irq_vector_entry - called before enterring a interrupt vector handler
35 DEFINE_EVENT(irq_vector, irq_vector_entry,
37 TP_PROTO(int irq),
39 TP_ARGS(irq)
43 * irq_vector_exit - called immediately after the interrupt vector
44 * handler returns
46 DEFINE_EVENT(irq_vector, irq_vector_exit,
48 TP_PROTO(int irq),
50 TP_ARGS(irq)
53 #endif /* _TRACE_IRQ_VECTORS_H */
55 /* This part must be outside protection */
56 #include <trace/define_trace.h>