aboutsummaryrefslogtreecommitdiff
path: root/include/trace/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/irq.h')
-rw-r--r--include/trace/irq.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/trace/irq.h b/include/trace/irq.h
new file mode 100644
index 00000000000..58d50636936
--- /dev/null
+++ b/include/trace/irq.h
@@ -0,0 +1,31 @@
+#ifndef _LTTNG_TRACE_IRQ_H
+#define _LTTNG_TRACE_IRQ_H
+
+#include <linux/kdebug.h>
+#include <linux/interrupt.h>
+
+/*
+ * action can be NULL if not available.
+ */
+DECLARE_TRACE(irq_entry,
+ TP_PROTO(unsigned int id, struct pt_regs *regs,
+ struct irqaction *action),
+ TP_ARGS(id, regs, action));
+DECLARE_TRACE(irq_exit,
+ TP_PROTO(irqreturn_t retval),
+ TP_ARGS(retval));
+
+DECLARE_TRACE(irq_tasklet_low_entry,
+ TP_PROTO(struct tasklet_struct *t),
+ TP_ARGS(t));
+DECLARE_TRACE(irq_tasklet_low_exit,
+ TP_PROTO(struct tasklet_struct *t),
+ TP_ARGS(t));
+DECLARE_TRACE(irq_tasklet_high_entry,
+ TP_PROTO(struct tasklet_struct *t),
+ TP_ARGS(t));
+DECLARE_TRACE(irq_tasklet_high_exit,
+ TP_PROTO(struct tasklet_struct *t),
+ TP_ARGS(t));
+
+#endif