2009-02-26 16:11:05 +01:00
|
|
|
|
|
|
|
/* use <trace/irq.h> instead */
|
|
|
|
#ifndef TRACE_FORMAT
|
|
|
|
# error Do not include this file directly.
|
|
|
|
# error Unless you know what you are doing.
|
|
|
|
#endif
|
|
|
|
|
2009-02-28 05:41:43 +01:00
|
|
|
#undef TRACE_SYSTEM
|
|
|
|
#define TRACE_SYSTEM irq
|
|
|
|
|
2009-03-10 04:23:30 +01:00
|
|
|
/*
|
|
|
|
* Tracepoint for entry of interrupt handler:
|
|
|
|
*/
|
|
|
|
TRACE_FORMAT(irq_handler_entry,
|
2009-03-09 20:47:18 +01:00
|
|
|
TP_PROTO(int irq, struct irqaction *action),
|
|
|
|
TP_ARGS(irq, action),
|
2009-03-10 04:23:30 +01:00
|
|
|
TP_FMT("irq=%d handler=%s", irq, action->name)
|
2009-02-28 08:54:39 +01:00
|
|
|
);
|
2009-02-26 16:11:05 +01:00
|
|
|
|
2009-03-10 04:23:30 +01:00
|
|
|
/*
|
|
|
|
* Tracepoint for return of an interrupt handler:
|
|
|
|
*/
|
|
|
|
TRACE_EVENT(irq_handler_exit,
|
|
|
|
|
2009-03-09 20:47:18 +01:00
|
|
|
TP_PROTO(int irq, struct irqaction *action, int ret),
|
2009-03-10 04:23:30 +01:00
|
|
|
|
2009-03-09 20:47:18 +01:00
|
|
|
TP_ARGS(irq, action, ret),
|
2009-03-10 04:23:30 +01:00
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field( int, irq )
|
|
|
|
__field( int, ret )
|
2009-02-28 08:54:39 +01:00
|
|
|
),
|
2009-03-10 04:23:30 +01:00
|
|
|
|
|
|
|
TP_fast_assign(
|
|
|
|
__entry->irq = irq;
|
|
|
|
__entry->ret = ret;
|
2009-03-10 17:41:38 +01:00
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("irq=%d return=%s",
|
|
|
|
__entry->irq, __entry->ret ? "handled" : "unhandled")
|
2009-03-10 04:23:30 +01:00
|
|
|
);
|
2009-02-28 05:41:43 +01:00
|
|
|
|
2009-03-12 19:36:03 +01:00
|
|
|
TRACE_FORMAT(softirq_entry,
|
|
|
|
TP_PROTO(struct softirq_action *h, struct softirq_action *vec),
|
|
|
|
TP_ARGS(h, vec),
|
|
|
|
TP_FMT("softirq=%d action=%s", (int)(h - vec), softirq_to_name[h-vec])
|
|
|
|
);
|
|
|
|
|
|
|
|
TRACE_FORMAT(softirq_exit,
|
|
|
|
TP_PROTO(struct softirq_action *h, struct softirq_action *vec),
|
|
|
|
TP_ARGS(h, vec),
|
|
|
|
TP_FMT("softirq=%d action=%s", (int)(h - vec), softirq_to_name[h-vec])
|
|
|
|
);
|
|
|
|
|
2009-02-28 05:41:43 +01:00
|
|
|
#undef TRACE_SYSTEM
|