tracing: create the C style tracing for the irq subsystem
This patch utilizes the TRACE_EVENT_FORMAT macro to enable the C style faster tracing for the irq subsystem trace points. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
This commit is contained in:
@@ -8,15 +8,26 @@
|
|||||||
#undef TRACE_SYSTEM
|
#undef TRACE_SYSTEM
|
||||||
#define TRACE_SYSTEM irq
|
#define TRACE_SYSTEM irq
|
||||||
|
|
||||||
TRACE_FORMAT(irq_handler_entry,
|
TRACE_EVENT_FORMAT(irq_handler_entry,
|
||||||
TPPROTO(int irq, struct irqaction *action),
|
TPPROTO(int irq, struct irqaction *action),
|
||||||
TPARGS(irq, action),
|
TPARGS(irq, action),
|
||||||
TPFMT("irq=%d handler=%s", irq, action->name));
|
TPFMT("irq=%d handler=%s", irq, action->name),
|
||||||
|
TRACE_STRUCT(
|
||||||
|
TRACE_FIELD(int, irq, irq)
|
||||||
|
),
|
||||||
|
TPRAWFMT("irq %d")
|
||||||
|
);
|
||||||
|
|
||||||
TRACE_FORMAT(irq_handler_exit,
|
TRACE_EVENT_FORMAT(irq_handler_exit,
|
||||||
TPPROTO(int irq, struct irqaction *action, int ret),
|
TPPROTO(int irq, struct irqaction *action, int ret),
|
||||||
TPARGS(irq, action, ret),
|
TPARGS(irq, action, ret),
|
||||||
TPFMT("irq=%d handler=%s return=%s",
|
TPFMT("irq=%d handler=%s return=%s",
|
||||||
irq, action->name, ret ? "handled" : "unhandled"));
|
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
|
#undef TRACE_SYSTEM
|
||||||
|
Reference in New Issue
Block a user