diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-28 10:54:39 +0300 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-28 12:04:14 +0300 |
commit | f2034f1e1adaac6713a6d48b5a2d4f3aa3e63ccb (patch) | |
tree | 8bedd2378076b3ec4e5ba5085e749349db2034c1 /include/trace | |
parent | 629928041c53771f9902753d50fef6b35f36d33d (diff) | |
download | linux-f2034f1e1adaac6713a6d48b5a2d4f3aa3e63ccb.tar.xz |
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>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/irq_event_types.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/include/trace/irq_event_types.h b/include/trace/irq_event_types.h index 47a2be1b2d7d..65850bc5ea06 100644 --- a/include/trace/irq_event_types.h +++ b/include/trace/irq_event_types.h @@ -8,15 +8,26 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM irq -TRACE_FORMAT(irq_handler_entry, +TRACE_EVENT_FORMAT(irq_handler_entry, TPPROTO(int irq, struct irqaction *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), TPARGS(irq, action, ret), 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 |