diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-28 02:54:39 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-28 04:04:14 -0500 |
commit | f2034f1e1adaac6713a6d48b5a2d4f3aa3e63ccb (patch) | |
tree | 8bedd2378076b3ec4e5ba5085e749349db2034c1 /include/trace | |
parent | 629928041c53771f9902753d50fef6b35f36d33d (diff) |
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 @@ | |||
8 | #undef TRACE_SYSTEM | 8 | #undef TRACE_SYSTEM |
9 | #define TRACE_SYSTEM irq | 9 | #define TRACE_SYSTEM irq |
10 | 10 | ||
11 | TRACE_FORMAT(irq_handler_entry, | 11 | TRACE_EVENT_FORMAT(irq_handler_entry, |
12 | TPPROTO(int irq, struct irqaction *action), | 12 | TPPROTO(int irq, struct irqaction *action), |
13 | TPARGS(irq, action), | 13 | TPARGS(irq, action), |
14 | TPFMT("irq=%d handler=%s", irq, action->name)); | 14 | TPFMT("irq=%d handler=%s", irq, action->name), |
15 | TRACE_STRUCT( | ||
16 | TRACE_FIELD(int, irq, irq) | ||
17 | ), | ||
18 | TPRAWFMT("irq %d") | ||
19 | ); | ||
15 | 20 | ||
16 | TRACE_FORMAT(irq_handler_exit, | 21 | TRACE_EVENT_FORMAT(irq_handler_exit, |
17 | TPPROTO(int irq, struct irqaction *action, int ret), | 22 | TPPROTO(int irq, struct irqaction *action, int ret), |
18 | TPARGS(irq, action, ret), | 23 | TPARGS(irq, action, ret), |
19 | TPFMT("irq=%d handler=%s return=%s", | 24 | TPFMT("irq=%d handler=%s return=%s", |
20 | irq, action->name, ret ? "handled" : "unhandled")); | 25 | irq, action->name, ret ? "handled" : "unhandled"), |
26 | TRACE_STRUCT( | ||
27 | TRACE_FIELD(int, irq, irq) | ||
28 | TRACE_FIELD(int, ret, ret) | ||
29 | ), | ||
30 | TPRAWFMT("irq %d ret %d") | ||
31 | ); | ||
21 | 32 | ||
22 | #undef TRACE_SYSTEM | 33 | #undef TRACE_SYSTEM |