aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/irq_event_types.h
blob: 65850bc5ea0686614fb2d98ee89e6b82b84534bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* use <trace/irq.h> instead */
#ifndef TRACE_FORMAT
# error Do not include this file directly.
# error Unless you know what you are doing.
#endif

#undef TRACE_SYSTEM
#define TRACE_SYSTEM irq

TRACE_EVENT_FORMAT(irq_handler_entry,
	TPPROTO(int irq, struct irqaction *action),
	TPARGS(irq, action),
	TPFMT("irq=%d handler=%s", irq, action->name),
	TRACE_STRUCT(
		TRACE_FIELD(int, irq, irq)
	),
	TPRAWFMT("irq %d")
	);

TRACE_EVENT_FORMAT(irq_handler_exit,
	TPPROTO(int irq, struct irqaction *action, int ret),
	TPARGS(irq, action, ret),
	TPFMT("irq=%d handler=%s return=%s",
		irq, action->name, ret ? "handled" : "unhandled"),
	TRACE_STRUCT(
		TRACE_FIELD(int, irq, irq)
		TRACE_FIELD(int, ret, ret)
	),
	TPRAWFMT("irq %d ret %d")
	);

#undef TRACE_SYSTEM